[SOLVED] Some Allocated Disk Space When Formatting A Device
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
Last edited by ethereal1m; 09-15-2010 at 10:57 PM.
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:
-m reserved-blocks-percentage
Specify the percentage of the filesystem blocks reserved for the super-user. This avoids fragmentation, and allows root-owned daemons, such as syslogd(8), to continue to function correctly after non-privileged processes are prevented from writing to the filesystem. The default percentage is 5%.
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?
Last edited by ethereal1m; 09-16-2010 at 03:41 AM.
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*).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.