Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
The problem started when I installed a new Asus motherboard K8v SE Deluxe edition and a 3200++ AMD 64 cpu. My redhat 9.0 kernel version 2.6.X.X usually booted from a floppy but now when I try to boot it, it gives me the following error: Kernel Panic: No init found. Try passing init = option to kernel. How can I fix this?? Anyone, please?!
Have you tried with your rescue CD. You can fix some things then but you first need to find out what's wrong. A lot of results turn up if you google on your error
See, thats the thing though, I do not have the rescue cd. If I can download it from somewhere, I will be more than happy to do that and see if it helps.
Also, I think the problem is that the harddrive location changed, like from /dev/hde1 to something else...
if the harddrive location is changed, you could give the root= as kernel parameter, so when the diskette boots I guess you get some command line where you select the kernel to boot, that's where you type: <kernelname> root=/dev/hdXX, where XX is the location of the / (root) partition. like /dev/hda1 or /dev/hdb3... try a few of these.
assuming it's an IDE drive, the first channel's first connector is hda, the second connector is hdb, the second channel's first connector is hdc and the last one is hdd. so you could check wich one to use if you open up the case. the number is the partition number, so if you have a swap first and the root partition after that, you should use 2 etc. for example I have my root partition on the first IDE channel's first connector on the third partition so I use /dev/hda3...
this can't be a master/slave setting on the drives? guess not but you might check it...
does this motherboard support hardware raid? in that case, maybe you have to disable this first in the bios...
you could try to get a Live-CD like Knoppix - it is then a very comfortable job to find out what happened on or with your drive, because you can look into it - mount it - fix the error...
Or get a rescue-floppy or another installation-CD from any distribution, they usually allow you to boot up a small rescue-system. You may even have these already if you occasionally read computer-magazines - often they have some trial-version of some linux on them.
...Don't you have your redhat install-mediums? They shoul do the job.
The harddrive is plugged into the raid but I have already dissabled it in the bios - so its working like a regular ide drive. The thing is though, which drive is it now? The raid connector - there is only one on the mobo + there are two ide connectors. Thnx in advance.
could it be sata? perhaps your red hat kernel supported your old sata controller, so the hard drive worked fine, but doesnt support the new one? going out on a limb there.
If you disabled the raid already there is not much (_nothing_) to gain from keeping it plugged to this connector.
And you could get your system back in a snap.
If you plug it into (the first) ide-connector, the hardware-layout would be the same as it was before - provided that you had it plugged to ide 1 with your previous motherboard...
At least you would then know exactly what to type in to use your rescue-floppy - if you know how the layout was while it was working...
With my rescue/boot disc from Debian/GNU the procedure was like this:
bios set to boot from floppy - insert it - turn on the machine - do nothing --> and the machine boots up like you know it
if you need the rescue-cababilities:
bios set to boot from floppy - insert it - turn on the machine - at the prompt, which stays there a few seconds, write: rescue root=/dev/hda1 (if your root-filesystem is on the first partition of the first disc and this disc is plugged into the primary ide-controller)
the kernel on the rescue disc then boots up and then it tries to access the root-filesystem - and with what you wrote in your command you tell the kernel, where to look for this - if it is not correct (not the place where you told it it wold be), the kernel does not know how to continue and stops with the message you already know --> kernel panic: No init found
You could then examine and change (make backups) the files which probably need changes as for instance /etc/fstab and - if you are using it - /etc/lilo.conf
To use raid, you'll probably need to have a kernel which is capable to do this --> recompile with the options needed - as far as I know it does not work by just using a raid-capable motherboard.
What about the Live-CD or another rescue-disc or -floppy - have you tried?
Thank you very much everyone! I was able to boot into my redhat 9.0. What I did was download the cd1 of redhat install, ran it, checked where my hard drive was - (I had to replug it from the raid controller)- and than ran the boot up disk with the following parameters:
linux root = /dev/hdc3
The problem, however, now is that I need to change the drive address permanently so I do not have to type that in all the time during boot up. Any suggestions?
you could change this on your boot-diskette permanently - but I would not go this way, now that you know how to use that to get to your system in case somthing is not working as expected.
At least I would strogly recommend having another boot-disc ready which is working and not altered (backup/copy).
Everyone wants to do It as easy and comfortable as it can get: you really should install a boot-manager like lilo or grub - with lilo being my favorite, because I know how to set it up. Booting from diskette is error-prone and slow too - why do that if you don't have to.
I'm sure RedHat has packages for either of these boot-managers and the install-procedure will probably help you to set it up properly.
-you could just leave out the lines with map, install, bitmap and bmp
type "man lilo" after you installed it (right at the top of the manual is a simple config-file you could almost use...) - or read the documentation before doing so on the net if you fear it will destroy something.
But it will not - it will ask you if you actually want it to install itself to your drives boot-sector
-and it can't do that: worst thing that could happen if you misconfigure it is that you would use your boot-diskette again :-) and then fix what went not as expected.
with boot=/dev/hda you would tell it on which disc to install
with image=/boot/linux-2.6.7 you would tell it, where to find the kernel it should boot
anyway:
To copy your boot-diskette you would need to use the "dd" command to copy it to hard-disc and then another to make a new one:
--> dd if=/dev/fd0 of=_some_filename_for_what_is_the _content_of_the_floppy_
--> dd if=_the_filename_and_path_of_the_file_from_the_line_above_ of=/dev/fd0
and to change it to boot your kernel without action on your part - as it was:
"rdev" could do that but I'm not familiar with its use - lilo or another boot-manager is the way you should go.
I do appriciate the suggestion but the thing with lilo is that it does not work too well with win xp - which is one the other hard drive. Do you know how I can just edit the /etc/fstab file instead. I already changed the swap location in it to point to the new drive but the actually root is more complicated. Any ideas how I can do that?? THanx everyone for your help.
the WinXP entry is not active (and also not correct) because whe write-support to NTFS-Partitions is - as far as I know - not really safe yet and I do not really need to move files around between the two Systems - I almost always use linux.
Just as easy as you could change the entry for your swap-partition you can do it for your root-partition...
You have 3 partitions, right? Then the following paragraph probably does not apply, as one is for WinXP, one for linux and one is your linux-swap partition...
But - beware: I have seen it with Suse and RedHat might do it too - your boot process may run with the help of an initrd (initial ram-disc) - a separate, rather small /boot partition would indicate this.
You will need to consult your documentation on how RedHat has organized this - there is no way for me to find that out.
That does not make it much more difficult to install lilo - you just have to know how these things are organized to be able to set things up correctly.
BTW: seems like you plugged your drive into the second and not the first ide-controller - your line to boot yuor system indicates that...
" linux root = /dev/hdc3 " --> /dev/hdc3 is the third partition (hdc3) as the master-drive (hda and hdc are master's) on the second ide-controller (hda and hdb are the first, hdc and hdd the second)
If you plug it to the first controller your root partition would become /dev/hda3 again - and would needed to be changed in fstab.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.