
Re: cant get disk free space with "df" - no dev with "mount"
Hi again,
Code:
$ df /mnt/Xenu
Filesystem Size Used Avail Use% Mounted on
- 932G 905G 28G 98% /mnt/Xenu
So the device (Filesystem) is not shown... what is shown by :
Code:
ls -l /dev/disk/by-uuid
Also is the device shown after unmounting and mounting manually ?
Code:
umount /mnt/Xenu
mount -o ro /dev/sdb1 /mnt/Xenu
df /mnt/Xenu
Note : as the device does not show in /etc/mtab, there is nothing preventing you from mounting the same device twice, but this is dangerous, this is why I suggest mounting read-only.
Quote:
If I read the fstab correctly, /dev/sdb1 does not show up in mount/df because the /dev/sdb1 is not explicitly specified?
Maybe.
Quote:
But how does "mount.ntfs-3g" know to use /dev/sdb1
Each partition has some form of a signature, for ntfs-3g it is an 8-byte random number. When a device is plugged in, a symlink is inserted in /dev/disk/by-uuid and the signature is searched in /etc/fstab for mount parameters. This is very useful for external devices whose devids depend on the order in which they are plugged in.
If you have set a label on your partition, you may try using the label in /etc/fstab,
replacing "UUID=C60067FF0067F4B9" by "LABEL=your-label", also check whether the label is symlinked in /dev/disk/by-label
Otherwise you may have to revert to /dev/sdb1 in your /etc/fstab entry. The devid of an internal disk is unlikely to change... until the next kernel upgrade.
Regards
Jean-Pierre