LinuxQuestions.org
Help answer threads with 0 replies.
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 01-08-2012, 05:43 AM   #1
mr_minning
LQ Newbie
 
Registered: Dec 2008
Location: Gothenburg, Sweden
Distribution: Fedora, CentOS 7, Ubuntu, Arch, Raspbian
Posts: 19

Rep: Reputation: 10
Question How do I remove load_video from grub.cfg?


Hi,
I just got a SSD and installed Fedora 16 (without LVM) on it (and not removing my old HD). Everything worked ok until I formated the old HD. The fresh install somehow used the swap space in the old LVM. I finally found the parameters in grub and was able to remove them along with the nouveau driver. /etc/defaults/grub now looks like this:
Code:
GRUB_CMDLINE_LINUX="rd.md=0 rd.dm=0 KEYTABLE=sv-latin1 quiet SYSFONT=latarcyrheb-sun16 rhgb rd.luks=0 LANG=en_US.UTF-8 nouveau.modeset=0 rd.driver.blacklist=nouveau"
Then and rebuild grub.cfg like this
Code:
grub2-mkconfig -o /boot/grub2/grub.cfg 
grub2-editenv list
grep menuentry /boot/grub2/grub.cfg 
grub2-set-default 'Fedora Linux, with Linux 3.1.6-1.fc16.x86_64'
That put me sort of back on track. I still have one problem. I the beginning of grub.cfg a load_video function is called. If I remove it, everything works, but I don't know .
Code:
menuentry 'Fedora Linux, with Linux 3.1.6-1.fc16.x86_64' --class fedora --class gnu-linux --class gnu --class os {
	load_video
	set gfxpayload=keep
	insmod gzio
	insmod part_gpt
	insmod ext2
	set root='(hd1,gpt2)'
	search --no-floppy --fs-uuid --set=root 205f1de8-4f67-4531-b90a-bc56436171aa
	echo	'Loading Linux 3.1.6-1.fc16.x86_64 ...'
	linux	/vmlinuz-3.1.6-1.fc16.x86_64 root=UUID=0e8550fe-63ea-4978-a6ba-944294999858 ro rd.md=0 rd.dm=0 KEYTABLE=sv-latin1 quiet SYSFONT=latarcyrheb-sun16 rhgb rd.luks=0 LANG=en_US.UTF-8 nouveau.modeset=0 rd.driver.blacklist=nouvea
u 
	echo	'Loading initial ramdisk ...'
	initrd	/initramfs-3.1.6-1.fc16.x86_64.img
}
Anybody know how to get rid of this?

Thanks!
 
Old 01-08-2012, 08:51 PM   #2
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 309Reputation: 309Reputation: 309Reputation: 309
What happens if you:

Code:
mv /boot/grub2/video.lst /boot/grub2/video.lst.bak
touch /boot/grub2/video.lst
grub2-mkconfig -o /boot/grub2/grub.cfg 
#or whatever your command is to update your grub in fedora
This is certainly not a fix, but a crude workaround that may or may not work for you. I would suggest that you file a bug.

Last edited by andrewthomas; 01-08-2012 at 08:53 PM.
 
Old 01-09-2012, 02:04 PM   #3
mr_minning
LQ Newbie
 
Registered: Dec 2008
Location: Gothenburg, Sweden
Distribution: Fedora, CentOS 7, Ubuntu, Arch, Raspbian
Posts: 19

Original Poster
Rep: Reputation: 10
Quote:
Originally Posted by andrewthomas View Post
What happens if you:

Code:
mv /boot/grub2/video.lst /boot/grub2/video.lst.bak
touch /boot/grub2/video.lst
grub2-mkconfig -o /boot/grub2/grub.cfg 
#or whatever your command is to update your grub in fedora
This is certainly not a fix, but a crude workaround that may or may not work for you. I would suggest that you file a bug.
It didn't work out too good. It left a "true" in the function (even if I edited video.lst to contain empty lines). It didn't look good, so I developed your "hack" into a hack that makes Gollum pretty. I edited /etc/grub.d/10_linux file and removed the function call from there instead. It's not w/o fear that I anticipate the next update which meddles with grub .
Thanks for you nudge in the right direction.
 
  


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
[SOLVED] Boot menu not matching grub.cfg spoovy Linux - Newbie 10 02-01-2011 04:45 PM
grub.cfg file in grub2 sheine Linux - Software 2 01-22-2011 01:06 PM
permission for grub.cfg jone kim Linux - General 1 09-15-2010 02:53 PM
[SOLVED] Grub can't find grub.cfg when booting - error: no such device Breagha Linux - Software 8 03-14-2010 01:40 PM
grub.cfg file configuration help niravshah Linux - Newbie 4 09-19-2009 10:53 PM

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

All times are GMT -5. The time now is 11:10 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