Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 19/20 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 2nd March 2012, 03:37 AM
ldelossa Offline
Registered User
 
Join Date: Feb 2012
Location: United States
Posts: 21
linuxfirefox
Grub2 mkconfig does not parse or read /etc/default/grub

Hey guys, I have fedora 16 and I'm trying to set grub2 default's, wall paper, and hide recovery by adding entries in the grub file in /etc/default/grub. For some reason it doesnt seem grub is even looking at that file. Any ideas?
Reply With Quote
  #2  
Old 2nd March 2012, 04:17 AM
sonoran Offline
Registered User
 
Join Date: May 2005
Location: Sonoran Desert
Posts: 2,313
linuxfirefox
Re: Grub2 mkconfig does not parse or read /etc/default/grub

Did you add the arguments:
Code:
grub2-mkconfig -o /boot/grub2/grub.cfg
https://fedoraproject.org/wiki/Grub2
Reply With Quote
  #3  
Old 2nd March 2012, 04:22 AM
ldelossa Offline
Registered User
 
Join Date: Feb 2012
Location: United States
Posts: 21
linuxsafari
Re: Grub2 mkconfig does not parse or read /etc/default/grub

Yeah I did all the normal commands and it finds each Linux image and windows os it just seems editing the grub default file doesn't do anything at all
Reply With Quote
  #4  
Old 2nd March 2012, 04:32 AM
JEO Offline
Registered User
 
Join Date: Jan 2006
Posts: 2,787
linuxfirefox
Re: Grub2 mkconfig does not parse or read /etc/default/grub

Perhaps if you posted the entries you put in the file it would help to determine the problem?
Reply With Quote
  #5  
Old 2nd March 2012, 06:45 AM
David Batson Offline
Registered User
 
Join Date: Jul 2009
Posts: 1,234
linuxopera
Re: Grub2 mkconfig does not parse or read /etc/default/grub

For some of the entries I read that the grub font has to be set.

http://www.fedoraforum.org/forum/sho....php?p=1557391

http://fedoraforum.org/forum/showthread.php?p=1556175
__________________
Fedora 19 Gnome on a ThinkPad X220, i5-2540M CPU, Intel HD Graphics 3000, Intel N 6205 wireless, and Sierra Wireless 754S Mobile Hotspot (AT&T)
Reply With Quote
  #6  
Old 2nd March 2012, 07:41 AM
Dutchy Offline
Registered User
 
Join Date: Aug 2011
Posts: 988
linuxsafari
Re: Grub2 mkconfig does not parse or read /etc/default/grub

Are you sure you've add the -o part?
Otherwise it is just a test run and nothing gets written.
Reply With Quote
  #7  
Old 2nd March 2012, 02:41 PM
ldelossa Offline
Registered User
 
Join Date: Feb 2012
Location: United States
Posts: 21
windows_7chrome
Re: Grub2 mkconfig does not parse or read /etc/default/grub

I'm at work right now away from my computer but I know that the /etc/defaults/grub file is completely unedited accept for adding GRUB_DEFAULT="my window 7 image name" No matter what options I put into there it doesn't change anything. Grub2 is simply not parsing the /etc/default/grub file, I saw on fedora site to put the grub default txt into /usr/local/etc/defaults/ but that didn't seem to work either, I will try to make-font command and see if that does anything when I get home later.
Reply With Quote
  #8  
Old 2nd March 2012, 07:03 PM
chrismurphy Offline
Registered User
 
Join Date: May 2010
Posts: 970
macoschrome
Re: Grub2 mkconfig does not parse or read /etc/default/grub

Confirm that the hardware is for sure BIOS only, and not UEFI firmware based (which uses GRUB Legacy EFI, not GRUB2).

Please post /etc/default/grub and /boot/grub2/grub.cfg
Reply With Quote
  #9  
Old 3rd March 2012, 05:32 AM
nsnbm Offline
Registered User
 
Join Date: Dec 2007
Location: Australia
Posts: 420
linuxfirefox
Re: Grub2 mkconfig does not parse or read /etc/default/grub

Hello Idelossa,

I have made the error of not including what I added to the /etc/default/grub file within the double quotation marks. When my edits were outside those marks, grub2-mkconfig didn't read them. Ben.
Reply With Quote
  #10  
Old 3rd March 2012, 06:15 PM
ldelossa Offline
Registered User
 
Join Date: Feb 2012
Location: United States
Posts: 21
macoschrome
Re: Grub2 mkconfig does not parse or read /etc/default/grub

Quote:
Originally Posted by nsnbm View Post
Hello Idelossa,

I have made the error of not including what I added to the /etc/default/grub file within the double quotation marks. When my edits were outside those marks, grub2-mkconfig didn't read them. Ben.
Yes I made sure everything is formatted correctly, and I do sys admin work with linux and I was playing around with Grub2, I'm very familiar with it It's just something special about fedora. I really think the mkfont option is going to fix it -- I just havent had access to my laptop yet haha.
Reply With Quote
  #11  
Old 3rd March 2012, 09:15 PM
chrismurphy Offline
Registered User
 
Join Date: May 2010
Posts: 970
macoschrome
Re: Grub2 mkconfig does not parse or read /etc/default/grub

It's doubtful there's anything special with Fedora. I regularly use /etc/default/grub to make behavioral modification, and grub2-mkconfig always honors that file.
Reply With Quote
  #12  
Old 3rd March 2012, 10:15 PM
leigh123linux
Guest
 
Posts: n/a
linuxfirefox
Re: Grub2 mkconfig does not parse or read /etc/default/grub

post
Code:
cat /etc/default/grub
Reply With Quote
  #13  
Old 3rd March 2012, 10:21 PM
chrismurphy Offline
Registered User
 
Join Date: May 2010
Posts: 970
macoschrome
Re: Grub2 mkconfig does not parse or read /etc/default/grub

Yeah I asked for that and grub.cfg yesterday because I think there's either a syntax error in the grub file, or a mismatch between the desire default system naming in grub.cfg and what's been put into the grub file.

It's also possible that one of the scripts, or os-prober is puking on something, and not completing the script creation. So it would be useful to know if there is a /boot/grub/grub.cfg.new file present or not. If present, there's script failure occurring somewhere, then we'll have to use either set -x or bash -x to get more information on where the script is failing.
Reply With Quote
  #14  
Old 4th March 2012, 07:24 AM
leigh123linux
Guest
 
Posts: n/a
linuxfirefox
Re: Grub2 mkconfig does not parse or read /etc/default/grub

Quote:
Originally Posted by chrismurphy View Post
Yeah I asked for that and grub.cfg yesterday because I think there's either a syntax error in the grub file, or a mismatch between the desire default system naming in grub.cfg and what's been put into the grub file.

It's also possible that one of the scripts, or os-prober is puking on something, and not completing the script creation. So it would be useful to know if there is a /boot/grub/grub.cfg.new file present or not. If present, there's script failure occurring somewhere, then we'll have to use either set -x or bash -x to get more information on where the script is failing.
If he doesn't post the requested file I will close the thread (I hate time wasters).
Reply With Quote
  #15  
Old 4th March 2012, 08:27 PM
chrismurphy Offline
Registered User
 
Join Date: May 2010
Posts: 970
macoschrome
Re: Grub2 mkconfig does not parse or read /etc/default/grub

Personally I'd give to the end of Monday at least. Might be a work laptop not available over the weekend. OP said yesterday they haven't had access. But yes, it's like, you're having problems with GRUB "ignoring" /etc/default/grub and you don't post it first thing? What are the chances: user error vs "something special about Fedora".

I give it ~1000 to 1 odds.

Last edited by chrismurphy; 4th March 2012 at 10:20 PM.
Reply With Quote
Reply

Tags
grub2, mkconfig, or etc or default or grub, parse, read

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
HOW TO: remove GRUB2 booloader and recover windows default deathmood Guides & Solutions (No Questions) 4 18th March 2013 01:31 AM
How to set the default GRUB2 font and splash screen in Fedora plasmonics Guides & Solutions (No Questions) 16 8th June 2012 02:09 PM
Grub2: How to *REALLY* set the default OS rgaelzer Using Fedora 6 30th May 2012 11:00 AM
From grub2 to grub... stlsaint Installation, Upgrades and Live Media 2 12th August 2010 03:27 PM
Grub2 as default in F12? Demz Fedora Focus 2 9th June 2009 06:12 AM


Current GMT-time: 06:19 (Thursday, 21-08-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat