Une gestion du multi-boot de plusieurs installations de Ubuntu sur un même disque dur (fait dans VirtualBox avec EFI activé) :
http://paste.ubuntu.com/1226265/
Comme c'est un peu long, j'extrais la partie qui montre le multi-boot :
Boot Info Script 0.61.full + Boot-Repair extra info [Boot-Info September 18th 2012]
============================= Boot Info Summary: ===============================
=> No boot loader is installed in the MBR of /dev/sda.
sda1: __________________________________________________________________________
File system: vfat
Boot sector type: FAT16
Boot sector info: According to the info in the boot sector, sda1 starts
at sector 0. But according to the info from fdisk,
sda1 starts at sector 2048. According to the info in
the boot sector, sda1 has 0 sectors.
Operating System:
Boot files: /efi/ubuntu/grubx64_sda13_oneiric.efi
/efi/ubuntu/grubx64_sda14_precise.efi
/efi/ubuntu/grubx64_sda16_oneiric.efi
/efi/ubuntu/grubx64_sda2_oneiric.efi
/efi/ubuntu/grubx64_sda3_oneiric.efi
/efi/ubuntu/grubx64_sda5_precise.efi
/efi/ubuntu/grubx64_sda6_oneiric.efi
sda2: __________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 11.10
Boot files: /boot/grub/grub.cfg /etc/fstab
sda3: __________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 11.10
Boot files: /boot/grub/grub.cfg /etc/fstab
sda4: __________________________________________________________________________
File system: vfat
Boot sector type: FAT16
Boot sector info: According to the info in the boot sector, sda4 starts
at sector 0. But according to the info from fdisk,
sda4 starts at sector 104986624. According to the info
in the boot sector, sda4 has 0 sectors.
Operating System:
Boot files: /efi/ubuntu/grubx64_sda13_oneiric.efi
/efi/ubuntu/grubx64_sda14_precise.efi
/efi/ubuntu/grubx64_sda16_oneiric.efi
/efi/ubuntu/grubx64_sda2_oneiric.efi
/efi/ubuntu/grubx64_sda3_oneiric.efi
/efi/ubuntu/grubx64_sda5_precise.efi
/efi/ubuntu/grubx64_sda6_oneiric.efi
sda5: __________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 12.04.1 LTS
Boot files: /boot/grub/grub.cfg /etc/fstab
sda6: __________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 11.10
Boot files: /boot/grub/grub.cfg /etc/fstab
sda7: __________________________________________________________________________
File system: vfat
Boot sector type: FAT16
Boot sector info: According to the info in the boot sector, sda7 starts
at sector 0. But according to the info from fdisk,
sda7 starts at sector 43008. According to the info in
the boot sector, sda7 has 0 sectors.
Operating System:
Boot files: /efi/ubuntu/grubx64.efi
sda8: __________________________________________________________________________
File system: vfat
Boot sector type: FAT16
Boot sector info: According to the info in the boot sector, sda8 starts
at sector 0. But according to the info from fdisk,
sda8 starts at sector 83968. According to the info in
the boot sector, sda8 has 0 sectors.
Operating System:
Boot files: /efi/ubuntu/grubx64.efi
sda9: __________________________________________________________________________
File system: vfat
Boot sector type: FAT16
Boot sector info: According to the info in the boot sector, sda9 starts
at sector 0. But according to the info from fdisk,
sda9 starts at sector 124928. According to the info in
the boot sector, sda9 has 0 sectors.
Operating System:
Boot files: /efi/ubuntu/grubx64.efi
sda10: _________________________________________________________________________
File system: vfat
Boot sector type: FAT16
Boot sector info: According to the info in the boot sector, sda10
starts at sector 0. But according to the info from
fdisk, sda10 starts at sector 165888. According to the
info in the boot sector, sda10 has 0 sectors.
Operating System:
Boot files: /efi/ubuntu/grubx64.efi
sda11: _________________________________________________________________________
File system: vfat
Boot sector type: FAT16
Boot sector info: According to the info in the boot sector, sda11
starts at sector 0. But according to the info from
fdisk, sda11 starts at sector 206848. According to the
info in the boot sector, sda11 has 0 sectors.
Operating System:
Boot files: /efi/ubuntu/grubx64.efi
sda12: _________________________________________________________________________
File system: swap
Boot sector type: -
Boot sector info:
sda13: _________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 11.10
Boot files: /boot/grub/grub.cfg /etc/fstab
sda14: _________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 12.04.1 LTS
Boot files: /boot/grub/grub.cfg /etc/fstab
sda15: _________________________________________________________________________
File system: swap
Boot sector type: -
Boot sector info:
sda16: _________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 11.10
Boot files: /boot/grub/grub.cfg /etc/fstab
sda17: _________________________________________________________________________
File system: vfat
Boot sector type: FAT16
Boot sector info: According to the info in the boot sector, sda17
starts at sector 0. But according to the info from
fdisk, sda17 starts at sector 247808. According to the
info in the boot sector, sda17 has 0 sectors.
Operating System:
Boot files: /efi/ubuntu/grubx64.efi
sda18: _________________________________________________________________________
File system: vfat
Boot sector type: FAT16
Boot sector info: According to the info in the boot sector, sda18
starts at sector 0. But according to the info from
fdisk, sda18 starts at sector 288768. According to the
info in the boot sector, sda18 has 0 sectors.
Operating System:
Boot files: /efi/ubuntu/grubx64.efi
============================ Drive/Partition Info: =============================
Drive: sda _____________________________________________________________________
Disk /dev/sda: 53.8 GB, 53774123008 bytes
255 heads, 63 sectors/track, 6537 cylinders, total 105027584 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
Partition Boot Start Sector End Sector # of Sectors Id System
/dev/sda1 1 105,027,583 105,027,583 ee GPT
GUID Partition Table detected.
Partition Start Sector End Sector # of Sectors System
/dev/sda1 2,048 43,007 40,960 EFI System partition
/dev/sda2 93,169,585 104,985,991 11,816,407 Data partition (Windows/Linux)
/dev/sda3 616,448 13,800,041 13,183,594 Data partition (Windows/Linux)
/dev/sda4 104,986,624 105,025,535 38,912 Data partition (Windows/Linux)
/dev/sda5 83,403,959 93,169,584 9,765,626 Data partition (Windows/Linux)
/dev/sda6 13,800,974 32,386,911 18,585,938 Data partition (Windows/Linux)
/dev/sda7 43,008 83,967 40,960 Data partition (Windows/Linux)
/dev/sda8 83,968 124,927 40,960 Data partition (Windows/Linux)
/dev/sda9 124,928 165,887 40,960 Data partition (Windows/Linux)
/dev/sda10 165,888 206,847 40,960 Data partition (Windows/Linux)
/dev/sda11 206,848 247,807 40,960 Data partition (Windows/Linux)
/dev/sda12 32,386,912 34,480,127 2,093,216 Swap partition (Linux)
/dev/sda13 34,519,191 54,107,081 19,587,891 Data partition (Windows/Linux)
/dev/sda14 54,146,145 67,640,285 13,494,141 Data partition (Windows/Linux)
/dev/sda15 67,640,286 69,732,082 2,091,797 Swap partition (Linux)
/dev/sda16 69,771,146 81,312,161 11,541,016 Data partition (Windows/Linux)
/dev/sda17 247,808 288,767 40,960 Data partition (Windows/Linux)
/dev/sda18 288,768 329,727 40,960 Data partition (Windows/Linux)
"blkid" output: ________________________________________________________________
Device UUID TYPE LABEL
/dev/sda1 F0F1-156C vfat
/dev/sda10 4425-C951 vfat bootsda14
/dev/sda11 4449-93E2 vfat bootsda16
/dev/sda12 82096782-27c6-432d-869b-d1ab52a0c835 swap
/dev/sda13 1ef5ca5f-ec90-4340-990f-885cecc1058f ext4
/dev/sda14 af15dd2b-b43d-4233-9ffa-2268a21cb938 ext4
/dev/sda15 b930db26-ebe8-4afe-bf63-51dd8da11d02 swap
/dev/sda16 69e7e65c-e985-4414-a564-5de2921271af ext4
/dev/sda17 9CBF-2DC7 vfat bootsda5
/dev/sda18 9F6D-5473 vfat bootsda2
/dev/sda2 ea855191-866b-4469-a79b-c52bde5bf417 ext4
/dev/sda3 2ce28027-8d12-41fd-a113-55389e9d1030 ext4
/dev/sda4 DE79-D693 vfat
/dev/sda5 f49b01be-9c74-4a26-9086-10f8b7a77c03 ext4
/dev/sda6 6dfe68ed-572e-4169-8a79-37b591b42add ext4
/dev/sda7 23C1-B6C2 vfat bootsda3
/dev/sda8 43E1-2D39 vfat bootsda6
/dev/sda9 4403-8492 vfat bootsda13
Quelques commentaires :
- la partition sda1 est une sorte de menu des lanceurs qui est confectionné "à la main". C'est à dire que chaque lanceur est une copie du véritable lanceur que j'ai renommée. Par exemple, le lanceur /efi/ubuntu/grubx64_sda13_oneiric.efi qui se trouve sur sda1 est une copie du lanceur /efi/ubuntu/grubx64.efi qu'on peut voir dans sda9. En cas de mise à jour de Grub de sda13_oneiric, il est possible que le fichier grubx64.efi de sda9 soit modifié. Dans ce cas, il faudra que je mette aussi à jour la copie que j'ai faite dans sda1. A noter qu'on n'est absolument pas obligé de faire cette sorte de table des matières comme je l'ai fait en rassemblant des lanceurs dans sda1 : on peut se contenter de créer des entrées dans le "Boot Maintenance manager" du système EFI qui pointent directement sur les vrais lanceurs et pas sur leur copie.
- la partition sda4, placée en fin de disque dur, est une copie de secours de la partition sda1 (au cas où sda1 serait écrasée ou dégradée)
- dans la partie ""blkid" output" de l'extrait, on peut voir "qui lance quoi" parce que j'ai renseigné les labels des partitions qui contiennent les lanceurs. Par exemple, on voit que la partition sda10 contient le lanceur pour sda14 qui est une installation de Ubuntu 12.04.1 LTS