[linux] opstart van iso op disk, wat gaat hier fout?

Der cl3m0t op gmail.com
Za Jun 1 16:16:04 CEST 2019


On 31-05-19 11:03, Julien Michielsen wrote:

> 
> Ik heb een partitie van 2 GBb (grote getallen zijn mooi, nr 23 is mijn
> iso-partitie) bestemd tot iso-partitie.  En mijn /etc/grub.d/40_custom
> ziet eruit als volgt:
> ,.. > menuentry "ubuntu-18.04.2-ISO" {
>          set isofile=(hd0,22)/ubuntu-18.04.2-desktop-amd64.iso
>          loopback loop (hd0,22)$isofile
>          linux (loop)/vmlinuz boot=casper iso-scan/filename=$isofile 
> noprompt noeject
>          initrd (loop)/casper/vmlinuz
> }

Ik zie dat je de partitie waarop je iso file staat en het pad veranderd 
hebt. Vervang bovenstaande menuentry met het het volgende, de 
toelichting heb ik al gegeven.

menuentry "ubuntu-18.04.2-ISO" {
         set isofile="/ubuntu-18.04.2-desktop-amd64.iso"
         loopback loop (hd0,23)$isofile
         linux (loop)/casper/vmlinuz.efi boot=casper 
iso-scan/filename=$isofile noprompt noeject
         initrd (loop)/casper/vmlinuz.lz
}


> Na dit geplaatst te hebben het commando
> sudo grub update
> 
> en na uitvoering daarvan geen boot, wel de foutmelding
> 
> error invalid file name '(hd0,22)/ubuntu-18.04.2-desktop-amd64.iso'
> error no server is specified
> error you need to load the kernel first
> 
> En ik ben verstomd: De bovenste regel uit de melding
> "invalid file name '(hd0,22)/ubuntu-18.04.2-desktop-amd64.iso'"
> lijkt bijna fout te zijn: sda23 is toch hd0,22?!!!
> 
Nee, sda23 is hd0,23. De melding invalid file name krijg je omdat jouw 
_set_ _isofile_ regel fout is!


mvg,
Der


Meer informatie over de Linux maillijst