Ken Schneider - openSUSE said the following on 09/13/2011 01:00 PM:
On 09/13/2011 12:41 PM, Anton Aylward pecked at the keyboard and wrote:
Otto Rodusek said the following on 09/13/2011 11:14 AM:
I have a very unusual problem where fdisk reports one size BUT df reports a TOTALLY different and unexpected size. Besides doing a full backup, repartition, reformat and restore, is there anything else I can try first??
Apples and Cucumbers. No even the shape, not even both a kind of fruit. Two totally different things.
Not all file systems are on disk.
When a file system is in a disk partition it doesn't have to fill the whole partition
When a file system does fill a whole partition the amount of data will not be the same size as the partition because of the structural metadata that is part the file system.
Sorry, what is your problem? Based on the data I don't see a problem.
When creating a filesystem about 5% is held back for root in case of problems. It used to be 10% but with today's much larger drives it was reduced. Therefore the filesystem will always be smaller then the partition. Nothing to worry about here.
Then there are sparse files like database files, where the files size and the amount of disk space allocated are two different things. In one sense all files are a bit sparse. A file of actual length 1 byte will still have a 4K logical disk block allocated. Some file systems can 'share' in situations like that, but don't assume they all can. man du says: <quote> --apparent-size print apparent sizes, rather than disk usage; although the apparent size is usually smaller,it may be larger due to holes in (`sparse') files, internal fragmentation, indirect blocks, and the like </quote> man fdisk says <quote> In a DOS-type partition table the starting offset and the size of each partition is stored in two ways: as an absolute number of sectors given in 32 bits), and as a Cylinders/Heads/Sectors triple ..... Linux never uses C/H/S. </quote> Bytes .. logical disk blocks .. sectors You may think they are the same thing but they do no have a simple mapping. Different file systems will use the same partition in different ways. The same applications will use different file systems in different ways. some file systems are 'tunable;, but not all tuning will be optimal for some applications. And 'optimal' can mean different things in different contexts. -- Ninety percent of the politicians give the other ten percent a bad reputation. -- Henry Kissinger -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org