Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Debian This forum is for the discussion of Debian Linux.


  Search this Thread
Old 11-22-2007, 11:59 PM   #1
Registered: Dec 2004
Location: Malta
Distribution: Debian Sid
Posts: 827

Rep: Reputation: 43
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:

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?
Old 11-24-2007, 05:57 PM   #2
Dutch Master
Senior Member
Registered: Dec 2005
Posts: 1,686

Rep: Reputation: 124Reputation: 124
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.
Old 11-27-2007, 12:12 AM   #3
Registered: Dec 2004
Location: Malta
Distribution: Debian Sid
Posts: 827

Original Poster
Rep: Reputation: 43
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.
Old 11-29-2007, 04:06 PM   #4
Registered: Dec 2004
Location: Malta
Distribution: Debian Sid
Posts: 827

Original Poster
Rep: Reputation: 43

This is how I fixed the problem:

Boot from Debian Install CD:
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

apt-get update
apt-get install initramfs-tools
I'm not sure if this is necessary but I reinstalled the kernel:

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

Ignore the error messages unless they are fatal.




Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Install lilo on external drive (/dev/sda), then boot as INTERNAL (/dev/hda)? slackware-elf Slackware 3 08-18-2007 04:51 PM
My browser, all day today: 'waiting for' ..waiting.. waiting .. GrapefruiTgirl LQ Suggestions & Feedback 18 05-25-2007 05:35 AM
moving bootable drive from /dev/hde to /dev/hda chromedog Red Hat 1 02-08-2006 04:31 AM
/dev/hda under lilo.conf even thoug my HD is under /dev/hdb Basel Slackware 8 10-27-2005 06:00 PM
How can I boot either one of my hard drives /dev/hda or /dev/hdb, I have RH9 and FC2 omogunkristi Linux - General 1 06-21-2004 05:11 AM > Forums > Linux Forums > Linux - Distributions > Debian

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration