LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-25-2004, 04:05 PM   #1
gauntalus
Member
 
Registered: May 2004
Location: Hillsdale, MI
Distribution: gentoo 2004.3
Posts: 135

Rep: Reputation: 15
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 :-)
 
Old 12-25-2004, 05:24 PM   #2
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
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 )


Last edited by homey; 12-25-2004 at 05:48 PM.
 
Old 12-25-2004, 09:26 PM   #3
gauntalus
Member
 
Registered: May 2004
Location: Hillsdale, MI
Distribution: gentoo 2004.3
Posts: 135

Original Poster
Rep: Reputation: 15
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).
 
Old 12-25-2004, 10:03 PM   #4
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

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

Last edited by homey; 12-25-2004 at 10:06 PM.
 
Old 12-26-2004, 02:41 AM   #5
gauntalus
Member
 
Registered: May 2004
Location: Hillsdale, MI
Distribution: gentoo 2004.3
Posts: 135

Original Poster
Rep: Reputation: 15
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 :-/
 
Old 12-26-2004, 03:40 PM   #6
gauntalus
Member
 
Registered: May 2004
Location: Hillsdale, MI
Distribution: gentoo 2004.3
Posts: 135

Original Poster
Rep: Reputation: 15
**bump** can anyone help? Nothing I try seems to work...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
I need some help now, using Parted Ofvitinn Linux - Hardware 3 09-19-2004 08:28 PM
Using Parted Mathiasdm Linux - Software 7 08-23-2004 03:10 AM
Using parted jdmml Linux - Newbie 5 07-08-2004 08:39 PM
parted alaios Linux - General 5 04-29-2004 12:13 PM
Can parted do this? szf2 Linux - Newbie 1 10-24-2003 03:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:05 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