Phil Stovell wrote:ext2 and ext3 filesystems, in common with a number of other unix filesystems> I'm running Ubuntu Breezy on a Dell Dimension 8100. I have a 60GB (hda),
> with Windows ME installed and a 160GB (hdb) with Ubuntu.
> If I type "df -h" it tells me Size=147G, Used=105G, Avail=34G for
> /dev/hdb1. 105G + 34G != 147GB. The Windows partition is not mounted.
reserve a certain percentage of data blocks for root's use, so users cannot
bring the system to a complete standstill by filling the disk. This is
typically 5%. It can be changed using the tune2fs -r option, although
eliminating it altogether for anything but removable storage media is a bad idea
because the volume will probably become horribly fragmented over time. (Linux
does not, on the whole, require any sort of 'defragmenter' program because the
disks do not get fragged in the first place, because the block allocation code
is somewhat more clued than the windows FAT32 equivalent, but it's algorythm
depends on there always being a certain amount of free space available)
It is probably following hard or soft links, or decending into other filesystems> However, if I select all directories in / using root Nautilus and do
> properties, it tells me I've used 46.3GB.
(/proc is a good one; there are some large 'files' in /proc, which are not
files, nor are they on your disc).
Hard links can be used to make the same file appear under more than one name.
(The OS knows files on a disk by inode number, directories link names to inodes;
having two directory entries which point at the same inode means that the same
file is known by multiple names)
Unrestricted use of hard links is a bad idea because it causes no end of confusion.
Soft links are simply pointers to other files, and the system follows these
automatically, so a file can then appear to be in two(or more) places at the
same time. Software that transparrently follows soft links by default is
probably broken (although this depends on context).
It probably isn't missing.> How can I find where the missing 58.7GB is?