Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Resizing partitions - safe and easy way?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
tactless
l33t
l33t


Joined: 14 Jul 2002
Posts: 642
Location: Mitzpe Adi, Israel

PostPosted: Sun Apr 06, 2003 5:17 pm    Post subject: Resizing partitions - safe and easy way? Reply with quote

I have a pretty much ordinary 20GB IDE hard drive (Seagate Baracuda IV), partitioned into boot (ext3), swap, / (ext3) and /home (ext3). It seems that I've given too much space to /home (hda4), and too little to / (hda3). I want to transfer 2-3 GB... is there any reliable, relatively easy way to do this without data loss?
(I consider the Gentoo installation to be "relatively easy", don't go all-out looking for a pretty Qt GUI app that does this)
_________________
Tactless

"If it wasn't for fog, the world would run at a really crappy framerate."

Jabber: tactless@amessage.info
Back to top
View user's profile Send private message
MathFreak
Apprentice
Apprentice


Joined: 07 Jul 2002
Posts: 217
Location: Bethlehem, PA

PostPosted: Sun Apr 06, 2003 10:54 pm    Post subject: Reply with quote

You may want to check out parted. The homepage is http://www.gnu.org/software/parted and it's in portage. Unfortunately, ext2/3 partitions have to start on the same place, so I don't know if this will work.
There's also Partition Magic which comes with bootdisks and can resize ext3 partitions. That's not free however. Also, the same restrictions as parted may apply (I'm not sure).
If you're in an emergency, try clearing out some files from /usr/portage/distfiles to give yourself some breathing room.
Back to top
View user's profile Send private message
yngwin
Retired Dev
Retired Dev


Joined: 19 Dec 2002
Posts: 4572
Location: Suzhou, China

PostPosted: Tue Apr 08, 2003 7:33 pm    Post subject: Reply with quote

First of all: make a backup of important data!

Parted is the way to go I think. If you go the way of a commercial program, don't even think about PM, get Acronis Partition Expert instead: it's much more reliable, and less expensive as well!
_________________
"Those who deny freedom to others deserve it not for themselves." - Abraham Lincoln
Free Culture | Defective by Design | EFF
Back to top
View user's profile Send private message
tactless
l33t
l33t


Joined: 14 Jul 2002
Posts: 642
Location: Mitzpe Adi, Israel

PostPosted: Tue Apr 08, 2003 8:45 pm    Post subject: Reply with quote

Since /home is the last partition on the drive, I guess I can tar up everything important and store it elsewhere, and then recreate it. Absolutely no way to move ext3 partitions?
Also: Is parted reliable and relatively easy?
_________________
Tactless

"If it wasn't for fog, the world would run at a really crappy framerate."

Jabber: tactless@amessage.info
Back to top
View user's profile Send private message
PowerFactor
Veteran
Veteran


Joined: 30 Jan 2003
Posts: 1693
Location: out of it

PostPosted: Wed Apr 09, 2003 12:52 am    Post subject: Reply with quote

IMO parted is reliable, and not hard to use. Definately RTM first though. Depending on how much stuff is in /home you might be able to shrink it enough to move it around. IIRC you can move an ext3 partition with parted as long as the destinition doesn't overlap the source. IOW you cant just slide a 7gig partition over 2 gigs, you have to move it at least 7gig in either direction.
Back to top
View user's profile Send private message
crimson
Guru
Guru


Joined: 27 Apr 2002
Posts: 430
Location: Cedar Rapids, IA

PostPosted: Thu Apr 10, 2003 6:07 am    Post subject: Reply with quote

Are there any Linux programs besides parted that can resize ext3 partitions? Unfortunately parted can't move the beginning of ext2/3 partitions so, I can't make my root filesystem any bigger since it's at the very end of the hard drive. I do have partition magic, and regardless of what people say it is an excellent program and I"ve never had trouble with it, but I like to do things the Linux way even if it is a little harder and dangerous sometimes.
Back to top
View user's profile Send private message
PowerFactor
Veteran
Veteran


Joined: 30 Jan 2003
Posts: 1693
Location: out of it

PostPosted: Thu Apr 10, 2003 5:59 pm    Post subject: Reply with quote

crimson wrote:
Are there any Linux programs besides parted that can resize ext3 partitions? Unfortunately parted can't move the beginning of ext2/3 partitions so, I can't make my root filesystem any bigger since it's at the very end of the hard drive.
Well, the only way I know of is with fdisk + dd + resize2fs. But I've never tried that combination to move the beginning of the partition so I don't know if that would work. In theory I think it could. Anybody done that?
As far as other all in one partition resizers I think parted is pretty much it for linux. I could very well be wrong about that though.
Back to top
View user's profile Send private message
Calbar
n00b
n00b


Joined: 04 Jan 2003
Posts: 5

PostPosted: Thu Apr 10, 2003 9:50 pm    Post subject: qtparted Reply with quote

take a look at qtparted !!! it's a qt-based app that use both ntfsprogs and parted --> resizing of NTFS.

qtparted.sourceforge.net
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum