Author Topic: Problem with Grub on USB drive  (Read 3168 times)

DeathMagnetic

  • Veteran
  • ***
  • Posts: 53
    • View Profile
Problem with Grub on USB drive
« on: November 09, 2010, 11:27:58 am »
Hi, I tried installing LinuxMCE to a USB pen drive last night and apart from the incredibly long install time it went quite smoothly. However, when I restarted my laptop I recieved a grub error 21.

What had happened was that grub installed into my laptop and wiped my MBR, so Windows was inaccessible and LinuxMCE was unbootable. Anyway, I fixed windows by loading the live disk but LinuxMCE is still unbootable.

So my question: How do I install Grub to the USB drive now that LinuxMCE is installed? Will it be just as easy to install to the USB drive on one of the college computers with the internal rive disconnected?

sambuca

  • Guru
  • ****
  • Posts: 462
    • View Profile
Re: Problem with Grub on USB drive
« Reply #1 on: November 09, 2010, 12:11:14 pm »
USB disks are inherently slow, so I wouldn't recommend it as a system drive. But I suppose you got your reasons for doing it like that...

Grub has a command grub-install, which will install the grub boot loader on the device you specify. So try booting another (identical/similar) distribution and run grub-install /dev/<usb-disk>, using the device name given to you usb-disk. Google grub-install for more information.

br,
sambuca

DeathMagnetic

  • Veteran
  • ***
  • Posts: 53
    • View Profile
Re: Problem with Grub on USB drive
« Reply #2 on: November 09, 2010, 03:47:34 pm »
Thankks for that, I'll try it when I get home.