LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 11-04-2005, 12:57 PM   #1
kushalkoolwal
Senior Member
 
Registered: Feb 2004
Location: Middle of nowhere
Distribution: Debian Squeeze
Posts: 1,249

Rep: Reputation: 49
IDE Device Space Question?


I have an IDE device of 512MB(unformatted). I created a single partition and formatted it with ext3 filesystem. Now I mounted that device on /mnt/test directory. Now when I give the command df -h to check the total space on the device it shows something like this:
Code:
root@debian:~# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/hda7             7.5G  4.4G  2.7G  63% /
tmpfs                 629M     0  629M   0% /dev/shm
/dev/hdc1             482M  8.1M  449M   2% /mnt/debian
root@debian:~#
The total size if 482MB which is ok. But why the available space is 449MB only inspite when it shows that used space is just 8.1MB? Ideally it should be 475MB or somewhere around that.

Anyone has any Ideas as to why this is happening?

thanks
 
Old 11-04-2005, 01:40 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
By default when you format an ext2/3 filesystem 5% of the space is reserved for root.
Reserved space is supposed to reduce fragementation as well as allow root to login in case the filesystem becomes full. On a data drive you can get away with 1% or even zero.

Use tune2fs to modify the amount of reserved space.
 
Old 11-04-2005, 02:28 PM   #3
kushalkoolwal
Senior Member
 
Registered: Feb 2004
Location: Middle of nowhere
Distribution: Debian Squeeze
Posts: 1,249

Original Poster
Rep: Reputation: 49
Thanks that was good to know. Thanks a lot man.
 
Old 11-04-2005, 03:26 PM   #4
Wells
Member
 
Registered: Nov 2004
Location: Florida, USA
Distribution: Debian, Redhat
Posts: 417

Rep: Reputation: 53
Also, if there is no data on the drive, you can always reformat the drive and use the -m option of mkfs.ext3:

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%.
 
  


Reply



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
no space left on device, but it has enough!!! help!!! sarah21 Red Hat 3 02-03-2005 08:37 PM
No space left on device xfgao Red Hat 27 01-13-2005 04:06 PM
No space left on the device ashwinipahuja Programming 1 06-24-2004 12:05 AM
"no space left on device" - But df shows free space! monita Linux - General 7 03-30-2004 01:14 PM
IDE device advice. bulliver Linux - Hardware 5 03-03-2004 11:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 09:37 PM.

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