[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: resizing root partition



on Wed, May 29, 2002, Joris (jopa@subdimension.com) wrote:

> Some time ago, back when I was making my first steps into linux, I
> installed Debian on an old 486. After some experimenting, apt-getting
> and kernel compiling my root partition ran out of space.
> 
> Using either TomsRtBt or the Debian rescue/root disk set, I found it
> rather simple to move/copy partitions (including /), but now there
> was't enough room to just copy / to a larger empty partition. So I
> cleared up some space behind / and enlarged the partition using
> cfdisk.
> 
> But here comes the catch. None of the root environments I found on
> floppy had resize2fs on them. 

The LNX-BBC and/or LinuxCare BBC do.  One of them works, the other
doesn't, IIRC, you want the latest LinuxCare BBC for reiserfs mods.

Alternatively, create your own bootdisk with reiserfs support (but don't
ask me how ;-).

> This made it a little tricky to actually
> resize the root filesystem. I ended up doing it this way:
> 
> boot debian rescue disk
> LILO# floppy0
> swap for root disk when asked
> configure keyboard, then "execute a shell" (bottom of the menu)
> # mount /dev/hda1 /mnt
> # cp /mnt/sbin/resize2fs /sbin
> # umount /mnt
> # e2fsck -f /dev/hda1
> # resize2fs /dev/hda1
> 
> Resize2fs takes 20kb, or 10kb when gzipped. Are the root disks that
> 'full' it wouldn't fit anymore? Or is there another reason why it is left
> out? Or is there an easier way to resize a root filesystem?

You mean there's a fixed overhead for a reiserfs partition?  Yes, there
is, ~32 MiB.  This is why I tend to stick to ext3fs for partitions <
~100 MiB.  The overhead is too high for reiserfs, and the benefits
(fscking a 100 MiB partition takes seconds) low.  Where little total
storage is available, ext3fs wins.  Reiser is cool in its own way
though.

Peace.

-- 
Karsten M. Self <kmself@ix.netcom.com>        http://kmself.home.netcom.com/
 What Part of "Gestalt" don't you understand?
   Support the EFF, they support you:  http://www.eff.org/

Attachment: pgp7w3qfLjeyk.pgp
Description: PGP signature


Reply to: