Installing GRUB in USB Flash Drive

GRUB (GRand Unified Boot) loader is a boot loader for multiple operating system. It is one of the most popular bootloader for GNU/Linux operating system (the other is LILO). GRUB flexibility and easy-to-configure boot parameter has made it the default choice for most of GNU/Linux distros.

This article highlights yet another GNU GRUB usefulness in booting GNU/Linux inside a portable USB Flash drive : Installing GRUB on a USB flash memory key

gnu,linux,grub,bootloader,tips,tutorial

5 Replies to “Installing GRUB in USB Flash Drive”

  1. Installing grub in a flash drive:

    Execute the commands that follow as ROOT

    user@user-pc $sudo -s
    [sudo] password for user:*******
    (*****) is your password,
    then,

    1)Use fdisk -l to find the mount point of the drive
    2)On my computer the flash drive is mounted on /dev/sdb1
    3)root@user-pc:# mount /dev/sdb1
    4)mount –bind /proc /mnt/proc
    5)mount –bind /dev /mnt/dev
    6)mount –bind /sys /mnt/sys
    7)chroot /mnt
    8)update-grub2
    9)grub-install /dev/sdb

    hope that helps

Comments are closed.