LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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
  Search this Thread
Old 05-29-2010, 01:00 PM   #1
delta_waves
LQ Newbie
 
Registered: Feb 2010
Distribution: FreeBSD
Posts: 20

Rep: Reputation: 0
classic rookie mistake (LILO)


I made this same mistake installing 13.0 several months ago and fixed it back then by trying different things, but I still don't understand why.

So here's what I did this time to screw up with 13.1:

-Partitioned the hard drive to have /boot partition at sda1 of type ext2 (root partition is at sda3)
-manually configured LILO and chose to install bootloader to the MBR
-went into that 'add linux' option in the LILO menu and pointed it to sda1

When I try to boot slackware 13.1 I get a kernel panic. I'm sure the answer must be obvious but I don't find LILO very easy to understand. What did I do wrong and what should I do to fix this?

Last edited by delta_waves; 05-29-2010 at 01:35 PM.
 
Old 05-29-2010, 01:08 PM   #2
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
Quote:
Originally Posted by delta_waves View Post
I made this same mistake installing 13.0 several months ago and fixed it back then by trying different things, but I still don't understand why.

So here's what I did this time to screw up with 13.1:

-Partitioned the hard drive to have /boot partition at sda1 of type ext2 (root partition is at sda2)
-manually configured LILO and chose to install bootloader to the MBR
-went into that 'add linux' option in the LILO menu and told it that my boot partition is at sda1

When I try to boot slackware 13.1 I get a kernel panic. I'm sure the answer must be obvious but I don't find LILO very easy to understand. What did I do wrong and what should I do to fix this?
What type of kernel panic? Can't find certain modules?
 
Old 05-29-2010, 01:21 PM   #3
delta_waves
LQ Newbie
 
Registered: Feb 2010
Distribution: FreeBSD
Posts: 20

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Richard Cranium View Post
What type of kernel panic? Can't find certain modules?
Here are the last few lines I get

Code:
VFS:  Mounted root (ext2 filesystem) readonly on device 8:1.
devtmpfs: error mounting -2
Freeing unused kernel memory: 636k freed
Write protecting the kernel text: 9564k
Write protecting the kernel read-only data: 2448k
Warning: unable to open an initial console.
Kernel panic - not syncing: No init found.  Try passing init= option to kernel.
Pid: 1, comm: swapper Not tainted 2.6.33.4-smp #2
Call Trace:
One thing that I noticed right away is that it seems to be trying to mount my ext2 (/boot) partition as the root partition. The only partition formatted ext2 was the /boot partition at sda1 and it's only 32MB!

Last edited by delta_waves; 05-29-2010 at 01:31 PM.
 
Old 05-29-2010, 01:38 PM   #4
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
Do you remember the command line that you used to make your initrd?
 
Old 05-29-2010, 01:57 PM   #5
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,897

Rep: Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019
Quote:
Originally Posted by delta_waves View Post
So here's what I did this time to screw up with 13.1:

-Partitioned the hard drive to have /boot partition at sda1 of type ext2 (root partition is at sda3)
-manually configured LILO and chose to install bootloader to the MBR
-went into that 'add linux' option in the LILO menu and pointed it to sda1

When I try to boot slackware 13.1 I get a kernel panic. I'm sure the answer must be obvious but I don't find LILO very easy to understand. What did I do wrong and what should I do to fix this?
You should point it at the rootfs (sda3) not the /boot fs (sda1)

add "root=/dev/sda3" to your LILO prompt when you boot and you should be able to fix that by manually changing your /etc/lilo.conf and rerunning /sbin/lilo.

Last edited by GazL; 05-29-2010 at 02:00 PM.
 
Old 05-29-2010, 02:33 PM   #6
delta_waves
LQ Newbie
 
Registered: Feb 2010
Distribution: FreeBSD
Posts: 20

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by GazL View Post
You should point it at the rootfs (sda3) not the /boot fs (sda1)

add "root=/dev/sda3" to your LILO prompt when you boot and you should be able to fix that by manually changing your /etc/lilo.conf and rerunning /sbin/lilo.
Thanks, this fixed it
 
Old 06-07-2010, 11:13 AM   #7
dodgefan
Member
 
Registered: Apr 2008
Location: Kannapolis NC USA
Distribution: Debian, Mint, Arch
Posts: 32

Rep: Reputation: 0
Quote:
Originally Posted by GazL View Post
You should point it at the rootfs (sda3) not the /boot fs (sda1)

add "root=/dev/sda3" to your LILO prompt when you boot and you should be able to fix that by manually changing your /etc/lilo.conf and rerunning /sbin/lilo.

**disregard my post, did a rebuild, but i know now to boot the install dvd and mount the file system, chroot and edit the files i need**

how do i add that line to lilo? when i hit tab at the lilo screen it drops me to a boot: line and if i add root=/dev/sda3 it says No such image Tab shows a list.

i did the same as the OP, sda1 is /boot and during the install i told lilo to add sda1 instead of sda3. its a new install so i could just re-do it but id like to fix it this way first

Last edited by dodgefan; 06-08-2010 at 02:50 PM.
 
  


Reply



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
Thanks from New Rookie jockeyjoc LinuxQuestions.org Member Intro 1 12-16-2007 09:28 PM
PLEASE HELP! Im a rookie paolo220887 Linux - General 1 06-20-2007 08:42 AM
Rookie mistake ruined raid partitions? bullsnake SUSE / openSUSE 11 08-29-2006 01:25 AM
Rookie tigerpatch LinuxQuestions.org Member Intro 3 05-08-2006 06:19 PM
Quick LILO tip (ie Avoid my Mistake) Linus VanPelt Linux - Newbie 1 03-31-2003 03:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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