Install GRUB2 on USB from Ubuntu Linux
How to Install Grub2 on USB from Linux: In the following tutorial, I'll show you one way to easily install Grub2 to a USB Flash Drive from a running Live Ubuntu Operating Environment. I personally used an Ubuntu Live CD to perform all of the following steps.
Note: This Grub2 USB Flash Drive Install tutorial assumes you will be running from an Ubuntu Live CD to create your Grub2 enabled Flash Drive. It may or may not work from another Linux operating environment.
Grub2 USB Install From Ubuntu Live CD Essentials:
- Ubuntu Live CD
- A PC that can boot from USB/CD
- 1GB or larger USB Flash Drive
- No Fear of the Terminal
Grub2 USB Flash Drive Install using the Ubuntu Live CD:
Before proceeding, take note:
Old versions of grub used
while current versions use
If you do use the wrong syntax, you will receive an error stating "Installation is impossible. Aborting"
- Boot from your Live Ubuntu Linux CD
- Once booted, insert your USB Flash Drive
- Open a terminal and type
fdisk -l(and note which device is your USB)
mkdir /mnt/USB && mount /dev/sdx1 /mnt/USB(replacing x with your actual usb device)
grub-install --force --removable --boot-directory=/mnt/USB/boot /dev/sdx(replacing x with your actual USB device)
df(and locate where cdrom is mounted I.E.
dd if=/dev/sr0 of=/mnt/USB/ubuntu.iso(replacing sr0 with the device found in step 9)
- Remove your Live CD and reboot your PC, setting your BIOS or Boot Menu to boot from the USB device.
If all goes well, you should now be booting into your Grub2 prepared USB Flash Drive, with a Grub2 Boot Menu option to Boot from the Ubuntu ISO you copied to your USB in step 10.
Install GRUB2 on USB from Ubuntu Linux published under Flash drive installs using Live CD