Some Allocated Disk Space When Formatting A Device
Dear all,
what is the allocated disk space for system files in a new formatted device? Suppose I install a IDE hard drive with size of 40Gig and connect it to PC via SATA to IDE converter into SATA port. After the device is formatted (I format the whole thing without being partitioned) and mounted, it left with space of around 37.2Gig, which I suppose less than 2.8Gig are allocated for system files. Is 2.8Gig allocation a normal size for system files? Can its size be minimized? Regards, ethereal1m |
there are 2 things to consider:
1. manufacturers often quote in figures based on powers of 10 vs actual size which is a power of 2. The difference increases as the size of the disk in qn grows. http://en.wikipedia.org/wiki/Binary_prefix 2. Linux (and Unix) reserve an amt (typically 5%) for use by root only (ie unavail to regular users) on the disk in case it fills up. It may also be used by the OS (briefly) to minimise fragmentation when adding to/changing a file layout. Quote:
|
hmm, I'm using XFS filesystem and looking at mkfs.xfs command, I find a hard time to locate reserve-block-percentage option. I try to minimize this. Any idea?
|
actually I run mkfs.xfs with option
Code:
-i maxpct=1 |
As the other poster said above, maybe all the "problem" is a different way to meassure things. How are you meassuring the disk space? Which tool?
Please, post the output for fdisk -l as well. |
I use "df -h"
Code:
/dev/sda 38G 9.6M 38G 1% /data Code:
Disk /dev/sda: 40.0 GB, 40019582464 bytes |
fdisk and df meassure the disk capacity in different ways, it's what the other person said above.
Try "df -H" and they'll match. It's just a matter of using GB vs GiB, 1024 vs 1000, powers of 2 instead of powers of 10, whatever you prefer. There's nothing wrong with your disk or your fs. ps. The fact that you didn't partition is will never be a problem for Linux, it could be for some other OSes, but not for Linux. It really doesn't matter if you use the raw device, a partition or any other kind of file (because in linux you can mkfs any arbitrary file, nost just these under /dev/sd*). |
ok, very good, thanks for the clarification
|
All times are GMT -5. The time now is 01:19 PM. |