LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-25-2006, 08:09 PM   #1
CloudBuilder
Member
 
Registered: May 2003
Location: Netherlands
Distribution: Ubuntu, Puppy
Posts: 386

Rep: Reputation: 30
resize a partition


Hello everybody,

I have a HD with 4 partitions. Partition 4 is a logical and divided in 4 other partitions.
So I can use 7 partitions.

The problem is that partition 3 is to small. I can resize some of the other partitions, but it seems that Gparted does not allow to move the beginning of the partition.

Since this system has only linux I am looking for some possibility to resize the partition. ( I have already put all my personal files on another partition that is mounted in the file system but that is not enough).

Any hint is welcome.

Thanks

CloudBuilder
 
Old 07-26-2006, 02:22 AM   #2
1dude1
Member
 
Registered: Jan 2006
Location: Steamboat Springs, CO
Distribution: hda1= swap hda2=gentoo hda3=music hda4=slackware10.2
Posts: 101

Rep: Reputation: 15
can you list your partition scheme like p1 (partition 1) primary 1,000 mb swap
p2 (partition 2) primary 20,000 mb linux
p3 (partition 3) primary 15,000 mb linux
p4 (partition 4) extended 21,000 mb logical
P5 (partition 5) logical 1,000 mb linux
p6 (partition 6) logical 20,000 mb linux
this is how mine looks let me see yours and maybe i can help
 
Old 07-26-2006, 02:23 AM   #3
sailu_mvn
Member
 
Registered: Sep 2004
Location: Hyderabad
Distribution: FEDORA,REDHAT,HOST
Posts: 440
Blog Entries: 1

Rep: Reputation: 30
try using qtparted.
 
Old 07-26-2006, 02:26 AM   #4
prozac
Member
 
Registered: Oct 2005
Location: Australia
Distribution: slackware 12.1
Posts: 753

Rep: Reputation: 32
if you are not using lvm, i have no suggestions. with lvm, there should be no problems.lvm howto is all you need.
 
Old 07-26-2006, 11:41 AM   #5
CloudBuilder
Member
 
Registered: May 2003
Location: Netherlands
Distribution: Ubuntu, Puppy
Posts: 386

Original Poster
Rep: Reputation: 30
Excuse me, I told GTparted it should be QT parted.

With QT parted I can resize, but the starting point of the partition cannot change.

How is it with parted?
Exampel :
Par 3 starts at 52 Gb and ends at 64 GB so it is about 12 GB.
I want to resize it from 12 to 8, this is not the problem, and then move it so it begins at 56GB. So I want to move the beginning at 52GB to 56GB.
Next I can resize the previous par (par2).

Qtparted does not allow to change the beginning, only the end.

CloudBuilder

Last edited by CloudBuilder; 07-26-2006 at 11:43 AM.
 
Old 07-26-2006, 08:19 PM   #6
Xena
Member
 
Registered: Nov 2005
Posts: 84

Rep: Reputation: 15
As far as I'm aware, you can resize a partition by shrinking/growing it by moving the END of the partition. You cannot move the *start* of the partition, once you've set that, it's fixed. Moving it would require moving the whole partition with it.

So, to resize a partition... you can only move the end. Not the beginning.
 
Old 07-26-2006, 08:59 PM   #7
konsolebox
Senior Member
 
Registered: Oct 2005
Distribution: Gentoo, Slackware, LFS
Posts: 2,248
Blog Entries: 8

Rep: Reputation: 235Reputation: 235Reputation: 235
hello. it's also advisable to defragment the partition first before doing the resize. that's if you want to save the date inside it.
 
Old 07-27-2006, 11:10 AM   #8
CloudBuilder
Member
 
Registered: May 2003
Location: Netherlands
Distribution: Ubuntu, Puppy
Posts: 386

Original Poster
Rep: Reputation: 30
Ok I cannot move the beginning of the P.

What about the following scenario:

I copy the contents of the P to another partition. (this means I have to copy everything that is in the logical one perhaps with DD)

Delete the logical and activate it after leaving som space.
Then I put the other P's back in place and resize P3.
Should be possible I think.
Something I forget ? No problems with Grub ?


Another scenario could be :
Make a new lager partition in the logical.
Copy everything over there.
Then I have to change \etc\fstab and menu.lst in Grub
Seems less time consuming :-) Did I forget something ?

Thanks for your input....

CloudBuilder

Last edited by CloudBuilder; 07-27-2006 at 11:13 AM.
 
Old 07-27-2006, 01:11 PM   #9
Xena
Member
 
Registered: Nov 2005
Posts: 84

Rep: Reputation: 15
Possible (I think), but you'd better be VERY sure you got everything backed up safely.

Wouldn't a better idea be a new hard-drive, and simply a sym-link to a partition on that new drive? It's what I do, works well enough. Certainly less time-consuming and dangerous than fiddling with partitions!
 
Old 08-02-2006, 11:33 AM   #10
monsm
Member
 
Registered: Feb 2005
Location: London, UK
Distribution: Gentoo
Posts: 568

Rep: Reputation: 37
resizing extended partition

I run into a similar problem when I attempted to dual boot XP and ubuntu. I have a 20G 1st primary partition for XP and the rest is the extended with 2 logical partitions.
I tried and failed lots to shrink this extended one until I found that partition magic (possibly others too) will allow you to change a logical to primary partition. When doing this the logical partition is moved out of the extended, so presto, the extended one shrinks

I only converted the last logical though, so I haven't tried to convert e.g. the first one in the extended set...
 
  


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
Unable to Resize NTFS partition with 4 different partition editors Alexandrian Linux - Newbie 11 05-19-2006 07:09 PM
Disk Partition Resize Trouble and Partition Questions GNewbie Linux - Newbie 2 11-15-2005 05:15 PM
How to resize a partition and create/mount a new partition? Maarten_Holland Linux - Newbie 1 04-20-2005 09:56 AM
Partition Out Of Space? How to resize from another partition? colelinux Linux - Newbie 6 03-16-2004 09:48 AM
resize an ext3 partition with coexisting ntfs partition andy_g Linux - Newbie 1 02-03-2004 06:38 AM


All times are GMT -5. The time now is 02:49 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration