Go Job Hunting at the LQ Job Marketplace
Go Back > Forums > Linux Forums > Linux - Hardware
User Name
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?


Search this Thread
Old 09-21-2012, 03:43 PM   #1
LQ Newbie
Registered: Dec 2004
Location: North of Germany
Distribution: Ubuntu
Posts: 23

Rep: Reputation: 0
How to boot after changing IDE connector


due to better cable management I had to change the connection of my IDE-HDD-drives on the mainboard from IDE1 to IDE2.

Since then booting fails (not surprising). I receive:

LILO 22.7.3 Loading Linux.................
BIOS check successful
Uncompressing Linux... ok, booting the kernel
/linuxrc: Out of file descriptors
/etc/init: Out of file descriptors
Kernel panic - not syncing: Attempting to kill init
On the machine, I have installed Knoppmyth R5F27 (on Debian GNU 4.0/Etch)

Is there a way to fix this, using some sort of live distribution?

Thank you and kind regards.

Old 09-21-2012, 05:14 PM   #2
Registered: Mar 2008
Posts: 11,722

Rep: Reputation: 1439Reputation: 1439Reputation: 1439Reputation: 1439Reputation: 1439Reputation: 1439Reputation: 1439Reputation: 1439Reputation: 1439Reputation: 1439
On newish systems you could change the boot disk order so that ide channel 1 is now above channel 0. The issue is that now this second or third in order drive is trying to use the older relative paths.

I'd see if bios can change the order then you have only that to fix. Otherwise you have to boot to a live cd and fix all the issues with paths.
Old 09-22-2012, 01:09 AM   #3
LQ Newbie
Registered: Dec 2004
Location: North of Germany
Distribution: Ubuntu
Posts: 23

Original Poster
Rep: Reputation: 0
In BIOS the correct HD with LILO is identified so booting starts at least.

But for my understanding, as soon as it comes to the point, where paths are indicated, it will fail (old path hdaX (primary master) is now hdcX (secondary master))

Otherwise you have to boot to a live cd and fix all the issues with paths.
I am thinking of editing /etc/fstab. Some more settings to fix?

Meanwhile I tried to boot LILO using some command line option - but without success. What I did:

1. interrupt LILO by hitting TAB during boot.
2. in the command line I added some options, which I identified from /etc/lilo.conf. So the line looked like this:
Linux disk=/dev/hdc boot=/dev/hdc root=/dev/hdc1 map=/dev/hdc1/boot/map image=/dev/hdc1/boot/vmlinuz-2.6.18-chw-13 initrd=/dev/hdc1/boot/initrd.gz
But still no success. Same error message as mentioned in the beginning

Desperately, I changed the IDE connectors back, so the HDD is attached to first IDE and it is identified again as /dev/hda.

Now everything works again...

Last edited by NightStranger; 09-22-2012 at 06:58 AM.
Old 09-28-2012, 04:01 AM   #4
Registered: Jul 2003
Posts: 356
Blog Entries: 1

Rep: Reputation: 49
Hi NightStranger

Yep the above advice is correct, the system may boot from the nominated drive (BIOS) but the installed software (and referenced data) will have absolute references to the drives (hd<a><i>), and they would have to be identified and changed manually.

If you go down that road, then I suggest that you boot the system with a Live CD/DVD linux, and then perform global searches for references, but that will not cover any software applications that have been built (compiled) containing absolute references (picked up from system data during a build, or manually specified).

In short, my opinion is that you are always better off in the longer term (many considerations) if you store your valuable user data on a separate physical drive (yes I know that isn't always possible, but more often that not it is ), so that if you perform a change of physical drives, or drive order, you avoid this situation.

In this case I would recommend backing up your valuable user data, and performing a fresh OS and application software install, then restore your backed up user data. The other advantage of this approach is that you will have (a) a complete backup copy of your data, and (b) proven that you can recover/rebuild your Linux installation. Both steps of which would be required if you (heaven forbid) suffered a system of hard disk failure) in the future.

Hope that assists.

Old 09-28-2012, 09:11 AM   #5
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 11,281
Blog Entries: 3

Rep: Reputation: 1446Reputation: 1446Reputation: 1446Reputation: 1446Reputation: 1446Reputation: 1446Reputation: 1446Reputation: 1446Reputation: 1446Reputation: 1446
Member Response


It does sound as if the OP should be using cable select(cs) for the drive identification on a 40 style cable. Some drives allow 'single/master' thus the placement on the cable doesn't matter in a single drive system. I prefer the 80 conductor for better transfer & configuration. No reflection or signal injection from adjacent conductors when using the 80 style cable.

Norm is to place the master drive at the end of the cable for master/slave configurations or single drive installs. HD IDE Drive jumper configuration should provide some insight.


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
Undetected IDE Connector CaptainCarisma Linux - Hardware 3 09-28-2012 07:11 AM
Changing from SATA to IDE boot drive. purelithium Linux - General 7 02-09-2006 11:54 AM
Dual boot XP(internal IDE HDD) Debian(external USB-IDE HDD) using boot.ini PolarDog Linux - Laptop and Netbook 2 07-01-2005 09:50 PM
Problems with third IDE connector lord-darkness Linux - Hardware 2 11-09-2004 01:31 AM
Slackware 9.0, second ide connector oiper Slackware 4 07-17-2003 12:38 PM

All times are GMT -5. The time now is 09:48 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 @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration