
I then edited /media/usb/boot/grub.cfg to add an. Mount ~/ /media/iso/ -o loopĬp /media/iso/boot/grub/grub.cfg /media/usb/boot/grub/

# mount ISO image, copy existing grub.cfg Grub-install -force -no-floppy -root-directory=/media/usb /dev/sdĬp ~/ /media/usb I was able to get halfway there - it booted from USB, displayed the grub menu and started the installation, but the installation did not complete.įor reference, this is the closest I got: sudo su In the image disk 0 is for hard disk and disk 1 is for pen drive. It will list disks with number such as disk 1 or disk 2 as shown in the image below.

How can I do the same using only the command line? When you’ve identified the USB drive, note its disk number and then run this command. I have done this before following the " create USB drive" instructions for Ubuntu desktop, but I don't have an Ubuntu desktop available. I'm trying to create a bootable USB image to install Ubuntu on a new computer.
