Re: Partition table entries are not in disk order=?Problem

Originally Posted by
drs305
For those wishing to do so, here is the procedure.
FWIW, when only logical partitions are out of order, my FixParts program does this automatically -- just launch the program and type "w" to save the changes. (It's always wise to verify you're working on the right disk by typing "p" to check the partitions, though. This also lets you verify that the partitioning tool has correctly read all the partitions.)

Originally Posted by
drs305
It is not a problem.
I'd like to reiterate this point, and add that there's always a risk of damage when messing with partition tables. I know that mikodo has done the modification without problems, but an error (user error, a bug in a program, a power failure at exactly the wrong moment, etc.) can cause the partition definitions to be lost, and that will take a lot of effort to correct. It's just not worth the risk for something like this. Note that there's no "IMHO" in that statement.

Originally Posted by
loomsen
You may only have 4 primary partitions, so if you set up your partition table with only 3 primary partitions and one of them as an extended, this will always be out of order.
Not quite; with that setup, there will necessarily be a gap in the numbering, but the partitions that are there can be in order.

Originally Posted by
loomsen
Your dmesg should also show how your current set up looks like.
The dmesg command displays the kernel ring buffer, which contains messages generated by the kernel. Mostly these relate to hardware detection and errors. Among many other things, these messages will show you how many partitions you've got and how they're numbered, but they won't say anything about partition sizes. For instance:
Code:
[ 5.499096] sd 1:0:1:0: [sdb] 625142448 512-byte logical blocks: (320 GB/298 GiB)
[ 5.499129] sd 1:0:1:0: [sdb] Write Protect is off
[ 5.499131] sd 1:0:1:0: [sdb] Mode Sense: 00 3a 00 00
[ 5.499149] sd 1:0:1:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 5.499235] sdb: sdb1 sdb2 sdb3
That last line indicates the disk has three partitions, /dev/sdb1 through /dev/sdb3. (On a disk with extended and logical partitions, that arrangement is indicated, IIRC.) There's nothing there about partition sizes or types. For such information, you've got to use a partitioning tool like fdisk, parted, GParted, or gdisk.

Originally Posted by
aj_84@live.co.uk
can you help me how to put this in order, i have three primary partition and one extended partition. I just want to get the linux versions together.
Your Linux partitions are contiguous in on-disk space; the last two (your logical partitions) are just out of order in their numbering sequence. This is unimportant, and as I wrote earlier, changing your partitions just to "fix" this is inadvisable. Basically, your disk isn't broken, and there's wisdom to the saying, "if it ain't broke, don't fix it."
FWIW and for future reference, it's generally best to put a swap partition in-between Linux partitions (in terms of actual partition sectors, not necessarily the partition numbers). This minimizes head seek movements when accessing swap space, thus improving performance. Since swap space is rarely used today, though, I wouldn't advise trying to change your existing configuration; you'll spend more time trying to improve performance than you could possibly save by optimizing your swap file placement, and you'll run the risk of creating bigger problems. It's just something to keep in mind for the next time you partition a disk.
If I've suggested a solution to a problem and you're not the original poster, do not try my solution! Problems can seem similar but be different, and a good solution to one problem can make another worse. Post a new thread with your problem details.
Bookmarks