0

I'm trying to change my grub boot order, so I've changed /etc/default/grub, but I don't seem to have the update-grub command. I'm not sure if I'm using grub or grub2 because everything just says "grub".

How would I determine which version of grub I have installed?

3

The update-grub script is here:

/usr/sbin/update-grub

When your system says command not found it can be that your user has not /usr/sbin/ in its $PATH variable.

Anyway, the best way is to change to the root user with su and then run update-grub again.

To check which version of grub you have installed type this command:

root@host:~# dpkg --list | grep grub
ii  grub-common                         1.98+20100804-14+squeeze1    GRand Unified Bootloader, version 2 (common files)
ii  grub-pc                             1.98+20100804-14+squeeze1    GRand Unified Bootloader, version 2 (PC/BIOS version)
  • Thank you. Running it as root worked great. I'll add /usr/sbin/ to my path, so I hopefully won't run into problems like this later. – SimpleJ Feb 13 '14 at 17:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.