LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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


Reply
  Search this Thread
Old 05-14-2008, 07:49 AM   #1
paragkalra
Member
 
Registered: Sep 2006
Location: Nagpur, Maharashtra, India
Distribution: Debian, Ubuntu, Redhat, Fedora, SLES, OpenSUSE, FreeBSD, Mac OS X
Posts: 221

Rep: Reputation: 31
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.
 
Old 05-14-2008, 08:21 AM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
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.
 
Old 05-14-2008, 08:22 AM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
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.
 
Old 05-14-2008, 08:22 AM   #4
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65
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%.
 
Old 05-14-2008, 09:29 AM   #5
paragkalra
Member
 
Registered: Sep 2006
Location: Nagpur, Maharashtra, India
Distribution: Debian, Ubuntu, Redhat, Fedora, SLES, OpenSUSE, FreeBSD, Mac OS X
Posts: 221

Original Poster
Rep: Reputation: 31
Thumbs up

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
 
  


Reply

Tags
less, lost, parag, paragkalra, space



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Ide Drive Not Seen By The Kernel With Sata Disk As Boot Disk xasanchez Linux - Newbie 3 12-27-2007 12:18 PM
3Gb of disk space lost! Disk space problem or mother board conflicts with HDD Mistreated Linux - Hardware 4 12-06-2004 03:58 PM
disk druid and raid chunk size Zvezda Red Hat 0 05-08-2004 10:57 AM
lost disk space HELP kjell1979 Linux - Software 3 08-08-2001 04:34 PM
chunk of questions re. MDK 7.2 jin Linux - Newbie 5 12-19-2000 05:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:25 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration