metalx1000

install grub to USB flash drive

Jul 22nd, 2020
1,619
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #install grub boot loader to drive
  2. sudo grub-install --force --removable --boot-directory=/mnt /dev/sdd
  3.  
  4. #/grub/grub.cfg
  5. menuentry "My Linux" {
  6.     set root=(hd0,1)
  7.     linux /boot/kernel
  8.     initrd /boot/initrd
  9. }
RAW Paste Data