LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 06-20-2003, 11:23 PM   #1
BxBoy
Member
 
Registered: Oct 2002
Location: New York City (nYc)
Distribution: Red Hat Enterprise 3
Posts: 93

Rep: Reputation: 15
Resizing Existing Linux Partition (ext3)


Hi, when I setup Red Hat I set a specific size for it. But now I would like to give it more space (resize it) with free space from the Windows partition. I've tried using Resize w/ Partition Magic 8, but no luck, it won't resize a ext3 partition.

Is there any other way? suggestions?
 
Old 06-20-2003, 11:31 PM   #2
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
As long as the Windows is FAT, you could try

http://www.gnu.org/software/parted/parted.html

I always had good luck with it though it was mostly ext2 and DOS, rather than ext3 and Windows. As long as the Windows isn't NTFS, it should be good. With parted (Linux), presizer (DOS) and fdisk (DOS and Linux) or cfdisk, I've been able to do most anything I wanted, even if it meant deleting a partition out from under a filesystem and recreating it at a different size with the data still intact. (Not recommended, though.)
 
Old 06-20-2003, 11:34 PM   #3
BxBoy
Member
 
Registered: Oct 2002
Location: New York City (nYc)
Distribution: Red Hat Enterprise 3
Posts: 93

Original Poster
Rep: Reputation: 15
so I can use the parted to resize the existing ext3 partition w/o worrying about losing/corrupting data?
 
Old 06-20-2003, 11:41 PM   #4
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
you have to worry about losing/corrupting data with
any partition resizer. that's why you're supposed to backup
data. you WILL at some point have a hard drive crash,
and it's up to you how much you will lose when that
happens.
parted works ok. also, you can convert the ext3 to ext2
easily, and use partition magic on it if you want.
 
Old 06-21-2003, 12:20 AM   #5
BxBoy
Member
 
Registered: Oct 2002
Location: New York City (nYc)
Distribution: Red Hat Enterprise 3
Posts: 93

Original Poster
Rep: Reputation: 15
On the contrary, I was unable to resize an ext3 partition in Partition Magic 8 (in windows).

As for backing up, how would I do that from within windows?
 
Old 06-21-2003, 01:40 AM   #6
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
I think he means you can deconvert ext3 to ext2 to make PM happy. I don't know - I've only converted the other way, but check tune2fs and see if it says anything about deconverting.

And whansard's definitely right. $h!t happens, so always be prepared with good backups. Nothing's guaranteed even if PM is guaranteed. *g* You'd still have to reinstall if anything went wrong, even if PM would give you your money back.

All that being said, I've yet to lose anything by using parted.
 
Old 06-21-2003, 02:43 AM   #7
megaspaz
Senior Member
 
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054

Rep: Reputation: 46
actually PM 8 will let you do partition functions on ext3. you're just lucky that for some reason it wouldn't let you.

i've used PM 8 to successfully resize and move my linux partition twice to make my linux partition big enough to handle .vob files generated from dvdrip. the last time i used PM 8, the friggin' program corrupted my ext3 journal (as in deleted it because PM 8 generated and wrote some friggin' errors to some inodes and stopped. the display showed my once ext3 filesystem as an ext2 filesystem) causing linux to be unbootable, unrepairable, and un-upgradeble (think windows dirty install). have never used it since. if you ask me, you're lucky PM 8 won't let you work on your ext3 linux partition.

Last edited by megaspaz; 06-21-2003 at 02:45 AM.
 
Old 06-21-2003, 11:40 AM   #8
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
if you want to convert ext3 to ext2
this is how you do it. do it from a rescue disk,
NOT with the partition mounted. I guess if
you had to you could be mounted read only.
that tune2fs has weird options names doesn't it.

tune2fs -O ^has_journal /dev/hdaX
fsck -f /dev/hdaX
 
Old 06-21-2003, 01:13 PM   #9
BxBoy
Member
 
Registered: Oct 2002
Location: New York City (nYc)
Distribution: Red Hat Enterprise 3
Posts: 93

Original Poster
Rep: Reputation: 15
So you're suggesting that I:

1) Convert to ext2
2) use PM8 to resize
3) Convert back to ext3?
 
Old 06-21-2003, 05:40 PM   #10
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
i was just telling you how, not suggesting.
parted would probably be best.
 
Old 06-21-2003, 09:24 PM   #11
KneeLess
Member
 
Registered: May 2003
Distribution: Debian GNU/Linux 3.0 Sid, OpenBSD 3.5
Posts: 190

Rep: Reputation: 30
When will people learn?

GNUParted is the best way to resize.

http://www.gnu.org/software/parted/parted.html
 
Old 08-24-2003, 02:07 PM   #12
ferreter
Member
 
Registered: Oct 2002
Location: USA, IL
Distribution: Debian/Gentoo/Slack
Posts: 215

Rep: Reputation: 30
I'm attempting to use parted as described on this forum with no avail. I continuously get the error:

Quote:
No Implementation: This ext2 filesystem has a rather strange layout! parted can't resize this (yet).
The file system is ext3. I've tried the knoppix 3.2 disk which now only includes qtparted which doesn't support ext3. I downloaded, burned, and am now running Mepis (debian based, similar to knoppix) which includes a 1.6 version of parted which gives the error described above.

Any ideas? I had a hell of a time getting parted on a boot disk as the gnu site is in lockdown with the parted boot images due to the recent hack. Now that I finally have it, its not functioning. What a pain in the arse.

Edit: I changed the ext3 partition to ext2 like so,
tune2fs -O^has_journal
and retried parted, I STILL get the same error on the console. Grrr..

Last edited by ferreter; 08-24-2003 at 02:29 PM.
 
Old 08-24-2003, 05:25 PM   #13
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
i think there's something else you have to clear to make
it really ext2. i'll look later. that tune2fs command
is horrible isn't it. maybe they don't want anybody running
it that can't figure out how to type it in the first place.
 
Old 08-24-2003, 11:13 PM   #14
ferreter
Member
 
Registered: Oct 2002
Location: USA, IL
Distribution: Debian/Gentoo/Slack
Posts: 215

Rep: Reputation: 30
Yeah, I converted to ext2, used resize2fs to shrink the partition as qtparted gave an error (as well as parted), reconverted to ext3, rebooted, and....still no change in partition size. I'm at my wits end on this one. I may have to go to a non-free alternative...that sucks.
 
Old 08-25-2003, 12:20 AM   #15
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
did the filesystem get shrunk, but the partition stayed
the same size?
 
  


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 12:56 PM.

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