Add a LiveCD to GRUB

Posted by zbrom on June 28, 2021 · 1 min read

This tutorial explains how to add a LiveCD as an entry for your GRUB menu. This is especially useful for backing up your boot drive, or when you may need to troubleshoot an installation. I have provided an example using Ubuntu LTS; these entries should be similar for other Debian based distributions.


First edit the grub.cfg file, and modify (hd1,2) according to your drive and partition number.

nano /boot/grub/grub.cfg

Code:

#Ubuntu LiveCD
menuentry "Ubuntu 12.04.1 LTS" {
set root=(hd1,2)
linux /livecd/ubuntu-12.04.1-desktop-amd64/casper/vmlinuz file=/cdrom/livecd/ubuntu-12.04.1-desktop-amd64/preseed/mint.seed rw ignore_uuid root=UUID=0777-0924 rootfstype=ntfs boot=casp$
initrd /livecd/ubuntu-12.04.1-desktop-amd64/casper/initrd.lz
}