LinuxQuestions.org
Register a domain and help support LQ
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 09-14-2009, 06:51 AM   #1
Olaus
Member
 
Registered: Apr 2006
Location: Sweden
Distribution: Slackware64 14.1 multilib
Posts: 112

Rep: Reputation: 16
gparted - does the extended partition need to be the last one?


I have this HD partition table, according to gparted:
sda1: Dell tools (partition hidden from Win XP)
sda2: Windows XP
sda3: Dell recovery (partition hidden from Win XP)

I would like to shrink sda2 in order to add an extended partition right of it.
If I do like this, will sda3 find itself as something else after this operation (because it wont be the third partition any more), or is it advisable to move sda3 between the shrunk sda2 and the new, empty space right of it so that the extended partition will be the last one?

That is:

sda1 - sda2 - empty space - sda3
or
sda1 - sda2 - sda3 - empty space
 
Old 09-14-2009, 07:00 AM   #2
serafean
Member
 
Registered: Mar 2006
Location: Czech Republic
Distribution: Gentoo, Chakra
Posts: 871
Blog Entries: 9

Rep: Reputation: 103Reputation: 103
Hi,

my partitions are all mixed up, but all still have the correct label (sdaX) eg : sda1 - sda2 -sda4 - sda3 and it works normally. From what I understand, the place of the partition on the disk doesn't determine its number, the order of creation does. You can have just one primary partition that is the extended container, and that full of extended partitions; this to say that the extended doesn't have to be last.

Ususal safety rules still apply : backup all data (at least critical) and keep a LiveCD with disk recovery tools...

Serafean
 
Old 09-14-2009, 08:46 AM   #3
ajlewis2
Member
 
Registered: Nov 2003
Distribution: Ubuntu
Posts: 217

Rep: Reputation: 46
Yes, sda4 will be created and sda3 will remain where it is. Partition numbers get mixed up and create havoc when you delete a partition, though. I have some early bad experience doing that. :-)
 
Old 09-17-2009, 08:54 AM   #4
Olaus
Member
 
Registered: Apr 2006
Location: Sweden
Distribution: Slackware64 14.1 multilib
Posts: 112

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by ajlewis2 View Post
Yes, sda4 will be created and sda3 will remain where it is. Partition numbers get mixed up and create havoc when you delete a partition, though. I have some early bad experience doing that. :-)
So, what happened that time? Just curious to know, so that I don't repeat the same mistake :-)
 
Old 09-17-2009, 12:22 PM   #5
ajlewis2
Member
 
Registered: Nov 2003
Distribution: Ubuntu
Posts: 217

Rep: Reputation: 46
Quote:
Originally Posted by Olaus View Post
So, what happened that time? Just curious to know, so that I don't repeat the same mistake :-)
Yours got out of order, but what I mean is that the numbers actually change if you delete. For example, let's say you have sda1 primary and sda2 extended with sda5, sda6, sda7 as logical. Then you decided to delete sda6. Bad news is that sda7 becomes sda6 and anything pointing to sda7 no longer points there. That's what I mean by messed up. The partition number of sda7 actually changes. It will still be in the same location block-wise, but the number will change. And if you make a new partition using the space that you emptied when you deleted sda6, it will now be partition number 7.

I would not consider what you have with them not being in order according to the block numbers as being a mistake.
 
Old 09-18-2009, 05:01 PM   #6
serafean
Member
 
Registered: Mar 2006
Location: Czech Republic
Distribution: Gentoo, Chakra
Posts: 871
Blog Entries: 9

Rep: Reputation: 103Reputation: 103
This partition numbering havoc can be worked around by mounting partitions either by label or UUID (for instance my /home is mounted with /dev/disk/by-uuid/b185af67-10e1-4420-b5cd-6a2d6035fe87 in fstab). just my $0.02

you get the uuid of your partition by running "blkid" in a terminal while its mounted

Serafean
 
  


Reply

Tags
gparted, partitioning


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
How can I create extended partition without GParted? alan_ri Linux - Hardware 27 02-10-2008 06:31 PM
Gparted for a new partition mcbenus Linux - Software 10 09-09-2007 08:37 PM
[SOLVED] Safety: Primary Partition and Extended (Logical) Partition MBA Whore Linux - Security 11 01-03-2007 02:05 PM
Moving from extended partition to primary partition joelbudgor Linux - General 5 05-26-2004 06:08 PM
Booting from an extended partition - need a partition table editor Ouch_Taser Linux - General 2 02-10-2004 06:22 PM


All times are GMT -5. The time now is 05:42 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration