LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Waiting for /sys/block/hda/dev to come up (https://www.linuxquestions.org/questions/debian-26/waiting-for-sys-block-hda-dev-to-come-up-601799/)

davcefai 11-22-2007 11:59 PM

Waiting for /sys/block/hda/dev to come up
 
A Socket 370 board died and I have tried to replace it with a Socket 478, transplanted from another PC.

I am using Debian Unstable. When I tried to boot the computer I got:

Quote:

Waiting for /sys/block/hda/dev to come up
several times, then variants on this, then finally a kernel panic.

At the time of this error the machine had an 80GB PATA disc as hda, a 2.6GB disc as hdb. Hdc and hdd were a CD-writer and as DVD-ROM.

I don't know how relevant the following may be:

When I attached the 2 SATA drives which were previously attached to this board strange things happened during the boot. It appears that the PC begins to boot fron a SATA drive but then carries on from the PATA drive so that the PC ends up with the computer name from the PATA.

The only way I could get this machine to run is to attach the PATA drive to a USB adapter.

Could somebody please suggest a way out of this?

Dutch Master 11-24-2007 05:57 PM

Enter the BIOS and select which device it should boot from. Mind you, for that new mobo you'll need other drivers in the RAMdisk, so a re-install might be worth considering anyway.

davcefai 11-27-2007 12:12 AM

I've tried that but to no avail. I've googled this problem and I found lots of people with the same question and no answer.

A major part of the problem seems to be that on this machine I used yaird.

One possibility is to try to copy the ramdisc image from my other PC where I use initramfs.

The other possibility I can see is to reinstall the kernel from a Debian install disc.

I would like to cause minimal disruption to what is (in my opinion) a carefully and lovingly crafted Debian installation.

Is it possible to boot from an installation CD and just sort out this problem? I don't want to jump in and mess things up further.

davcefai 11-29-2007 04:06 PM

Solved!!!
 
This is how I fixed the problem:

Boot from Debian Install CD:
Code:

boot: rescue root=/dev/hda1
(or whichever partition is the root one)

Go through the install dialogs then open a shell in the root partition.
Mount the other partitions in their correct place. You may need to use fdisk to work out what you have and there may need to be a certain amount of trial and error.

If you used yaird (which was the root of my problem) install initramfs-tools

Code:

apt-get update
apt-get install initramfs-tools

I'm not sure if this is necessary but I reinstalled the kernel:

Code:

apt-get install linux-image-2.6.23-5-686 --reinstall
then:

Code:

mkinitramfs
/sbin/lilo

Ignore the error messages unless they are fatal.

Reboot.

Voila!


All times are GMT -5. The time now is 09:34 PM.