Hi!

> After I re inserted the disk, the hard disk was
> configured a slave, and it changed from /dev/hda to
> /dev/hdb.
>
> As a result, the kernel panics saying no init found.
>
> I passed boot option root=/dev/hdb8
This is correct, but only this will not suffice.

>
> However I still get error, dropping me onto shell.
This is because, your /etc/fstab entries still contain references to /dev/hda.
Since your harddisk is now on /dev/hdb, you need to make changes to /etc/fstab 
accordingly. When you get to a shell (as you have mentioned above), most 
probably your partitions are mounted read-only. Remount them in read-write 
mode by, e.g.

$ mount / -o remount,rw

This will remount your root partition in read-write mode. I'm hoping you 
have /etc on the root partition itself and not of a separate partition. If 
that is the case, remount that partition in read-write mode.

Now you can edit /etc/fstab. Change /dev/hda to /dev/hdb whereever required.
Save and exit. Now the next time you boot your system, all your partitions 
will be mounted correctly.

> I have tried changing the jumper setting, but could
> not get the hard disk to be as primary master.
Well, if you do not want to edit /etc/fstab, just make sure your disk is 
primary master. This should not be a proble. The disk's jumper setting only 
determines whether the disk is master/slave or cable select. It does NOT 
determine whether it is primary or secondary. That is determined by where you 
connect the disk's data cable. There are 2 slots on motherboard for IDE disk 
cables. A primary and a secondary. Connect your disk's cable to the primary 
slot and set disk's jumper to master. Your problem should be solved and you 
won't need to edit /etc/fstab either! Of course, if primary slot is already 
taken by CD-drive's cable, you need to adjust that. Maybe make CD-drive 
primary slave or secondary master/slave. If you know what was the CD device 
in /dev earlier, set it accordingly to be on safer side. :-)

AFAIK, IDE devices are accessible under /dev as:

Primary Master:         /dev/hda
Primary Slave:          /dev/hdb
Secondary Master:       /dev/hdc
Secondary Slave:        /dev/hdd

for example, my CD-drive, which is secondary master, shows up as /dev/hdc.

> Do I have to install mandrake all over again?
Not at all!!!

I hope this helps you to solve your problem.

Regards,
Kapil

-- 
"The Power to Imagine, is The Power to Create!"
-TTux
--
______________________________________________________________________
Pune GNU/Linux Users Group Mailing List:      ([email protected])
List Information:  http://plug.org.in/mailing-list/listinfo/plug-mail
Send 'help' to [EMAIL PROTECTED] for mailing instructions.

Reply via email to