Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
| 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
05-14-2008, 07:49 AM
|
#1
|
|
Member
Registered: Sep 2006
Location: Nagpur, Maharashtra, India
Distribution: Debian, Ubuntu, Redhat, Fedora, SLES, OpenSUSE, FreeBSD, Mac OS X
Posts: 221
Rep:
|
I lost my 22 GB chunk of disk drive
Folks,
Few days back I bought 500 GB Seagate Sata disk drive. I actually got only 459 GB but it's ok.
Issue started after that. I created 3 partitions in it using "fdisk" utility.
/dev/sdb1 15GB - ext3
/dev/sdb2 2GB - swap
/dev/sdb3 442GB - ext3
I then formated the first and last partitions using following commands:
# mke2fs -j /dev/sdb1
# mke2fs -j /dev/sdb3
However on mounting these two partitions, df -h shows following status:
Filesystem Size Used Avail Use% Mounted on
/dev/sdc2 17G 7.5G 8.1G 49% /
/dev/sdb3 442G 105M 420G 1% /mnt
/dev/sdb1 15G 70M 14G 1% /temp
As you can see under "Used" column the space used is 105 M and under "Avail" column the space left is only 420 GB so where is the remaining 22 GB? I have not copied any data on it. The two partitions are freshly formated partitions. I checked it through windows as well and the sizes are same. Please help.
Last edited by paragkalra; 05-14-2008 at 07:52 AM.
|
|
|
|
05-14-2008, 08:21 AM
|
#2
|
|
LQ Addict
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Squeeze
Posts: 5,570
|
If you are using one of the journaled filesystems, such as ext3 or reiserfs, the system reserves about 5% for root purposes.
5% of 442 GB is a little over 22 GB.
You can adjust the size of the journal space using tune2fs -j for ext3 systems and reiserfstune for reiserfs systems.
|
|
|
|
05-14-2008, 08:22 AM
|
#3
|
|
Moderator
Registered: Aug 2002
Posts: 10,695
|
By default when a ext2/3 file system is created 5% is reserved for root. This is supposed to reduce fragmentation as well as allow root to login in case the file system becomes full. Use tune2fs to reduce the amount of reserved space.
Last edited by michaelk; 05-14-2008 at 08:29 AM.
|
|
|
|
05-14-2008, 08:22 AM
|
#4
|
|
Senior Member
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix, 98,2000 + various
Posts: 3,164
Rep:
|
I think it's space reserved for root.
from the mke2fs man page.
-m reserved-blocks-percentage
Specify the percentage of the filesystem blocks
reserved for the super-user. This value defaults
to 5%.
|
|
|
|
05-14-2008, 09:29 AM
|
#5
|
|
Member
Registered: Sep 2006
Location: Nagpur, Maharashtra, India
Distribution: Debian, Ubuntu, Redhat, Fedora, SLES, OpenSUSE, FreeBSD, Mac OS X
Posts: 221
Original Poster
Rep:
|
Thanks all...the sizes are back in business  :
Filesystem Size Used Avail Use% Mounted on
/dev/sdc2 17G 7.5G 8.1G 49% /
/dev/sdb3 442G 105M 442G 1% /mnt
/dev/sdb1 15G 70M 15G 1% /temp
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 07:09 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|