LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 03-04-2004, 03:41 PM   #1
ragazzino
LQ Newbie
 
Registered: Mar 2004
Location: Los Angeles
Posts: 6

Rep: Reputation: 0
How do I pass noinitrd to kernel at boot (using GRUB)


Red Hat 9
GRUB as linux loader

Can anyone give me easy instructions on how I pass the noinitrd command to the kernel during boot up?

I'm trying to do this so that the kernel reconfigures itself to match up with my new laptop hardware (since I first installed RH9 by plugging the laptop HD into a desktop HD). However, once I plugged it back into my laptop I haven't been able to boot the kernel. Another pro advised me that this may be due to the init image file pegged to the desktop hardware so I should try reconfiguring it.
 
Old 03-05-2004, 07:09 AM   #2
aaa
LQ Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 47
At the grub menu, select the os you want to boot, then press 'e'. Then press 'e' again, add the 'noinitrd' option, press enter, and press 'b' to boot.
 
Old 03-05-2004, 12:41 PM   #3
ragazzino
LQ Newbie
 
Registered: Mar 2004
Location: Los Angeles
Posts: 6

Original Poster
Rep: Reputation: 0
Question

Thanks for the info. I think I've gotten that far. However, I don't know exactly which line and in which exact spot I enter "noinitrd" since I've already tried inserting it in numerous spots within the kernel line but I either get "Command not recognized" when I boot, or it simply runs the first few lines and then restarts the PC entirely. Below is exactly what is run unchanged. Now, would you be able to tell me where the noinitrd would go within it?

root (hd0,0)
kernel /vmlinuz-2.4.20.8 ro root=LABEL=/
initrd /initrd-2.4.20-8.img
 
Old 03-05-2004, 12:44 PM   #4
aaa
LQ Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 47
Change this line

kernel /vmlinuz-2.4.20.8 ro root=LABEL=/

to this:

kernel /vmlinuz-2.4.20.8 ro root=LABEL=/ noinitrd

This is how you add all boot options. 'ro' and 'root=...' are boot options, too. Note that grub will not save modifications you make on the fly this way. If you end up at the main grub menu again, your changes have been undone. You are supposed to press 'b' before you end up at the main menu again. To make any changes permanent, you will have to add these options to your /etc/grub.conf file.
 
  


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 get GRUB from MBR boot the kernel in CD? DrRider Linux - Software 5 03-01-2005 10:19 PM
Can you pass windows xp boot switches thru Grub? zipity Linux - Newbie 2 12-06-2004 03:28 PM
Boot Linux Kernel from GRUB manudath Linux - Newbie 3 10-05-2004 08:54 AM
cannot boot compiled kernel in grub (SUSE 9.1) stupidloser Linux - Newbie 4 08-10-2004 04:22 AM
kernel-2.4.20-13.8 and how to tell grub to boot it SuperTeece Linux - Software 7 05-21-2003 02:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 05:38 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
Open Source Consulting | Domain Registration