web-dev-qa-db-fra.com

Comment démarrer Ubuntu 14.04 avec grub4dos (RMPrepUSB)

Après avoir téléchargé Ubuntu 14.04, je l’exécuterais à partir d’une clé USB amorçable.

J'ai déjà la clé USB amorçable avec grub4dos et je cherchais un "guide post" avec la commande permettant de démarrer Ubuntu 14.04. Mais je n'ai pas trouvé.

Mon linux.lst (appelé par menu.lst) contient:

title Run Ubuntu 14.04
find --set-root /BOOT/Linux/ubuntu-14.04.1-desktop-AMD64.iso
map /BOOT/Linux/ubuntu-14.04.1-desktop-AMD64.iso (0xff) || map --mem /BOOT/Linux/ubuntu-14.04.1-desktop-AMD64.iso (0xff)
map --hook
root (0xff)
kernel /casper/vmlinuz.efi  file=/cdrom/ubuntu.seed noprompt boot=casper iso-scan/filename=/BOOT/Linux/ubuntu-14.04.1-desktop-AMD64.iso quiet splash --
initrd /casper/initrd.lz

Erreur sur la console Grub:
Erreur 15: Fichier non trouvé

Pourquoi ça ne marche pas? Qu'est-ce qui ne va pas?

Merci à vous tous.

[[Modifié le 9 mars 2015 par @bummy, traduit du portugais avec Google Translate]

3
Matt Mello

En cherchant une solution, j'ai finalement trouvé l'erreur et le code correct pour la démarrer (ça marche toujours pour moi):

title Run Ubuntu 14.04
find --set-root /BOOT/Linux/ubuntu-14.04.1-desktop-AMD64.iso
map /BOOT/Linux/ubuntu-14.04.1-desktop-AMD64.iso (0xff) || map --mem /BOOT/Linux/ubuntu-14.04.1-desktop-AMD64.iso (0xff)
map --hook
root (0xff)
kernel /casper/vmlinuz.efi  file=/preseed/ubuntu.seed noprompt boot=casper iso-scan/filename=/BOOT/Linux/ubuntu-14.04.1-desktop-AMD64.iso quiet splash --
initrd /casper/initrd.lz

L'erreur était le chemin d'accès à ubuntu.seed. Le chemin correct est /preseed (plutôt que /cdrom).

Remarques:

  • Cela n'avait pas fonctionné avec un Ubuntu 12.04 (non-LTS) que j'avais ici.

  • N'oubliez pas de remplacer le chemin "/BOOT/Linux/ubuntu14.04.iso" par le chemin où se trouve réellement votre fichier "ISO".

Références: http://www.rmprepusb.com/tutorials/grub4dos

Merci à tous;)

2
Matt Mello

Les deux ne fonctionnent pas. Ne fonctionne que cette variante:

title Install Ubuntu 14.04 AMD64
find --set-root /iso/ubuntu-14.04-desktop-AMD64.iso
map --unmap=0:0xff
map --unhook
root (hd0,0)
map /iso/ubuntu-14.04-desktop-AMD64.iso (0xff) || map --mem /iso/ubuntu-14.04-desktop-AMD64.iso (0xff) || map --mem --heads=0 --sectors-per-track=0 /iso/ubuntu-14.04-desktop-AMD64.iso (0xff)
map --hook
root (0xff)
kernel /casper/vmlinuz.efi file=/cdrom/preseed/ubuntu.seed boot=casper iso-scan/filename=/iso/ubuntu-14.04-desktop-AMD64.iso quiet splash --
errorcheck off
initrd /casper/initrd.lz
errorcheck on
map --unmap=0:0xff
2
Nick Olas

Pour mémoire, le menu ci-dessous démarre Ubuntu 16.04 (Xenial) sur une machine 32 bits:

title Run Ubuntu 16.04 32-bit
find --set-root /ubuntu-16.04-desktop-i386.iso
map --heads=0 --sectors-per-track=0 /ubuntu-16.04-desktop-i386.iso (0xff) || map --mem /ubuntu-16.04-desktop-i386.iso (0xff)
map --hook
root (0xff)
kernel /casper/vmlinuz  file=/preseed/ubuntu.seed noprompt boot=casper iso-scan/filename=/ubuntu-16.04-desktop-i386.iso quiet splash --
initrd /casper/initrd.lz

title supergrub2disk iso
map --heads=0 --sectors-per-track=0 (hd0,0)/super_grub2_disk_hybrid_2.02s3.iso (hd32)
map --hook
chainloader (hd32)
boot
1
dzmanto

copier .disk, casper, preseed sur flashdrive.

gedit menu.lst

title Try Ubuntu without installing
kernel /casper/vmlinuz file=/preseed/ubuntu.seed boot=casper 
initrd /casper/initrd.lz 

title Ubuntu installing
kernel /casper/vmlinuz file=/preseed/ubuntu.seed only-ubiquity boot=casper 
initrd /casper/initrd.lz`

testé sur Ubuntu 10.10

0
darno

cela fonctionne pour moi avec grub4dos

kernel /casper/vmlinuz.efi  file=/preseed/ubuntu.seed noprompt boot=casper iso-scan/filename=/ubuntu-14.04.1-desktop-AMD64.iso quiet splash --

initrd /casper/initrd.lz

semble similaire à utiliser - ISO est-il corrompu?

0
SteveSi