LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Help using parted (https://www.linuxquestions.org/questions/linux-software-2/help-using-parted-270271/)

gauntalus 12-25-2004 04:05 PM

Help using parted
 
I'm looking for someone who's proficient with parted to help me out here. Currently my partition table looks like this:
Code:

(parted) print
Disk geometry for /dev/ide/host0/bus1/target0/lun0/disc: 0.000-57231.562 megabytes
Disk label type: msdos
Minor    Start      End    Type      Filesystem  Flags
1          0.031  28615.781  primary  fat32      boot, lba
2      38154.375  38193.596  primary  ext2
3      38193.596  39158.437  primary  linux-swap
4      39158.438  57231.562  primary  reiserfs

Notice there is a 10gig chunk missing between minor partitions 1 and 2. I basically want to slide everything back against the first partition, and stretch partition 4 to fill the rest of the drive. Also, if possible I'd like to shrink the swap partition from 1 gig to 512mb. So I want it to look about like this:

hdc1-30gigs-fat32
hdc2-32megs-ext2
hdc3-512mb-linux swap
hdc4-29gigs-reiserfs

I want everything to be contiguous so that the entire drive is used instead of having a big chunk missing from the middle :-)

homey 12-25-2004 05:24 PM

Moving #2 will be easy enough, make it to start at 28615.782 end at 28655.003

Edit: I forgot you need to move #3 to start at 28655.004 then resize it to
end at 29155.004
After you resize #4 , move it to start at 29167.005
then you can resize it again to use up the disk.

You will need to resize #4 to about 10gig before you can move it
( can't move a partition onto it's self )


gauntalus 12-25-2004 09:26 PM

Hey, when I tried moving #2, I get the same error whether or not i specify an end, have any ideas?
Code:

(parted) move 2 28615.782
No Implementation: This ext2 filesystem has a rather strange layout!  Parted
can't resize this (yet).
(parted) move 2 28615.782 28655.003
No Implementation: This ext2 filesystem has a rather strange layout!  Parted
can't resize this (yet).


homey 12-25-2004 10:03 PM

How does it work if you just put one command at a time? Where it prompts you what you want to move and start positition end postition ....

Edit: Just had a thought! Are you using an up-to-date version of parted? As in using Knoppix V3.7 or similar.

gauntalus 12-26-2004 02:41 AM

Hey, I tried using parted one command at a time, but received the same message. I also tried using parted from Knoppix 3.6, but got the same result yet again. Any more ideas?

I'm kind of in a rush to figure this out... I think if I can't get parted to do it by tomorrow I'm just going to reformat the linux partitions and reinstall gentoo over again :-( It's all I really have time for, I gotta go to my girlfriends for the holiday on the 29th, then I go back to school (by which time my computer needs to be ready to rock) on like the 5th...

Are you positive that I should be able to do this sort of rearranging with parted? It would surely save a lot of trouble... but it may be simply more timely to just format reinstall :-/

gauntalus 12-26-2004 03:40 PM

**bump** :confused: can anyone help? Nothing I try seems to work...


All times are GMT -5. The time now is 06:09 AM.