Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
resize2fs worked for me! You have to do some calculations, though...
First, figure out the size that you want the partition to be, in bytes. Divide that by (16065*512) to get the number of cylinders (for fdisk). Round to the nearest whole number, then multiply again. That will be the actual size in bytes of the partition. Then divide that number by 4096 to get the number of e2fs blocks. That will be the number to feed into resize2fs.
resize2fs will tell you to run e2fsck -f even if you just have, so you will have to use the -f option.
After that's done, run fdisk. Delete the partition, and then create a new one with the same starting cylinder and the new size. Then, if it's the boot partition, you will have to reset the boot flag on it.
It's a pain in the ass, but it's pretty much guranteed to work unless you screw up.
Ranish doesn't really seem to support ext3 (maybe ext2 though?) I resized the partition in Ranish, rebooted and just got a recovery prompt, changed the partition back to what it was before and after a disk check everything booted as planned (whew!)
And what good is resize2fs if I have to delete and recreate the partition as you say?
Actually I guess I see what you mean about resize2fs, as the ext2 partition will be resized and the data moved, simply deleting and recreating the partion shouldn't disturb the data...correct? Now I have ext3, so I'd first have to remove the journaling to revert it to ext2. Will that screw anything up?
Man I thought that I was kinda partition smart until now. This ext2/3 resizing issue I'm having is asinine.
fdisk doesn't touch anything on the disk other than the partition table, so deleting a partition and creating another one with the same starting cylinder has the same effect as resizing it. Just make sure to reset the boot flag if it is your boot partition.
i need to resize my root ext3 partition, but i cant download boot&root image from gnu's page(it says that release should be soon), so can any1 send my that files by email, dcc or whatever? thanx in advance
i need to resize my root ext3 partition, but i cant download boot&root image from gnu's page(it says that release should be soon), so can any1 send my that files by email, dcc or whatever? thanx in advance
Yeah, I ran into that same issue, and when I was finally able to attain parted it wouldn't work on my ext3 file system, some recent incompatibility. I would just convert to ext2 and resize that way.
I don't know what the other repliers are smoking, but you cannot resize an ext3 partition with parted. (See their home page.) What you have to do is to shrink the size of the windows partition with parted, and then use resize2fs. The part that sucks is that you can't have the system mounted when you're resizing it! This means you have to reboot on a floppy and then run resize2fs. If you can figure out how to do that, let me know.
resize2fs probably comes with your distribution, but you can find it in the e2fsprogs package on sourceforge. I compiled it, but can't seem to get my floppies working properly.
I think the best solution might be to create a new partition with the e2fsprogs utilities instead of resizing the main partition...
Check http://www.gnu.org/software/parted/, about a third of the way down the screen is a partition type support matrix of what it can and cannot resize. It clearly states it can resize ext3. I'm smoking Winston Lights thank you.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.