LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - Installation
User Name
Password
Slackware - Installation This forum is for the discussion of installation issues with Slackware.

Notices

Reply
 
LinkBack Search this Thread
Old 01-30-2010, 02:33 AM   #1
Jimeny_Cricket
LQ Newbie
 
Registered: Jan 2010
Location: Perth, Australia
Distribution: Slackware 13.0 64bit---Gentoo x86
Posts: 7

Rep: Reputation: 0
Kernel panic & confusion


Hi, I'll try to keep this thread short but can add plenty more detail if needed.

I installed Slackware 13.0 64bit from a downloaded .iso install DVD onto my PC, which is:

AMD 720 XIII 2.8GHz
ATI HD4670 Radeon
2 x 500GB SATA Hard Drives
1 x IDE Liteon Optical Drive

In case I made a mistake with the install I physically disconnected the first SATA hard drive and installed Slackware onto the 2nd (they are not RAIDed but independent disks see).

On my 2nd SATA disk I already had a Windows XP system partition and a windows data partition. Nevertheless Slackware installation went swimmingly and everything worked perfectly, including dual boot with Lilo worked perfectly.

After I reconnected the unplugged SATA HD though, Slackware would not boot. I got the much vaunted 'Kernel panic error'. Now I realise what has happened: Slackware has installed itself onto /dev/sda. But this physical disc has now become /dev/sdb (since I reconnected the 1st SATA disc which becomes /dev/sda). Alas I can't seem to fix this problem.

The second SATA HD has four partitions:
/dev/sdb1 (Windows XP system partition {NTFS})
/dev/sdb2 (Windows DATA partition {NTFS})
/dev/sdb3 (Ext4fs Linux swap part. type 82)
/dev/sdb4 (Ext4fs Linux root part. type 83)

I know Slackware was installed 'properly' because everything was working perfectly. Surely I don't have to rebuild it just to add another HD?

Here's what I have did to try to fix it:
1. Use the "root=/dev/sdb4" command at kernel boot time prompt
this didn't work, but it did stop the "kernel panic error" that halted the system boot. Now Slackware tells me that "there is a problem with locating your root partition". It gives me the chance to login as root and fix the problem, which I can do.

So now I:
2. Edit lilo.conf so that each line pointing to 1st SATA disc (because it was when slackware was installed) now points to 2nd SATA disc (where slackware is now)
To do this I had to spend a couple of hours working out to edit the lilo.conf file. First I had to remount the root partition with read-write access, ie.
mount -o remount,rw /
Then I edit the lilo.conf file manually with:
pico /etc/lilo.conf
Anyhow, I save the changes and reboot but it still doesn't work.

So now I
3. Issued rdev command to change location of root partition in kernel image, ie.
rdev /boot/vmlinuz /dev/sdb4
I reboot but it still doesn't work, Slackware still says there is a problem with the root partition and that I should login as root and fix the problem. Funnily enough it still seems (despite all the changes to /dev/sdb4) to be looking for the root partition at /dev/sda4 (?)
4. Issue "Liloconfig" and generated a fresh lilo.conf file adding my linux and windows partitions from /dev/sdb
It doesn't work. Slackware still says there is a problem with root partition.

5. Sobbed a bit.

I could just reinstall Slackware I think, but the fact I can't fix this simple problem means I must know even less than I think I do ...

My name is Robert, I'm a microsoftaholic.
Hello Robert.
 
Old 01-30-2010, 04:15 AM   #2
jiatong
LQ Newbie
 
Registered: May 2009
Posts: 8

Rep: Reputation: 2
you can try to change the sata cables connecting your harddrives so that your motherboard detects your second hdd as your first hdd. That way, your second hdd (currently) will become your first ie sda
 
Old 01-30-2010, 07:27 AM   #3
GazL
Senior Member
 
Registered: May 2008
Posts: 2,269

Rep: Reputation: 445Reputation: 445Reputation: 445Reputation: 445Reputation: 445
/etc/fstab will probably still have an old entry for the slackware root filesystem that you will need to fix, along with any other filesystems you created.
 
Old 01-30-2010, 10:28 AM   #4
Jimeny_Cricket
LQ Newbie
 
Registered: Jan 2010
Location: Perth, Australia
Distribution: Slackware 13.0 64bit---Gentoo x86
Posts: 7

Original Poster
Rep: Reputation: 0
Voila! et Bingo

Don't like to get melodramatic but that has solved the problem in 2 minutes flat!

Logged back in as root and edited the /etc/fstab file. In it were still all the references to sda. ie.
/dev/sda3 swap
/dev/sda4 ext4
/dev/sda1 ntfs
/dev/sda2 ntfs

I simply changed all those references to /dev/sdbx. For some reason I thought fstab was a directory where extra filesystems were mounted but no, it is a file that defines all the filesystems

Thanks again. I also learnt something about Linux. I hate Linux noobies already ...

Hope Andy can win the tennis tomorrow just for you ...



Thx jiatong that probably would have worked too, though I would have had to undo all my other fiddling.
 
Old 01-30-2010, 01:18 PM   #5
GazL
Senior Member
 
Registered: May 2008
Posts: 2,269

Rep: Reputation: 445Reputation: 445Reputation: 445Reputation: 445Reputation: 445
Glad you got it sorted. Happy Slacking.

Quote:
Originally Posted by Jimeny_Cricket View Post
Hope Andy can win the tennis tomorrow just for you ...
hehe. No skin off my nose if he loses. He's a Scot!
 
  


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
initrd & kernel panic asjapulk Linux - General 2 01-13-2004 02:35 AM
Kernel 2.6, RAID-1 & reiserfs kernel panic Raptor Ramjet Slackware 2 01-04-2004 08:25 AM
Slack & vmware kernel panic Jesterace Slackware 4 08-25-2003 06:50 AM
kernel 2.4.17, ext3 & kernel panic urinal cake Linux - Newbie 8 02-20-2002 08:26 PM


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