LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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, 02:09 PM   #1
alfredo10
Member
 
Registered: Sep 2010
Location: Algarve
Distribution: Linux Multiboot
Posts: 295

Rep: Reputation: 15
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, 08:10 PM   #2
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,696
Blog Entries: 33

Rep: Reputation: 290Reputation: 290Reputation: 290
lmgtfy

grub 2 update grub

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

Rep: Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190
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, 09:44 PM   #4
towheedm
Member
 
Registered: Sep 2011
Location: Trinidad & Tobago
Distribution: Debian Stretch
Posts: 612

Rep: Reputation: 125Reputation: 125
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 09:45 PM.
 
3 members found this post helpful.
Old 05-26-2013, 05:30 AM   #5
alfredo10
Member
 
Registered: Sep 2010
Location: Algarve
Distribution: Linux Multiboot
Posts: 295

Original Poster
Rep: Reputation: 15
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 05:31 AM. Reason: correction
 
Old 05-26-2013, 06:14 AM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,379

Rep: Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190
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, 08:20 AM   #7
alfredo10
Member
 
Registered: Sep 2010
Location: Algarve
Distribution: Linux Multiboot
Posts: 295

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

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

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

Rep: Reputation: 125Reputation: 125
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, 12:46 PM   #10
alfredo10
Member
 
Registered: Sep 2010
Location: Algarve
Distribution: Linux Multiboot
Posts: 295

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

Rep: Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190
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, 03:16 AM   #12
alfredo10
Member
 
Registered: Sep 2010
Location: Algarve
Distribution: Linux Multiboot
Posts: 295

Original Poster
Rep: Reputation: 15
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 09:30 AM
Update Grub compuidiot Mandriva 1 03-22-2011 09:23 AM
[SOLVED] Update-grub problems sgosnell Linux - Laptop and Netbook 1 06-03-2010 12:21 AM
Grub update for 0.94? rusty_slacker Linux - Newbie 5 11-22-2004 01:04 PM
GRUB splashimage configuration / update GRUB rudL Linux - Software 1 05-10-2004 07:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fuduntu

All times are GMT -5. The time now is 01:20 PM.

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
Open Source Consulting | Domain Registration