LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 11-20-2009, 01:09 PM   #1
CoffeeKing!!!
Member
 
Registered: Mar 2008
Posts: 114

Rep: Reputation: Disabled
fixing lilo after a bad edit


Hi

I've read that you can fix lilo after a bad edit by booting from install cd1 and entering:
Code:
boot: bare.i root=/dev/hda X noinitrd ro
at the boot prompt. Can someone confirm this or suggest a better way? I'm using slackware 13.

Last edited by CoffeeKing!!!; 11-20-2009 at 01:11 PM. Reason: add. info.
 
Old 11-20-2009, 02:04 PM   #2
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 3,894

Rep: Reputation: Disabled
Quote:
Originally Posted by CoffeeKing!!! View Post
Hi

I've read that you can fix lilo after a bad edit by booting from install cd1 and entering:
Code:
boot: bare.i root=/dev/hda X noinitrd ro
at the boot prompt. Can someone confirm this or suggest a better way? I'm using slackware 13.
Slackware no longer has a "bare.i" kernel.

If the partition where you installed Slackware is called /dev/hdaX then this is the command you need to type in order to have the install cd1 boot you straight into your Slackware installation:
Code:
huge.s root=/dev/hdaX rdinit= ro
Note the space between "rdinit=" and "ro".

Then, you edit /etc/lilo.conf to fix the error you made there.
Finally, you run the command
Code:
lilo
to make your changes "stick".

Eric
 
Old 11-20-2009, 02:15 PM   #3
tux_dude
Member
 
Registered: Dec 2008
Distribution: Slackware 12.2, Slackware Current 32/64
Posts: 137

Rep: Reputation: 26
Isn't there instruction given at bootup on how to specify the root disk? Why not pop the boot cd in and follow the instructions?
 
Old 11-20-2009, 03:56 PM   #4
CoffeeKing!!!
Member
 
Registered: Mar 2008
Posts: 114

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Alien Bob View Post
Slackware no longer has a "bare.i" kernel.

If the partition where you installed Slackware is called /dev/hdaX then this is the command you need to type in order to have the install cd1 boot you straight into your Slackware installation:
Code:
huge.s root=/dev/hdaX rdinit= ro
Note the space between "rdinit=" and "ro".

Then, you edit /etc/lilo.conf to fix the error you made there.
Finally, you run the command
Code:
lilo
to make your changes "stick".

Eric
Thanks Alien Bob and Tux Dude.

Tux Dude was right. The instructions that Bob gave me were also there when you boot up the CD. They are listed under a line that states, "In a pinch..." I guess after having attempted to install slack13 5 times yesterday, my brain got a nice glaze.

I'm off to backup and thrash lilo now. Thanks.

Last edited by CoffeeKing!!!; 11-20-2009 at 03:58 PM.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
I need help with fixing bad blocks mamadu.bwana Linux - Newbie 1 03-04-2008 06:30 PM
Fixing a bad partition table pen^2 Linux - General 2 07-21-2004 07:25 AM
Fixing a Bad Superblock PionexUser Linux - General 6 11-14-2003 03:52 PM
fixing bad blocks/sectors warheros Linux - Software 3 07-19-2003 11:01 PM
Fixing Bad Blocks PionexUser Linux - Newbie 1 07-19-2003 05:00 AM


All times are GMT -5. The time now is 06:17 AM.

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
Open Source Consulting | Domain Registration