LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 01-10-2009, 12:07 AM   #1
ratcateme
Member
 
Registered: Feb 2008
Distribution: CentOS 5.4
Posts: 59

Rep: Reputation: 15
new hard drive is 177MB used


i just put two old hard drives back in my linux box i formated them with fdisk so each only had one partition that took up the whole disk.
then i made the partitions ext3 with mkfs.ext3
now when i check the usage with df -h -T
/dev/hdc1 ext3 37G 177M 35G 1% /mnt/hdc
/dev/hdd1 ext3 13G 161M 12G 2% /mnt/hdd
are the two lines for the two new drives they are not very big but i more want to know why the are somewhat used when i run du -s -h /mnt/hdc
664K .
so it should only be 664K fill not 177MB
did i do something wrong in the partitioning or is this normal?
it just seems to me to be a bit much for just disk information

Scott.
 
Old 01-10-2009, 12:26 AM   #2
SqdnGuns
Senior Member
 
Registered: Aug 2005
Location: Pensacola, FL
Distribution: Slackware64® Current & Arch
Posts: 1,092

Rep: Reputation: 174Reputation: 174
The space taken is for ext3 journal..............
 
Old 01-10-2009, 01:37 AM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,131

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
ext2/3 (4 ??? - dunno) reserve 5% to enable the root user to still login in a "out of space" situation and fix things. Only really needed on the root (/) f/s. For storage drives you can safely set it to zero and reclaim the space for other uses.
 
Old 01-11-2009, 01:01 AM   #4
ratcateme
Member
 
Registered: Feb 2008
Distribution: CentOS 5.4
Posts: 59

Original Poster
Rep: Reputation: 15
is there a easy way to do that?

Scott.
 
Old 01-11-2009, 04:46 AM   #5
tommcd
Senior Member
 
Registered: Jun 2006
Location: Philadelphia PA USA
Distribution: Lubuntu, Slackware
Posts: 2,230

Rep: Reputation: 293Reputation: 293Reputation: 293
Quote:
Originally Posted by ratcateme View Post
is there a easy way to do that?
See the section titled Modify Reserved Space (Optional) on this page:
https://help.ubuntu.com/community/In...gANewHardDrive
Quote:
When formatting the drive as ext2/ext3, 5% of the drive's total space is reserved for the super-user (root) so that the operating system can still write to the disk even if it is full. However, for disks that only contain data, this is not necessary.

NOTE: You may run this command on a fat32 file system, but it will do nothing; therefore, I highly recommend not running it.

You can adjust the percentage of reserved space with the "tune2fs" command, like this:

sudo tune2fs -m 1 /dev/sdb1
This example reserves 1% of space - change this number if you wish.
This is for Ubuntu, but tune2fs should be the same on any distro. Just leave off the sudo for the command and run it as root. Just see "man tune2fs" for the details.

Last edited by tommcd; 01-11-2009 at 04:50 AM.
 
Old 01-11-2009, 04:25 PM   #6
ratcateme
Member
 
Registered: Feb 2008
Distribution: CentOS 5.4
Posts: 59

Original Poster
Rep: Reputation: 15
Thnaks guys i did that on both drives but no change it is not really important i just kinda wondered and i dont really have the time at the moment to to go to deep into anything but thanks for the help

Scott.
 
  


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
Moving files from a Linux hard drive to a Windows Vista Premium hard drive WolfMan51 Linux - Hardware 5 07-12-2011 09:19 AM
Clone a dual booting IDE hard drive to a SATA hard drive namida12 Linux - Distributions 1 07-14-2008 10:01 AM
Ubuntu: Installed to external hard drive; boot to primary hard drive gives error 22 dcorb62 Linux - General 7 09-04-2007 11:28 PM
Copying files from internal Hard drive to USB 2.0 Hard Drive is NOT Behaving tubatodd Ubuntu 4 02-19-2007 04:32 PM
Installing grub to external USB hard drive for later use as internal hard drive dhave Linux From Scratch 2 12-10-2005 08:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 05:37 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