LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-07-2015, 11:09 AM   #1
flipp18
LQ Newbie
 
Registered: Sep 2015
Location: shropshire UK
Posts: 3

Rep: Reputation: Disabled
Question 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
 
Old 09-07-2015, 11:55 AM   #2
hortageno
Member
 
Registered: Aug 2015
Distribution: Ubuntu 16.04 LTS
Posts: 233

Rep: Reputation: 65
Quote:
Originally Posted by flipp18 View Post
When i execute 'sudo nano upgrade-grub' nothing happens after i have edited the default grub list as instucted
Try 'sudo update-grub'

Last edited by hortageno; 09-07-2015 at 12:08 PM. Reason: damn copy'n'paste ;-)
 
Old 09-07-2015, 12:05 PM   #3
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 7,281

Rep: Reputation: 1381Reputation: 1381Reputation: 1381Reputation: 1381Reputation: 1381Reputation: 1381Reputation: 1381Reputation: 1381Reputation: 1381Reputation: 1381
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.

Last edited by yancek; 09-07-2015 at 12:07 PM.
 
Old 09-07-2015, 02:22 PM   #4
flipp18
LQ Newbie
 
Registered: Sep 2015
Location: shropshire UK
Posts: 3

Original Poster
Rep: Reputation: Disabled
did as you say get a message containing 'line 1: ^G#: command not found' explain?
 
Old 09-07-2015, 05:18 PM   #5
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 7,281

Rep: Reputation: 1381Reputation: 1381Reputation: 1381Reputation: 1381Reputation: 1381Reputation: 1381Reputation: 1381Reputation: 1381Reputation: 1381Reputation: 1381
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.
 
1 members found this post helpful.
Old 09-08-2015, 05:59 AM   #6
Habitual
LQ Addict
 
Registered: Jan 2011
Posts: 8,496
Blog Entries: 13

Rep: Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387
http://forums.linuxmint.com/viewtopi...f=143&t=173378
 
Old 09-08-2015, 07:14 AM   #7
colorpurple21859
Senior Member
 
Registered: Jan 2008
Location: florida panhandle
Distribution: slackware64-current, puppy, ubuntu
Posts: 2,051

Rep: Reputation: 286Reputation: 286Reputation: 286
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.

Last edited by colorpurple21859; 09-08-2015 at 07:16 AM.
 
Old 09-08-2015, 09:40 AM   #8
flipp18
LQ Newbie
 
Registered: Sep 2015
Location: shropshire UK
Posts: 3

Original Poster
Rep: Reputation: Disabled
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'
 
Old 09-08-2015, 10:32 AM   #9
colorpurple21859
Senior Member
 
Registered: Jan 2008
Location: florida panhandle
Distribution: slackware64-current, puppy, ubuntu
Posts: 2,051

Rep: Reputation: 286Reputation: 286Reputation: 286
you didn't happen to delete the # that is suppose to be at the beginning of the line?
 
Old 09-08-2015, 12:19 PM   #10
Habitual
LQ Addict
 
Registered: Jan 2011
Posts: 8,496
Blog Entries: 13

Rep: Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387
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.

Last edited by Habitual; 09-08-2015 at 12:20 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: How To Change Boot Order/Set Default Boot OS In Ubuntu 14.10/15.04 / Linux Mint Or Other Deriv LXer Syndicated Linux News 0 08-30-2015 04:31 PM
I have Linux Mint 14.1 Nadia x64 and Windows 7 Ult---How do I Change Boot order? cowboy5709 Linux - Newbie 15 10-16-2013 10:56 AM
Ubuntu 11.10 - Want to change grub boot order anilbh Linux - Desktop 3 03-22-2012 03:20 AM
How to Change Grub Boot Order Johnny Faster Ubuntu 15 02-05-2010 12:14 PM
Change the boot order in grub buster_balz Linux - Newbie 2 12-23-2004 11:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:55 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration