DebianThis forum is for the discussion of Debian Linux.
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.
There is something strange going on. I have two hard drives attached to my system. One of them is Running Debian(sarge) on it. Whenever I try to format my second HDD(from the debian installed on First HDD) and mount it over /mnt/data folder, there is a 10% loss of total Hard drive space.
For E.g., I have a HDD with capacity 512MB. I run the following commands over it to partition it and format it.
Code:
echo '0,
'\
| sfdisk -L /dev/hdc
and then I make an ext3 parition on it by
Code:
mke2fs -j -T news /dev/hdc1
and then I run a file system check on it which runs successfully
Code:
fsck -f -a /dev/hdc1
Finally, I mount it by following command:
Code:
mount /dev/hdc1 /mnt/data
And now when I try to check the space of the mount device by giving command df -h, I get the following:
Distribution: ubuntu, RHAS, and other unmentionables
Posts: 372
Rep:
That is a normal result of formatting due to overhead etc. It is the case with all OS'es and all hardware.
If you were to try a search before posting, you would have found a lot of examples like this
Now which one I should follow?506MB or 482MB?
Also,The size 490MB of my tar ball which Debian shows is based on which calculation:1MB=1000KB or 1MB=1024KB???
Distribution: ubuntu, RHAS, and other unmentionables
Posts: 372
Rep:
1KB= 1024B ... you can't confuse the bits
...notice that when you requested a print where 1K=1000, the used and available space increased as well ... meaning both df prints are equal, just using different multipliers.
Every partition has a reserved area for the boot loader and storage of the index data of the filing system. The entire track 1 out of 64 is used for that purpose. So any data storage should never exceed
Also note that linux by default tends to reserve 5% of the drive space of a formatted partition for the root user. Per the mkfs.ext3 manpage:
Code:
-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%.
Also note that linux by default tends to reserve 5% of the drive space of a formatted partition for the root user. Per the mkfs.ext3 manpage:
Code:
-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%.
But does this 5% reserves is included in the output of the command
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.