Link to home
Start Free TrialLog in
Avatar of andrzej
andrzej

asked on

Linux does not boot after adding a hard disk.

I have a PC which has Windows and linux
6.1 running on it. The first hard disk was divided into two partitions - one for DOS and the other one for Linux. Then a second disk was added purely for linux. This arrangement was working fine
with Lilo being used to choose at boot time which system starts up. Recently a third, 10Gb, disk was added. Using windows the third disk had two 2Gb partitions created on it for Windows and I have no problems under Windows to access them. However, now linux refuses to come up,. Booting process freezes after ide0 is initialized.
The suggestion was made to me that the reason for this is that perhaps originally the first disk was divided into DOS and linux partions using linux tools, but the new disk was partitioned using DOS. What can I do now? I could
repartition the third disk using linux if I could boot up linux but I do not seem to be able to do this.
Can something be done in this situation?

Andrzej
Avatar of Robson
Robson
Flag of Poland image

I don't think that partitions created by DOS are the problem. At this moment kernel doesn't care about any. It seems that ide detection code locks up.

Try to pass one of the following parameters to kernel:

      hdc=noprobe
or
      hdc=none
or
      ide1=noprobe

(I assume your hard drive is connected to second IDE interface as master).But afrer this linux won't see the third drive. You may try to pass all ide parameters to kernel and forbid it to do the detection:

      ide1=0x170,0x376,15

I took these numbers from kernel documentation (file ide.txt). Look there for other options.
Avatar of bernardh
bernardh

/dev/hdc is used by the cdrom drive,

boot: linux hdd=noprobe hdc=cdrom

when the system boot, you might as well include it in your /etc/lilo.conf file, but it should take the form:

append="hdd=noprobe hdc=cdrom"

Does the 10Gb disk have any of the "disk managers" for large drives installed on it (MaxBlast, etc)? Is it does, it's likely that you'll have problems until it's removed from the system. Assuming you installed the drive youself a clue that such a thing is present is if you were instructed to use a "disk setup floppy" before installing an OS on the disk.

Oh yeah, you didn't move any of the disks around when installing the 10Gb disk did you? They are still on their original IDE controllers and in the original Prim/Slave mode, right?
Avatar of andrzej

ASKER

The problem is that when I pass to the kernel the parameter ide1=noprobe, linux boots up but I have no access to cdrom, which is on the same contoller (ide1) as the third disk. Unfortunately, neither hdd=noprobe nor hdc=noprobe helps - the booting process again freezes after printing out ide0 line.
I do not have any disk manager for large drives installed on the third disk.
Disk 1 and 2 has not been moved.
ASKER CERTIFIED SOLUTION
Avatar of Robson
Robson
Flag of Poland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
have you tried passing this parameter combination to your kernel upon bootup?

   boot: linux hdd=noprobe hdc=cdrom

it tells the kernel not to probe the IDE addresses for the drive.

then check if symbolic link exist

   $ ls -l /dev/cdrom

   lrwxrwxrwx 1 root root 3 Oct 16 22:44 /dev/cdrom -> hdd

If it doesn't exist, type:

   $ ln -s /dev/hdd /dev/cdrom

good luck.
What is the bios mode for the 10Gb disk(normal, LBA, etc)? Which of the two drives on EIDE1 is the master & which is the slave?
Avatar of andrzej

ASKER

Trying hdd=noprobe hdc=cdrom did not
help - the bootup process freezes after
ide0 line.

When I tried ide1=0x170,0x376,15, during
the bootup process a window poped up
telling me that new hardware was found, CD-ROm, do I want to configure it? I answered 'yes' and then another window
poped up asking me if I want to configure a new hard drive. I answered 'yes' again and the everything seemsed to go fine. I can now mount cdrom as hdd. Thanks a lot - this is the answer to my question.
How can I grant 500 to Robson?

That messages were not actually caused by this kernel option, only Kudzu (hardware manaeger) noticed changes in your hardware.

I'm glad I could help you -- I have been an expert for short time and this is my second score so far. There should be the option called 'accept as answer' or 'promote to answer', but I'm not sure.