LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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


Reply
  Search this Thread
Old 08-25-2003, 12:55 AM   #16
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65

http://www.ranish.com/part/

maybe you can find an app there.



also, did you specify the partition to convert?
you didn't have the partition mounted when you tried
that did you?

Last edited by whansard; 08-25-2003 at 01:06 AM.
 
Old 08-25-2003, 10:33 AM   #17
jspenguin
Member
 
Registered: Feb 2003
Location: Wichita, KS
Distribution: Heavily modified Redhat
Posts: 194

Rep: Reputation: 30
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.
 
Old 08-25-2003, 08:00 PM   #18
ferreter
Member
 
Registered: Oct 2002
Location: USA, IL
Distribution: Debian/Gentoo/Slack
Posts: 215

Rep: Reputation: 30
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?
 
Old 08-25-2003, 08:10 PM   #19
ferreter
Member
 
Registered: Oct 2002
Location: USA, IL
Distribution: Debian/Gentoo/Slack
Posts: 215

Rep: Reputation: 30
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.
 
Old 08-27-2003, 11:04 AM   #20
jspenguin
Member
 
Registered: Feb 2003
Location: Wichita, KS
Distribution: Heavily modified Redhat
Posts: 194

Rep: Reputation: 30
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.
 
Old 09-17-2003, 12:51 PM   #21
r4BBiT
LQ Newbie
 
Registered: Sep 2003
Distribution: Slackware 9.0
Posts: 2

Rep: Reputation: 0
hi,

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
 
Old 09-18-2003, 09:10 AM   #22
ferreter
Member
 
Registered: Oct 2002
Location: USA, IL
Distribution: Debian/Gentoo/Slack
Posts: 215

Rep: Reputation: 30
Quote:
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.
 
Old 09-19-2003, 11:27 PM   #23
Mergatroid
LQ Newbie
 
Registered: Aug 2003
Location: Lakeside, CA
Distribution: RedHat 9
Posts: 7

Rep: Reputation: 0
Resizing ext3 partitions

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...

Let me know how you fare.
 
Old 09-22-2003, 10:46 AM   #24
ferreter
Member
 
Registered: Oct 2002
Location: USA, IL
Distribution: Debian/Gentoo/Slack
Posts: 215

Rep: Reputation: 30
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Possible to create new partition by resizing existing? rollo SUSE / openSUSE 11 07-02-2005 08:31 AM
Mount An Existing ext3 Partition br00tal Linux - Newbie 3 06-10-2005 12:08 AM
Resizing an existing RH9 Linux partition Battletux Linux - Newbie 1 05-27-2004 07:59 AM
Resizing a partition (ext3) herc Linux - Hardware 1 12-26-2003 04:17 PM
Resizing EXT3 partition using parted??? Hegemon Linux - General 1 01-21-2003 12:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:18 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration