LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > General
User Name
Password
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!

Notices

Reply
 
Search this Thread
Old 09-08-2010, 05:18 PM   #1
youarefunny
Member
 
Registered: Mar 2010
Distribution: Arch Linux, FreeBSD
Posts: 31

Rep: Reputation: 0
Grub2 Not Passing Parameters to Kernel


I have installed grub2 on a flash drive to boot some os's that I want to carry around. But in grub.cfg when i put this:

Code:
menuentry "BackTrack Persistent" {
	set gfxpayload=1024x768
	
	linux	/backtrack/boot/vmlinuz BOOT=casper boot=casper persistent rw quiet 
	initrd	/backtrack/boot/initrd.gz
}
it does exactaly the same thing as this

Code:
menuentry "BackTrack Persistent" {
	set gfxpayload=1024x768
	
	linux	/backtrack/boot/vmlinuz
	initrd	/backtrack/boot/initrd.gz
}
Grub is not passing parameters for some reason.

I'm thinking of filing a bug report but I want to make sure i'm not doing something wrong first.
 
Old 09-08-2010, 07:00 PM   #2
aus9
Guru
 
Registered: Oct 2003
Posts: 5,060

Rep: Reputation: Disabled
hi

if you want to use grub2 to boot an iso.....you may need to look at isofrom and other such things.....your menu appears to be some attempt to boot a standard fully exploded installed system....which is not how you boot isos sitting on your usb stick.

2) but if your output is to boot an expanded installed system....please explain how that relates to your ....boot some os's

some information might help is here
http://www.panticz.de/MultiBootUSB

http://www.linux.com/community/blogs...via-Grub2.html

Last edited by aus9; 09-08-2010 at 07:02 PM.
 
Old 09-09-2010, 08:05 AM   #3
youarefunny
Member
 
Registered: Mar 2010
Distribution: Arch Linux, FreeBSD
Posts: 31

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by aus9 View Post
if you want to use grub2 to boot an iso.....you may need to look at isofrom and other such things.....your menu appears to be some attempt to boot a standard fully exploded installed system....which is not how you boot isos sitting on your usb stick.
i wasn't planning on booting from an iso because when I tried that the persistent mode doesn't work. I put all the bt files on the usb and tried to boot the kernel. It loads but goes into text only non-persistent mode. ( as it would if I gave it no parameters )

It works with grub legacy but when I use grub2 it fails.
 
  


Reply

Tags
commandline, grub, grub2, kernel, parameters


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
Passing parameters to a makefile. kerenLinuxForum Linux - Software 3 09-01-2008 09:24 AM
passing parameters in string in C shifter Programming 8 04-11-2008 10:01 AM
Passing module parameters to kernel scoban Slackware 3 12-26-2007 09:21 AM
need help passing parameters in C++ hedpe Programming 1 10-21-2007 11:58 AM
Passing kernel parameters at boot with LILO Crashedfiesta Linux - Laptop and Netbook 2 12-16-2003 09:51 AM


All times are GMT -5. The time now is 11:49 PM.

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