On Tuesday 01 April 2008, fei huang wrote: > thank you for the reply, actually I've heard about this solution, and > tried to use resize2fs to expand my filesystem (ext3), the problem is > I didn't know how to use it, what does the "new size" parameter mean? > the additional size or the new complete size? and the device must be > a partition rather than the whole disk, otherwise, it complains "Bad > magic number in super-block", and for a partition, it complains size > not match or too large. any ideas?
You have to resize the "thing" on which the filesystem resides. In other words, this is the first parameter you would supply when mounting it. If your filesystem is a whole disk, then you resize the disk. If it's a partition, then supply the partition device node as parameter. Similar with LVM volumes, raid volumes or whatever other gadget your filesystem is on. resize2fs is quite smart, if you don't supply a size, it expands the filesystem to take up the entire device. Let's say the filesystem is on /dev/sda3, you would then just do: resize2fs /dev/sda3 Don't worry about unmounting the device or anything like that, growing a filesystem can be done live and on-line -- Alan McKinnon alan dot mckinnon at gmail dot com -- gentoo-user@lists.gentoo.org mailing list