Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save alchem0x2A/2b285772edf6320262e5cf1dc8fb90ce to your computer and use it in GitHub Desktop.
Save alchem0x2A/2b285772edf6320262e5cf1dc8fb90ce to your computer and use it in GitHub Desktop.
Boot into a LiveCD from Grub when bootable CD or USB is broken on old PC

Useful command when Alt+power fails in macbook installation

  1. Determine the disk number
# Enter grub cmdline by pressing Right-Shift and c
grub> ls
(proc) (hd0) ...

For Macs with ssds, the external usb drive will always be (hd0) and partition is /dev/sda. There are some slightly different versions for various distributions:

  1. Linux mint
grub> set root=(hd0,1)
grub> linux /casper/vmlinuz boot=casper root=/dev/sdb1
grub> initrd /casper/initrd.lz
grub> boot
  1. Pop!_OS

Note only (hd0) is detected in grub menu

grub> set root=(hd0)
grub> linux /casper/vmlinuz.efi boot=casper root=/dev/sdb1
grub> initrd /casper/initrd.gz
grub> boot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment