Click to See Complete Forum and Search --> : Resize Partitions With parted


slacker_x
07-08-2001, 06:53 PM
one of my hard drives is partitioned /hdb1 and /hdb5 I would like to move the data from the logical partition /hdb5 to the primary partition /hdb1 and make /hdb1 the size of the whole drive. Is it possible to do this with parted?

If it is possible, is it very dangerous?

bdg1983
07-08-2001, 07:06 PM
You could copy the data from hdb5 to hdb1, delete hdb5 and then resize hdb1 to take up the freed up space from hdb5. Or backup the data in hdb5 to some other media, delete, resize and the restore.

Not sure if Parted has the capability to merge partitions especially a logical to a primary.

I think Partition Magic 6 has a merge feature, but again may not merge logical to primary.

slacker_x
07-08-2001, 07:14 PM
The problem is that when I was partitioning the drive I ****ed up all my data 19 gigs is on /hdb5. /hdb1 is only about 8 megs. I tried to move data back to /hdb1 with partition magic, but it wouldn't work.

How about this? could I manually move and resize?

in other words, take free space from /hdb5 and put it into /hdb1 and then copy some files over and repeat until all the data was on /hdb1?

Rob 'Feztaa' Park
07-08-2001, 10:01 PM
that'd be a very arduous process.

I recommend backing up to an external media (burn to DVD, tape drive backup, etc), and then just deleting hdb5 and resizing hdb1, and then restoring everything.

It's a lot like the Chinese Tree Puzzle, but that's another story :)