[ubuntu-uk] how to change hdd/partition numbering

Vitorio Okio ovitorio at hotmail.com
Wed Jan 23 20:09:09 GMT 2008

On Wed, 23 Jan 2008 16:08:14 +0000, Tom Bamford wrote:

> You can renumber your partitions but you'll need a live CD to do it
> with. Assuming you have either backed up your entire system or you don't
> care if you nuke it by accident or by means of a power cut - boot off
> the live cd, then run (in a terminal window)
> sudo fdisk /dev/sda
> Press x to go into the fdisk advanced menu, then press f to fix the
> partition order. You'll need to update your grub configuration, so mount
> your /boot (or /) partition in a temporary location and locate your
> system's /boot/grub/menu.lst file. Update any partition references in
> the notation "hd(0,1)" - the second number may have to be knocked down
> one to reflect the new order.
> I would also check to see if any of your partition UUIDs have changed as
> a result of renumbering them. Open your grub menu file in one window and
> a terminal in the other. Run this command in the terminal
> ls -l /dev/disk/by-uuid
> to list your partition UUIDs and manuall inspect your grub file to make
> sure they match up. Make any corrections where necessary, making sure
> the line "root=UUID=1234567890" parameter is correct on any line
> beginning with the word "kernel". Once done, save the menu file, unmount
> your partitions and reboot your system. Hopefully it will boot, if not
> then note down any errors and reboot into the live CD.

Looks like a great solution. I'll give it a try.

Thank you.

More information about the ubuntu-uk mailing list