LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fuduntu
User Name
Password
Fuduntu This forum is for the discussion of Fuduntu Linux.

Notices

Reply
 
Search this Thread
Old 05-25-2013, 03:09 PM   #1
alfredo10
Member
 
Registered: Sep 2010
Location: Algarve
Distribution: Linux Multiboot
Posts: 277

Rep: Reputation: 14
Update Grub


Hi!
Fuduntu is my main OS, now with Grub 2 (replaced Grub legacy). I know, that "sudo update-grub" will not work.
As far as I remember, the command contains "...mkconfig...".
Who knows the full command?
 
Old 05-25-2013, 09:10 PM   #2
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Mageia Studio-13.37 Kubuntu.
Posts: 3,325
Blog Entries: 33

Rep: Reputation: 199Reputation: 199
lmgtfy

grub 2 update grub

http://www.gnu.org/software/grub/man...b_002dmkconfig
 
Old 05-25-2013, 09:51 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,445

Rep: Reputation: 1068Reputation: 1068Reputation: 1068Reputation: 1068Reputation: 1068Reputation: 1068Reputation: 1068Reputation: 1068
Quote:
Originally Posted by alfredo10 View Post
... now with Grub 2 (replaced Grub legacy). I know, that "sudo update-grub" will not work.
Depends.
A properly configured package-manager should either replace the script and it'll now work on grub2, or notify you it has deleted the script and replaced it with (for example) update-grub2.
I've seen both happen.

With Ubuntu derivatives you're probably better off using their scripts than mkconfig.
 
1 members found this post helpful.
Old 05-25-2013, 10:44 PM   #4
towheedm
Member
 
Registered: Sep 2011
Location: Trinidad & Tobago
Distribution: Debian Squeeze
Posts: 585

Rep: Reputation: 119Reputation: 119
The correct command for grub-mkconfig is:
Code:
sudo grub-mkconfig -o /path/to/grub2_dir/grub.cfg
If you have a standard installation, then:
Code:
sudo grub-mkconfig -o /boot/grub/grub.cfg
will generate the new configuration file grub.cfg in /boot/grub.

Note that the command:
Code:
update-grub
is simply a wrapper script for grub-mkconfig. This command is standard only on Debian-based distros.

On some distro, Fedora and openSUSE for example, the command is grub2-mkconfig.

Last edited by towheedm; 05-25-2013 at 10:45 PM.
 
3 members found this post helpful.
Old 05-26-2013, 06:30 AM   #5
alfredo10
Member
 
Registered: Sep 2010
Location: Algarve
Distribution: Linux Multiboot
Posts: 277

Original Poster
Rep: Reputation: 14
Hi!
Thanks for the hints - before posting I was searching several hours and did not find a Fuduntu command.
"mkconfig" did not work [my folder is grub2].
Code:
alfredo@notebook-0 ~ $ su -
Passwort: 
notebook-0 ~ # grub-mkconfig -o /boot/grub2/grub.cfg
bash: grub-mkconfig: command not found...

Last edited by alfredo10; 05-26-2013 at 06:31 AM. Reason: correction
 
Old 05-26-2013, 07:14 AM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,445

Rep: Reputation: 1068Reputation: 1068Reputation: 1068Reputation: 1068Reputation: 1068Reputation: 1068Reputation: 1068Reputation: 1068
Try "sudo update-" (no quotes) and hit the <tab> twice. You should see any commands available (or you could use updatedb/locate).
 
1 members found this post helpful.
Old 05-26-2013, 09:20 AM   #7
alfredo10
Member
 
Registered: Sep 2010
Location: Algarve
Distribution: Linux Multiboot
Posts: 277

Original Poster
Rep: Reputation: 14
Hi!
Code:
update-alternatives      update-gtk-immodules     update-pciids
update-desktop-database  update-mime-database
No idea!
 
Old 05-26-2013, 09:27 AM   #8
alfredo10
Member
 
Registered: Sep 2010
Location: Algarve
Distribution: Linux Multiboot
Posts: 277

Original Poster
Rep: Reputation: 14
Hi!
Suddenly I had an idea - it worked!

Code:
grub2-mkconfig -o /boot/grub2/grub.cfg
 
Old 05-26-2013, 11:14 AM   #9
towheedm
Member
 
Registered: Sep 2011
Location: Trinidad & Tobago
Distribution: Debian Squeeze
Posts: 585

Rep: Reputation: 119Reputation: 119
Fubuntu is based on Fedora. As I said in my previous:
Quote:
On some distro, Fedora and openSUSE for example, the command is grub2-mkconfig.
Glad it worked out eventually.
 
Old 05-26-2013, 01:46 PM   #10
alfredo10
Member
 
Registered: Sep 2010
Location: Algarve
Distribution: Linux Multiboot
Posts: 277

Original Poster
Rep: Reputation: 14
Hi towheedm!
Sorry -overlooked.
 
Old 05-26-2013, 06:34 PM   #11
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,445

Rep: Reputation: 1068Reputation: 1068Reputation: 1068Reputation: 1068Reputation: 1068Reputation: 1068Reputation: 1068Reputation: 1068
Quote:
Originally Posted by towheedm View Post
Fubuntu is based on Fedora.

Sorry for misleading - I (obviously) was thinking Ubuntu based ...
 
Old 05-27-2013, 04:16 AM   #12
alfredo10
Member
 
Registered: Sep 2010
Location: Algarve
Distribution: Linux Multiboot
Posts: 277

Original Poster
Rep: Reputation: 14
Hello altogether!
Thanks at all - I've learned a lot.
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Recurring Grub rescue mode after update-grub harris4got Linux - Software 6 04-23-2012 10:30 AM
Update Grub compuidiot Mandriva 1 03-22-2011 10:23 AM
[SOLVED] Update-grub problems sgosnell Linux - Laptop and Netbook 1 06-03-2010 01:21 AM
Grub update for 0.94? rusty_slacker Linux - Newbie 5 11-22-2004 02:04 PM
GRUB splashimage configuration / update GRUB rudL Linux - Software 1 05-10-2004 08:16 AM


All times are GMT -5. The time now is 11:23 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration