can't get df to work
hi. i'm trying to find out my disk usage for my root drive, which is /dev/hda6. when i run
Code:
df -h /dev/hda6 Code:
Filesystem Size Used Avail Use% Mounted on |
why it seems to be bad output?
|
/dev/hda6 is *not* your root file system. It is your swap partition, this why it shows a hyphen under "Filesystem" and "/dev" under "Mounted on".
You can check that looking at /etc/fstab. So type "df -h" instead. |
Code:
$ df -h | grep '/$' |
here is my fstab:
Code:
/dev/hda5 swap swap defaults 0 0 i still don't see why "df /dev/hda6" isn't working. |
Would you mind posting whole "df -h" output ?
|
Code:
Filesystem Size Used Avail Use% Mounted on |
This is what I have:
Code:
bash-3.1$ cat /etc/fstab Anyway if /dev/root points to hda6 you know you have 33G available on it ;) |
i'm using slackware, and /dev/root does point to /dev/hda6. i just think its weird that i can only get my disk usage info by doing "df /dev/root", when i want to call it /dev/hda6. i think the problem is that it's mounted as /dev/root, so df must look at whats mounted and not understand that /dev/root and /dev/hda6 are the same thing.
|
If you want to find out the disk usage for your root drive, why not using
$ df -h / Your root device is located on /dev/hda6, but even so it is mounted as / I really see no point of running df with some device, as it can deal only with mounted devices and even that only via the mountpoints. /dev/root is special case on a UNIX system and obviously related to the root mountpoint, and certainly not meant to used by df. Debian |
All times are GMT -5. The time now is 10:17 PM. |