1

I screwed up the grub.cfg file in ubuntu and now i cant boot to that partition. What do i need to put in the file to be able to boot from that partition?

nwnoga
  • 121
  • 1
  • 1
  • 3

1 Answers1

5

If you're using grub2 you can just run a sudo update-grub to find the correct OSes and generate a new cfg.

From a live CD, you'll have to mount your partition:

sudo mkdir /mnt/root
sudo mount -t ext3 <your ubuntu partition, example /dev/sda4> /mnt/root
sudo mount -t proc none /mnt/root/proc
sudo mount -o bind /dev /mnt/root/dev
sudo mount -o bind /sys /mnt/root/sys
sudo chroot /mnt/root /bin/bash
sudo update-grub
talljosh
  • 200