0

I just reinstalled Ubuntu 12.04 using a LiveCD mounted on a USB drive. When the USB drive isn't plugged in... things won't boot. I'm new to Ubuntu, so please bear with me. After a bit of reading I see that GRUB needs to be fixed/ updated along with the MBR. Unfortunately, I'm not sure how to go about this. When booting with the USB stick plugged in, I get a menu that displays the different boot options and I can boot in to either Ubuntu or Windows 7 like I should be able to. I also have the LiveCD USB stick listed as the first device accessed during the boot sequence. This thread seems to have a good walkthrough but I'm stuck on the first step.

When running ls, I see: (hd0), (hd0,msdos6), (hd0,msdos5), (hd0,msdos3), (hd0,msdos2), I think. This is from memory.

Starting the first step with ls (hd0,msdos6) returns Bad filename and ls (hd0,msdos5) etc returns error: unknown filesystem.

It would seem that msdos6 is the Ubuntu partition. But I can't access it. Any suggestions would be appreciated.

Jason
  • 1

1 Answers1

0

Assuming that the main drive is /dev/sda, I would use

sudo grub-mkconfig -o /boot/grub/grub.cfg
sudo grub-install /dev/sda

To (re)install it.