1

I want to be able to boot any OS (this case: a Live version of Kubuntu) installed on a SD card (not USB).

I have followed the instructions given for a USB. However that won't work properly, the 40_custom GRUB2 entry that I have now is:

 #!/bin/sh
 exec tail -n +3 $0
 # This file provides an easy way to add custom menu entries.  Simply type the
 # menu entries you want to add after this comment.  Be careful not to change
 # the 'exec tail' line above.

  menuentry "PLEASE BOOT ME I AM THE SD CARD" {
       set root=(hd0,1)
       linux /vmlinuz root=/dev/sdb1 ro quiet splash
       initrd /initrd.img
 }

The option appears on the GRUB menu but whenever I selected it prompts the regular kubuntu splash screen and won't boot from my SD Card (or the HDD, either).

Hans
  • 1,301

1 Answers1

1

As your USB stick comes up as sdb, the code should be:

#!/bin/sh
 exec tail -n +3 $0
 # This file provides an easy way to add custom menu entries.  Simply type the
 # menu entries you want to add after this comment.  Be careful not to change
 # the 'exec tail' line above.
  menuentry "PLEASE BOOT ME I AM THE SD CARD" {
       set root=(sdb,1)
       linux /vmlinuz root=/dev/sdb1 ro quiet splash
       initrd /initrd.img
 }

if the OS is installed in the first partition of the USB stick. ;-)

Fabby
  • 35,017