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

Re: Resizing ext2 filesystems



Thanks to all for your suggestions on how to go about this without
resize2fs!  It turns out that I was able to get an rpm of resize2fs,
so I would rather use this instead of all the other methods.

Once again, here's what df shows right now:

Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/sda1               497667     35372    436593   7% /
/dev/sda5               497667    395751     76214  84% /var
/dev/sda6              2478138   2271725     78297  97% /usr
/dev/sda7              4616953    643371   3734617  15% /home

Here's what my plan of action is:

su
cp /usr/sbin/resize2fs /       #since I'll need to umount /usr
touch /etc/nologin
/etc/init.d/single             #is this really necessary?
umount /home
umount /usr
/resize2fs -p /dev/sda7 3616953
/resize2fs -p /dev/sda6 3478138
mount /home
mount /usr
/sbin/lilo                     #is this necessary?
/sbin/shutdown -h now


Does the above look right to people who've done this before?  Is it OK
to do it all from single-user mode or should I boot up from a rescue
disk with resize2fs on it?  If so, how do I make a rescue disk? :)

Thanks a lot for all your help,
    Max

-- 
The hopeful depend on a world without end
Whatever the hopeless may say
     Neil Peart, 1985

Attachment: pgpFTsA43ruDg.pgp
Description: PGP signature


Reply to: