Usually GRUB2 is being installed on to the first internal hard drive. According to Linux naming convention it can be described as /dev/sda. Hence grub2 is located on the /dev/sda where as grub.cfg is located on the USB drive. First of all you have to know the name of the Flash drive . You can use the following command. It will list the name of devices where you have to search for the name. Now you have to install GRUB2 on your flash drive. You can use the following command
Code:
sudo grub-install /dev/sdx
you have to write the name of the flash drive at the place of x. if any error occurs you can use the following one
Code:
grub-install --recheck /dev/sdx
Above mentioned command will install GRUB2 on your flash drive. Now you have to install boot loader on your laptop. Use the following
Code:
sudo apt-get install lilo
Now use the following one
Code:
sudo lilo -M /dev/sda mbr
Make sure that you have to use this command as they are described above.
Bookmarks