je veux ajouter sur une machine existante déjà en multiboot :
- Arch bien sûr
- et Lubuntu (oh le vilain !!!)
J'ai installé Arch sur une partition donnée à lvm
puis Lubuntu sur une partition normale
problème :
-je n'ai pas mis mon /boot d'Arch sur une partition à part hors lvm
-le wiki indique que c'est faisable avec grub2 http://wiki.archlinux.fr/LVM
- et il y a des indications ici : https://wiki.archlinux.org/index.php/Grub2#LVM
ce que j'ai fait:
!!!! sous Lubuntu que j'ai installé juste après Arch !!!! :
Code : Tout sélectionner
~$ sudo apt-get install lvm2
~$ sudo modprobe dm-mod
~$ sudo vgscan
Reading all physical volumes. This may take a while...
Found volume group "mvg" using metadata type lvm2
~$ sudo vgchange -ay
The link /dev/mvg/Vol1 should had been created by udev but it was not found. Falling back to direct link creation.
The link /dev/mvg/Vol2 should had been created by udev but it was not found. Falling back to direct link creation.
2 logical volume(s) in volume group "mvg" now active
Code : Tout sélectionner
~$ sudo os-prober
/dev/sda1:Windows Recovery Environment (loader):Windows:chain
/dev/sda10:Ubuntu 11.04 (11.04):Ubuntu:linux
/dev/sda2:Windows 7 (loader):Windows1:chain
/dev/sda5:Ubuntu 11.04 (11.04):Ubuntu1:linux
/dev/sda9:Linux Mint Debian Edition (1):LinuxMint:linux
/dev/mapper/mvg-Vol1::Arch:linux
~$ sudo update-grub
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.0.0-12-generic-pae
Found initrd image: /boot/initrd.img-3.0.0-12-generic-pae
Found linux image: /boot/vmlinuz-3.0.0-12-generic
Found initrd image: /boot/initrd.img-3.0.0-12-generic
Found memtest86+ image: /boot/memtest86+.bin
Found Windows Recovery Environment (loader) on /dev/sda1
Found Ubuntu 11.04 (11.04) on /dev/sda10
Found Windows 7 (loader) on /dev/sda2
Found Ubuntu 11.04 (11.04) on /dev/sda5
Found Linux Mint Debian Edition (1) on /dev/sda9
Found Arch on /dev/mapper/mvg-Vol1
done
~$ sudo grub-install /dev/sda
Installation finished. No error reported.
où j'en suis :
au démarrage, grub (1.99) voit bien Arch mais :
Code : Tout sélectionner
(...)
:: Triggering uevents...done
waiting 10 seconds for device /dev/mapper/mvg-Vol1
root device '/dev/mapper/mvg-Vol1'doesn't exist'
(etc)
mon grub.cfg me semble correct :
Code : Tout sélectionner
menuentry "Arch Linux (on /dev/mapper/mvg-Vol1)" --class gnu-linux --class gnu --class os {
insmod lvm
insmod part_msdos
insmod ext2
set root='(mvg-Vol1)'
search --no-floppy --fs-uuid --set=root 20288f13-91b5-4007-9791-0c7047639656
linux /boot/vmlinuz-linux root=/dev/mapper/mvg-Vol1 ro
initrd /boot/initramfs-linux.img
}
menuentry "Arch Linux Fallback (on /dev/mapper/mvg-Vol1)" --class gnu-linux --class gnu --class os {
insmod lvm
insmod part_msdos
insmod ext2
set root='(mvg-Vol1)'
search --no-floppy --fs-uuid --set=root 20288f13-91b5-4007-9791-0c7047639656
linux /boot/vmlinuz-linux root=/dev/mapper/mvg-Vol1 ro
initrd /boot/initramfs-linux-fallback.img
}
### END /etc/grub.d/30_os-prober ###