LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 08-03-2005, 03:38 PM   #1
hawarden
Newbie
 
Registered: Feb 2005
Location: Hawaii
Distribution: centos/fedora/redhat/solaris
Posts: 28

Rep: Reputation: 15
kickstart install has kernel panic, every other time


I have made a boot cdrom that automatically does a kickstart install, using an nfs-accessible kickstart file and with the isos also accessed via nfs. It works great, when it works. It fails every other time. This is what is printed on the screen (I've started at the Redhat nash line, if you need the stuff above that let me know, and pardon any typos):

Code:
Redhat nash version 4.2.1.3 starting
Mounted /proc filesystem
Mounting sysfs
Creating /dev
Starting udev
Loading jbd.ko module
Loading ext3.ko module
Creating root device
Mounting root filesystem
mount: error 6 mounting ext3
mount: error 2 mounting none
Switching to new root
switchroot: mount failed 22
umount /initrd/dev failed: 2
Kernel panic - not syncing: Attempted to kill init!
It then stops here. It's driving me crazy because if I put the cd back in the computer and hit reset, the install will work. If I then put the cd in again and reset, it'll fail with the same error. (I guess it only works on odd-numbered installation attempts! )

I've looked around online but I don't see any help that matches this situation. If I do a standard install, everything works. I am using CentOS 4.1.
 
Old 10-26-2005, 07:45 PM   #2
hawarden
Newbie
 
Registered: Feb 2005
Location: Hawaii
Distribution: centos/fedora/redhat/solaris
Posts: 28

Original Poster
Rep: Reputation: 15
I solved this one, it was my error (or laziness). I had a script that modified the grub.conf file as the post install part of a kickstart file. It looked for "root=LABEL=/" and replaced it with "root=/dev/sda2". Looks reasonable, right? Unfortunately, for some reason every other time I did the installation, the installation program labeled the root partition as /1. So of course when my script ran, my new entry was "root=/dev/sda21" and the computer would not boot. Needless to say, I edit the file by hand now and have not had a problem since!
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[2.6.11 just compiled] kernel panic at boot-time MD3 Slackware 10 04-24-2005 11:39 AM
Just rebuilt kernel for the first time....kernel panic!!! cdavidson Linux - Newbie 3 04-03-2005 07:40 PM
How to specify Network Time Protocol Server in Kickstart script? EStester Linux - Enterprise 3 03-26-2005 01:46 PM
kernel panic EVERY time new kernel installed InfinitiesWorld Mandriva 1 01-11-2004 06:12 PM
Kickstart - Kernal panic Tpetersonalpine Linux - Newbie 1 06-15-2003 04:06 PM


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