Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
New harddrive - used/available space doesn't add up [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
rjs
Tux's lil' helper
Tux's lil' helper


Joined: 30 Jul 2004
Posts: 146
Location: Oriel College, Oxford

PostPosted: Sat Apr 09, 2005 4:21 pm    Post subject: New harddrive - used/available space doesn't add up [solved] Reply with quote

Hi,

I've just installed a new 160Gb Maxtor hard drive as a slave to my current HD. Everything is working fine, using the command
Code:
fdisk /dev/hdb

I created a new primary partition and told fdisk to make it take up the whole drive.

I then formatted using
Code:

mke2fs -j /dev/hdb1

This also worked fine.

I tried copying some stuff over to check it was working and it copied fine.

But now when I look at the disk

Code:

mount /dev/hdb1 /mnt/newharddrive
df -h /dev/hdb1
Filesystem            Size  Used Avail Use% Mounted on
/dev/hdb1             151G  164M  143G   1% /mnt/newharddrive


I understand that the 151G size is about right (1024Mb to a Gb, not 1000...) but I don't know where the 143G available figure is coming from. As far as I can see I should have over 150G free...

Any ideas?

Thanks,

Robbie


Last edited by rjs on Sat Apr 09, 2005 7:24 pm; edited 1 time in total
Back to top
View user's profile Send private message
agent_jdh
Veteran
Veteran


Joined: 08 Aug 2002
Posts: 1783
Location: Scotland

PostPosted: Sat Apr 09, 2005 5:06 pm    Post subject: Reply with quote

The filesystem itself steals some space, typically 5%. Journalled filesystems such as ext3 that you've used need to store the journal somewhere as well...
_________________
Jingle Jangle Jewellery
Back to top
View user's profile Send private message
rjs
Tux's lil' helper
Tux's lil' helper


Joined: 30 Jul 2004
Posts: 146
Location: Oriel College, Oxford

PostPosted: Sat Apr 09, 2005 5:13 pm    Post subject: Reply with quote

agent_jdh wrote:
The filesystem itself steals some space, typically 5%. Journalled filesystems such as ext3 that you've used need to store the journal somewhere as well...


Ok, agreed. But I somewhat doubt that this would take up 8Gb of space. Or am I wrong?
Back to top
View user's profile Send private message
agent_jdh
Veteran
Veteran


Joined: 08 Aug 2002
Posts: 1783
Location: Scotland

PostPosted: Sat Apr 09, 2005 5:44 pm    Post subject: Reply with quote

When you run mkfs it tells you how much space the filesystem is going to reserve for itself. Like I said, it's usually 5%. You've got a 160GB (or thereabouts) partition. 8 GB (or thereabouts) has 'gone missing'. The maths looks pretty straightforward to me.
_________________
Jingle Jangle Jewellery
Back to top
View user's profile Send private message
rjs
Tux's lil' helper
Tux's lil' helper


Joined: 30 Jul 2004
Posts: 146
Location: Oriel College, Oxford

PostPosted: Sat Apr 09, 2005 7:23 pm    Post subject: Reply with quote

agent_jdh wrote:
When you run mkfs it tells you how much space the filesystem is going to reserve for itself. Like I said, it's usually 5%. You've got a 160GB (or thereabouts) partition. 8 GB (or thereabouts) has 'gone missing'. The maths looks pretty straightforward to me.


Ok thanks. Sorry, I didn't notice your 5% figure. Thanks for your help :-)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum