Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 02-24-2009, 04:25 PM   #1
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 -

//Yes to both of these questions. You have to pass "scsi_mod.scan=sync" to the kernel.
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, 04:41 PM   #2
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, 04:47 PM   #3
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
welcome to LQ!!

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

Here one example:
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, 05:03 PM   #4
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,956

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
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


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

All times are GMT -5. The time now is 03:01 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration