Custom entry for grub not working.

colt

New Member
Joined
Sep 3, 2020
Messages
14
Reaction score
0
Credits
166
Hi. I decided to move the iso file for one of my Linux distros to another partition. To be able to boot it through grub, I proceeded to update my custom initialization file. The entry for this specific iso file was:

Code:
menuentry "Lubuntu 16.04 ISO" {
    set root=(hd0,6)
    set isofile="/videos/lubuntu-16.04.6-desktop-amd64.iso"
       loopback loop (hd0,6)$isofile
       linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=$isofile noprompt noeject
       initrd (loop)/casper/initrd
 }

and now it is:

Code:
menuentry "Lubuntu 16.04 ISO" {
    set root=(hd0,1)
    set isofile="/home/leopoldo/lubuntu-16.04.6-desktop-amd64.iso"
       loopback loop (hd0,1)$isofile
       linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=$isofile noprompt noeject
       initrd (loop)/casper/initrd
 }

The previous partition was /dev/sda6, andn ow it is sda1.

So, what am I doing wrong here? Thanks for your time.
 


Hi colt

Are the partitions the same format?

The new location is also one directory deeper, but that might not matter.

Vektor
 
Last edited:
I decided to move the iso file for one of my Linux distros to another partition. To be able to boot it through grub...

If it had been a USB unit on a EFi system then YUMi-exFAT would have proven being a no brainer (not even requiring to flash again and again, just copy the .ISO)! It's based on Ventoy itself exploiting GrUB2, so why attempt to re-invent the wheel anyway? Perhaps you might also appreciate rEFInd for its nice launching menu with large horizontal sliding icons-based menu which finds USB drives dynamically...
 
Hi colt
When one or more partitions are created they are "formatted" with a type of file system: ext2,3 or 4 and also vfat and many others.

Egzoset's recommendation is only one of many ways to make things easier for yourself until you get the knack of dealing with bootloaders like grub.

Do a duck search for "usb iso boot" and you will find more ways than you can count.

Have fun,

Vektor
 

Members online


Top