LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   I have Linux mint 16 and trying to change the boot order in grub. (https://www.linuxquestions.org/questions/linux-newbie-8/i-have-linux-mint-16-and-trying-to-change-the-boot-order-in-grub-4175552845/)

flipp18 09-07-2015 11:09 AM

I have Linux mint 16 and trying to change the boot order in grub.
 
When i execute 'sudo nano upgrade-grub' nothing happens after i have edited the default grub list as instucted

hortageno 09-07-2015 11:55 AM

Quote:

Originally Posted by flipp18 (Post 5417062)
When i execute 'sudo nano upgrade-grub' nothing happens after i have edited the default grub list as instucted

Try 'sudo update-grub'

yancek 09-07-2015 12:05 PM

Better yet, try: sudo update-grub. nano is a text editor and your command is telling the system to open with root permissions a file named: upgrade-grub.

flipp18 09-07-2015 02:22 PM

did as you say get a message containing 'line 1: ^G#: command not found' explain?

yancek 09-07-2015 05:18 PM

Post the actual command and output as you entered it and the output. If you actually entered it correctly and got a command not found you have serious problems. Of course, Mint 16 is outdated and unsupported for over a year so it's time to upgrade or reinstall anyhow.

Habitual 09-08-2015 05:59 AM

http://forums.linuxmint.com/viewtopi...f=143&t=173378

colorpurple21859 09-08-2015 07:14 AM

Quote:

did as you say get a message containing 'line 1: ^G#: command not found' explain?
Check line 1 of the default grub file and remove ^G if it is there.

flipp18 09-08-2015 09:40 AM

I have deleted ^g: and now I get 'sudo update-grub
Searching for GRUB installation directory ... found: /boot/grub
/etc/default/grub: line 1: If: command not found' when I run 'sudo update-grub'

colorpurple21859 09-08-2015 10:32 AM

you didn't happen to delete the # that is suppose to be at the beginning of the line?

Habitual 09-08-2015 12:19 PM

open terminal and issue:
Code:

sudo head -1 /etc/default/grub
and your feedback should be
Code:

# If you change this file, run 'update-grub' afterwards to update
Does it look like a missing "#" on line 1 of /etc/default/grub ?

If it is missing, you'll have to add it. Be careful. Ask if you are not sure.


All times are GMT -5. The time now is 03:34 PM.