Results 1 to 6 of 6
I have an old server,
has a few sda partitions
one of these partitions (/dev/sda6 12G 12G 0 100% /var) is 100% full.
How do I list/get to files on ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 02-20-2013 #1Just Joined!
- Join Date
- Dec 2012
- Posts
- 24
Newbie question: finding files on specific sda drive?
I have an old server,
has a few sda partitions
one of these partitions (/dev/sda6 12G 12G 0 100% /var) is 100% full.
How do I list/get to files on this (and only this) partition/drive? I want to go there and run something like du -hc --max-depth=1 to list the file sizes and see what's eating up the space.
Thanks!!
- 02-20-2013 #2
Try the following comand and see if that does what you want to do.
If it is a big list you might need to pipe the output through less or into a file.Code:ls -alR
- 02-20-2013 #3Just Joined!
- Join Date
- Dec 2012
- Posts
- 24
But how do i see only the files on the "/dev/sda6" drive?
- 02-20-2013 #4
How about Change Directory? Just CD to the mount point and run the command.
- 02-20-2013 #5Just Joined!
- Join Date
- Dec 2012
- Posts
- 24
doesnt work
sda6 is not a folder but mounted disk / partition , like /dev/sda1 , /dev/sda5, etc.
server:/ # cd sda6
-bash: cd: sda6: No such file or directory
serve:/ # cd /dev/sda6
-bash: cd: /dev/sda6: Not a directory
serve:/ # cd dev/sda6
-bash: cd: dev/sda6: Not a directory
serve:/ #
- 02-20-2013 #6Just Joined!
- Join Date
- Dec 2012
- Posts
- 24


Reply With Quote

