LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 08-22-2003, 02:07 AM   #1
Thyriel
LQ Newbie
 
Registered: Aug 2003
Location: Vienna, Austria
Distribution: currently none
Posts: 10

Rep: Reputation: 0
Installed new HDD - Kernel PANIC!!!


hi,

i have yesterday installed a second HDD. a poor days ago i installed Linux with HDD's connected like this:

6GB Drive as Secondary Slave on IDE
120GB Drive on Raid Controller (unpartitioned)

i repartitioned the 6GB Drive while installing Linux.
After installing the drives where marked as /dev/hdh (6GB Drive) and /dev/hdd (the 120GB Drive).

i have then taken the 120GB out to transfer my data from another drive that was not connected while installing on another machine to the 120GB Drive partitioned as one FAT32 Partition.

i then connected the 120GB Drive as Secondary Master (not on Raid as before).
During boot the Linux Kernel paniced with the error:

cannot mount /dev/hdh2 as root

i then started rescue to look what happend and the situation was as followed:

the 6GB Drive was not any more /dev/hdh strangely it was now /dev/hdd and the 120GB Drive was now /dev/hdc

i thaught that this was happend because the new drive was connected before the 6GB Drive (120GB was master and 6GB was slave) so i connected them revers (6GB was now Master and 120GB was Slave) and rebooted.
the strange result: same result! 6GB was yet again /dev/hdd and the 120GB drive was /dev/hdc.

so i went to rescue console, connected /dev/hdd2 as /mnt and looked for a file that has "/dev/hdh" in it and i found it in the /boot/grub. i edited the file and rebooted the system.

after reboot the kernel panic was not anymore but the system hang up because it could not find some files...

any suggestions what went wrong? i am often connecting new hdd`s and then removing them and i don't want that i can set up the complete system again every time...

Distro is SuSE 8.2
 
Old 08-22-2003, 02:14 AM   #2
exodist
Senior Member
 
Registered: Aug 2003
Location: Portland, Oregon
Distribution: Arch
Posts: 1,374

Rep: Reputation: 47
ok, basically it used your raid as ide0-1 and your other as ide2-3
the raid has no drives didn't initilise and now boom hdh becomes hdc, in the lilo or grub boot type:

(imagename - usually linux or mandrake or kernel version)

sorry here is command:

boot: (imagename) root=/dev/hdc2

then edit the /etc/lilo.conf or /etc/grub.conf to change hdh to hdc
 
Old 08-22-2003, 02:15 AM   #3
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 48
in Grub you may also have a line that says

root (hdx,x)

Just point it to the correct place as you've done with the kernel line.

Also look at /etc/fstab, as this will have your mount points on redirect them to the correct devices.

If you've overwritten stuff on the drives your knackered and in for a new install.
 
Old 08-22-2003, 02:47 AM   #4
Thyriel
LQ Newbie
 
Registered: Aug 2003
Location: Vienna, Austria
Distribution: currently none
Posts: 10

Original Poster
Rep: Reputation: 0
that line in grub i replaced by the correct values but i forgot the /etc/fstab files... thanks for answer..
 
  


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
kernel panic when changing boot location from hdb to hdd loninappleton Linux - Hardware 7 11-08-2005 03:48 PM
Installed suse...ran Yast Update...now a kernel panic? RoaCh Of DisCor SUSE / openSUSE 1 12-24-2004 10:32 PM
Kernel Panic (hdd problem) frzburn Linux - Hardware 1 02-17-2004 12:45 PM
kernel panic EVERY time new kernel installed InfinitiesWorld Mandriva 1 01-11-2004 06:12 PM
Redhat 7.2 installed with kernel panic in boot up paddym Linux - Software 0 01-28-2002 08:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 08:33 PM.

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