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 09-19-2005, 04:19 PM   #1
silmaril8n
Member
 
Registered: May 2004
Posts: 123

Rep: Reputation: 15
Mobo fried - Moving HD to another PC


I have a server with Slack10 on it go down on me yesterday. I have a feeling that it was the mobo in it that died.

I threw the the HD into another PC with different hardware and when it boots I get the typical LILO screen. When I go into my Linux image it loads for about 1 screen and then says:
Quote:
VFS: Cannot open root device on "301" or 03:01
Please append a correct "root=" boot option
Kernel panic: VFS: Unable to mount root fs on 03:01
I'm hoping that this has something to do with the Kernel not having the required modules loaded for the hardware in this other system. Is there an easy way to rebuild this Kernel without losing the drive?
 
Old 09-19-2005, 04:36 PM   #2
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 53
It's not a problem of the kernel, but lilo, it's trying to read the root partition, and it seems it has changed.
Just update lilo to reflect the current location of your root partition and also update /etc/fstab.

By the way, you could specify the root partition on boot by putting in lilo's prompt: linux root=/dev/hdX

Last edited by gbonvehi; 09-19-2005 at 04:37 PM.
 
Old 09-19-2005, 04:38 PM   #3
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 58
You can boot up a live cd (I use gentoo) then chroot to the hd and recompile the kernel. That is if you have
the kernel source in /usr/src/linux
 
Old 09-19-2005, 04:49 PM   #4
silmaril8n
Member
 
Registered: May 2004
Posts: 123

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by gbonvehi
It's not a problem of the kernel, but lilo, it's trying to read the root partition, and it seems it has changed.
Just update lilo to reflect the current location of your root partition and also update /etc/fstab.

By the way, you could specify the root partition on boot by putting in lilo's prompt: linux root=/dev/hdX
Sorry I should have mentioned that I've tried specifying the root= and it's coming up with:
Quote:
No such image [TAB] shows a list
In response to the other... I figured that may I could recompile the Kernel but although I've used various distros of Linux over the past few years I'm not very experienced in issues like this. I've always used stock Kernels from the install and done very little tweaking. Can you direct me to a site that might explain it in more detail?

Thanks all!
 
Old 09-19-2005, 05:17 PM   #5
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 58
If you are using the stock kernel that should be fine.I would boot up knoppix so you can ask and post some info. To see if /etc/fstab is right.
fdisk -l and see it that is the same as /etc/fstab etc. If you are using the stock slackware kernel it should work unless you have something unusual.
 
Old 09-19-2005, 05:17 PM   #6
silmaril8n
Member
 
Registered: May 2004
Posts: 123

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by gbonvehi
It's not a problem of the kernel, but lilo, it's trying to read the root partition, and it seems it has changed.
Just update lilo to reflect the current location of your root partition and also update /etc/fstab.

By the way, you could specify the root partition on boot by putting in lilo's prompt: linux root=/dev/hdX
Update: I tried the command above again and I did get it to work (I didn't put "linux" in front).

It says that it still can't mount the reiserfs drive though.
 
Old 09-19-2005, 05:27 PM   #7
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 53
Were you using a initrd image to load reiserfs module? If you were, specify it on the prompt too with initrd=

The easier way to recover your system is to boot from a CD like others suggested (you can use Slackware CD 1), mount your harddisk, chroot to it. Then edit /etc/lilo.conf and /etc/fstab to reflect your drive change and finally, run lilo.
 
Old 09-19-2005, 07:07 PM   #8
silmaril8n
Member
 
Registered: May 2004
Posts: 123

Original Poster
Rep: Reputation: 15
Nailed it!

Thanks for the suggestions all!

I was able to boot up off the Slackware CD and run liloconfig after loading the image from the CD.

Now I have to get the network cards working again but that's a whole other thread (most likely a search on here will fix me right up).

Thanks again for the super help...!

Ben
 
  


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
Is my cd burner fried? geomatt Linux - Hardware 10 02-22-2005 03:42 AM
My LG CD DRIVES has fried..... mir_sheely Mandriva 2 08-05-2004 05:37 AM
copying/moving stalls when moving a lot of data to a usb stick =X¥®µ§= Linux - Hardware 10 07-30-2004 05:29 AM
I fried my X server Inexactitude Linux - Newbie 2 10-16-2003 11:25 PM
SiS735 fried? fragglehorn Linux - Hardware 4 10-15-2003 12:53 PM

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

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