SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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
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?
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.