Bill Jonas on Sun, 9 Dec 2001 23:40:13 +0100


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

Re: [PLUG] resizing ext3fs?


On Sun, Dec 09, 2001 at 03:38:17PM -0500, Tobias DiPasquale wrote:
> Is there anyway I can resize ext3 partitions to give myself more swap
> space? (like 400-512MB of swap) If anyone knows anything about it, it
> would be much appreciated.  Thanks!

It appears as though there's a resize2fs(8) command.  You ought to have
it installed; my Debian system tells me it's part of e2fsprogs v1.25.
The man page says to use it and then follow up with a careful
application of fdisk.  You might also try parted as it seems to be more
safe.  (It will adjust the filesystem size and partition size for you
all at one go so you don't have to muck about with dangerous fdisk
operations.)

If it were me, I wouldn't worry about it being ext2/ext3.  ext3 is
basically ext2 with a journal.  If you're still nervous, you can convert
to ext2 with the command "tune2fs -O ^has_journal /dev/$device" and
perform whatever actions you want.  Then to convert back to ext3, run
"tune2fs -j /dev/$device".  See the man page for more details on that.

-- 
Bill Jonas    *    bill@billjonas.com    *    http://www.billjonas.com/

Developer/SysAdmin for hire!   See http://www.billjonas.com/resume.html

Attachment: pgpZa4X6oKKK3.pgp
Description: PGP signature