LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 02-24-2009, 03:25 PM   #1
brian.wright
LQ Newbie
 
Registered: Feb 2009
Posts: 2

Rep: Reputation: 0
How to pass a Kernel Parameter?


I'm trying to get FC10 installed on a Dell 2950, and am having problems with the first boot. I've already found an answer to that problem -

Quote:
From http://linux.derkeiler.com/Mailing-L.../msg02511.html
//Yes to both of these questions. You have to pass "scsi_mod.scan=sync" to the kernel.
Bye,
Harald
I'm now trying to figure out how to pass this parameter in, when I can't even boot the system yet. I know I can to a recover by booting from the install disk, but I'm not sure which file I need to edit to get this to work. I'm not a complete newb, but I definitely haven't run into anything like this before.

Thanks in advance

Brian Wright
 
Old 02-24-2009, 03:41 PM   #2
brian.wright
LQ Newbie
 
Registered: Feb 2009
Posts: 2

Original Poster
Rep: Reputation: 0
NVM... I'm just slow today. This is what I get for not touching a Linux box for a few years.
 
Old 02-24-2009, 03:47 PM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728
welcome to LQ!!

Kernel arguments are passed in the kernel line of the bootloader--usually GRUB.

Here one example:
Code:
title  zenwalk
root   (hd0,3)
kernel  /boot/vmlinuz root=/dev/sda4 ro
This is decoded as follows:
/boot/vmlinuz ##path to the kernel, beginning from root, as defined in the previous statement (in this case, the 4th partition on disk 1.---in "grub-speak", starting from 0)
root=/dev/sda4 ##tells the kernel where to mount the root (/) of the filesystem
ro ##tells the kernel to initially mount the filesystem read-only

There are various web sites with listing of all the possible arguments.
 
Old 02-24-2009, 04:03 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,267

Rep: Reputation: 1027Reputation: 1027Reputation: 1027Reputation: 1027Reputation: 1027Reputation: 1027Reputation: 1027Reputation: 1027
In other words, just append it to the "kernel" line - the bootloaders pass anything they don't recognise straight through to the kernel.
If using grub, highlight your boot entry, hit "e", highlight the kernel line, hit "e" again, then do the change.
"enter" to save it, "b" to boot.
Once in, edit /boot/grub/menu.lst
 
  


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
how to pass the parameter to command sed linux_1 Linux - Enterprise 3 10-15-2007 07:10 PM
gtk - How to pass in a parameter Ian D Programming 4 10-28-2005 11:23 AM
how do I pass a module parameter? maerong Debian 2 02-07-2005 07:33 AM
pass a parameter to a running program nimra Linux - Software 1 06-29-2004 01:38 AM
PHP Pass Parameter Gerardoj Programming 2 05-25-2004 08:12 AM


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