LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 12-05-2004, 07:15 AM   #1
Mistreated
Member
 
Registered: Aug 2004
Location: Latvia, Riga
Distribution: Gentoo
Posts: 109

Rep: Reputation: 15
3Gb of disk space lost! Disk space problem or mother board conflicts with HDD


I've got Seagate hard drive (80Gb) and motherboard Chaintech 7VJL5 (VIA KT400A+VT8235).

Here is my drive partitions:
Disk /dev/hda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 2433 19543041 83 Linux
/dev/hda2 2434 2556 987997+ 82 Linux swap
/dev/hda3 2557 9729 57617122+ 83 Linux

And here is my disk space usage:
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hda1 19236308 2606036 15653120 15% /
/dev/hda3 56712220 23488628 30342736 44% /home
none 257288 0 257288 0% /dev/shm

As you can see the size of my /dev/hda3 partition is 54.08 Gigabytes, but the sum of used space and free space is 51.34 Gigabytes! Can anyone tell me please where are the lost 3Gb of disk space from /dev/hda3?
 
Old 12-05-2004, 10:49 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,856

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
I assume your partitions are formatted as ext3. By default when an ext3 filesystem is formated 5% is reserved for root. This is done to keep fragmentation low as well as allow root to perform file maintenance stuff. You can change the amount of reserved space by using the tune2fs command. I do recommend you keep some reserved space.
 
Old 12-06-2004, 02:12 PM   #3
Mistreated
Member
 
Registered: Aug 2004
Location: Latvia, Riga
Distribution: Gentoo
Posts: 109

Original Poster
Rep: Reputation: 15
Thank You michaelk!
You're right /dev/hda3 is formated as ext3. But why it's not good to have a reserved space? If i decrease the amount of reserved space to minimum, how can i then avoid fragmentation? Is there any disk defragment tools?
Thanks again!
 
Old 12-06-2004, 03:53 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,856

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
It is good to have reserved space.

It really isn't required to defragment a linux filesystem. I've never found any documentation that explains size of reserved space vs fragementation, so I really do not have any suggestions on min size.
 
Old 12-06-2004, 03:58 PM   #5
Mistreated
Member
 
Registered: Aug 2004
Location: Latvia, Riga
Distribution: Gentoo
Posts: 109

Original Poster
Rep: Reputation: 15
Thumbs up

Thanks! You helped me a lot!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
regain disk space lost cirosoto Linux - Distributions 1 07-21-2004 08:50 PM
Disk Space Problem AbsoluteMonkey Linux - General 8 03-28-2004 02:24 PM
problem with disk space. bengo Slackware 5 10-02-2003 01:38 AM
Disk Space Problem bigmember Linux - Software 2 07-04-2003 12:41 PM
lost disk space HELP kjell1979 Linux - Software 3 08-08-2001 04:34 PM


All times are GMT -5. The time now is 12:14 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration