View previous topic :: View next topic |
Author |
Message |
rjs Tux's lil' helper
Joined: 30 Jul 2004 Posts: 146 Location: Oriel College, Oxford
|
Posted: Sat Apr 09, 2005 4:21 pm Post subject: New harddrive - used/available space doesn't add up [solved] |
|
|
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
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 |
|
|
agent_jdh Veteran
Joined: 08 Aug 2002 Posts: 1783 Location: Scotland
|
Posted: Sat Apr 09, 2005 5:06 pm Post subject: |
|
|
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 |
|
|
rjs Tux's lil' helper
Joined: 30 Jul 2004 Posts: 146 Location: Oriel College, Oxford
|
Posted: Sat Apr 09, 2005 5:13 pm Post subject: |
|
|
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 |
|
|
agent_jdh Veteran
Joined: 08 Aug 2002 Posts: 1783 Location: Scotland
|
Posted: Sat Apr 09, 2005 5:44 pm Post subject: |
|
|
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 |
|
|
rjs Tux's lil' helper
Joined: 30 Jul 2004 Posts: 146 Location: Oriel College, Oxford
|
Posted: Sat Apr 09, 2005 7:23 pm Post subject: |
|
|
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 |
|
|
|