Jan Leow's Blog Page

System Rescue ISO GRUB2 menuentry

And my final addition to the GRUB2 menuentry is the System Rescue CD ISO. Normally this is best installed in a USB stick or in a CD-ROM for use in an emergency. For the fun of it, I decided to try running a live version off from a PC.

Digging around the forum sites, I managed to find a menuentry example. However it didn’t quite work out and it took me a while to sort out the entry.

To get it to work, you will need to find the uuid of the partition where you have placed the ISO file. To find the uuid of the partition, goto terminal console and type:

    sudo blkid

From the output, copy out the uuid number and replace your version into my below GRUB2 menuentry.

menuentry "SystemRescue (isoloop)" {
    # note, search \dev\sdaX uuid using terminal command blkid
    set uuid="efc11f2b-4cc8-4f8e-bee2-4a53b27362bf"
    search --no-floppy --fs-uuid --set=root $uuid
    loopback loop /systemrescue-701.iso
    echo   'Loading SYSTEMRESCUE CD kernel ...'
    linux  (loop)/sysresccd/boot/x86_64/vmlinuz scandelay=1 img_label=*NAME_of_PARTITION* img_loop=/systemrescue-701.iso archisobasedir=sysresccd copytoram setkmap=us
    echo   'Loading SYSTEMRESCUE CD initramfs ...'
    initrd (loop)/sysresccd/boot/intel_ucode.img (loop)/sysresccd/boot/amd_ucode.img (loop)/sysresccd/boot/x86_64/sysresccd.img

Take note, the "img_label=*NAME_of_PARTITION*" portion is the label of the partition where your ISO is located. For example if your partition is named, "LINUX", then replace that entry with it. e.g. "img_label=LINUX" and that should enable the GRUB2 to find the correct location of the iso file.

After that, copy the above into the 40_custom located in /etc/grub.d/


Then in terminal mode, type

	sudo update-grub

To update the grub.cfg file. Reboot and check to see whether it will boot the System Rescue CD ISO!

Return to GRUB2 Menu Entry Manual Set Up for Non-Detected Linux Distros”

No comments: