1

I'm installing windows along with Ubuntu 13. At some point I have to say:

sudo apt-get update && sudo apt-get install grub-pc
sudo grub-setup /dev/sda     # NOTE THAT THERE IS NO DIGIT
sudo umount /boot

However, the second line says that sudo: grub-setup: command not found, although the previous one said grub-pc is already the newest version.

man grub-setup is working well.

  • where did you get these instructions, could you post the URL? they seem wrong, I think you should use sudo grub-install /dev/sda. The "no digit" part is OK, as you want to install grub in the drive's MBR, not in a specific partition. – roadmr Oct 04 '13 at 20:48
  • @roadmr http://askubuntu.com/questions/6317/how-can-i-install-windows-7-after-ive-installed-ubuntu – Alan Coromano Oct 04 '13 at 20:50
  • Well, it should be grub-install, I edited that answer – kiri Oct 04 '13 at 21:16

1 Answers1

4

grub-setup is no longer used, it was replaced by grub-install. I've edited that other answer to use grub-install.

kiri
  • 28,246
  • 16
  • 81
  • 118