On Thu, February 2, 2006 8:45 pm, Nick Rout wrote:
> I have a 300G hard drive, designed to run a minimal gentoo system to
> act as network storage for this multimedia household.
>
> I partitioned this disk as follows:
>
>
> hda1 32M /boot
> hda2 500M swap
> hda3 20G /
> hda4 270 something /home (for the storage)
>
> / and /home are formatted ext3. I anticipate quite large files. I
> formatted them quite simply with mke2fs -j.
>
> /home seems to have wasted quite a lot of space. There is about 60k of
> real files in there (from setting up one user, nick, and having a
> little bit of history etc). However df -h shows:
>
> Filesystem            Size  Used Avail Use% Mounted on
> /dev/hda4             257G  129M  244G   1% /home
>
> Where has all the space gone? It should be about 275 G to start with,
> but I have 257 G, with 129M used (presumably filesystem overhead) and
> only 244G left.
>
> Before I start filling it up, is there a better way to format it?
> different block sizes or someting? googling produces a lot of stuff
> that doesn't seem to quite fit.
>
> Thanks.
>
By default ( historically, it was sendible... ), mke2fs saves 10% of the
disk space for bad blocks. Now, 1% ( well, given the electronics on them
probably 0% ) is more than enough.

tune2fs -m 1 /dev/hda4 will reset to 1%. This is non-destructive, and can
be performed at any time. Note also options in -J for ext3 partitions.

Cheers,


Steve

-- 
Work like you don't need the money,
Love like your heart has never been broken and
Dance like no one can see you.

Reply via email to