| View previous topic :: View next topic |
| Author |
Message |
olger901 l33t

Joined: 17 Mar 2005 Posts: 625
|
Posted: Wed Aug 16, 2006 12:00 pm Post subject: Gentoo (and other linux distributions), refuse to boot |
|
|
Hi all,
I bought a new server at work and wanted to use linux to create images.
The motherboard is an Asus P5B with Intel SATA Controller. (Which has 2 320GB Seagate SATA drives).
The motherboard has an additional JMicron JMB363 Controller. (Which has 2 Lite-On DVD-/+RW drives).
Linux boots fine from either of the DVD-/+RWs and everything is fine until it tries to mount the DVD-/+RW Drive.
It's probing for /dev/sda, sdb and sdc and so on... afterwards it tells me it can't find a CD to boot and that another medium is needed and the only thing that I can get is a bare shell.
Is there anything I can do to fix this, do I need another IDE Controller that is compatible with linux? (on ubuntu it displays mounting root filesystem where it hangs and knoppix does not boot either). |
|
| Back to top |
|
 |
davascript l33t


Joined: 07 Apr 2004 Posts: 618 Location: Pennsylvania
|
Posted: Wed Aug 16, 2006 12:44 pm Post subject: |
|
|
Have you tried to pass any options to the gentoo kernel like
if it boots and finds the boot medium then the controller shoudl work but maybe it cant mount the device due to the secondary ide channel being open or just a hardwae conflict.
Last edited by davascript on Wed Aug 16, 2006 12:48 pm; edited 1 time in total |
|
| Back to top |
|
 |
Cuardin l33t

Joined: 06 Feb 2003 Posts: 713 Location: vasastaden.stockholm.se
|
Posted: Wed Aug 16, 2006 12:47 pm Post subject: |
|
|
You said the problem was with the CD/DVD drives right? No problems with the HDs just now, right?
In that case, does the kernel you are booting with have built in support for the controller that controlls the CD/DVDs? It appears that 2.6.15+ kernels or so have support for the controller, so it shouldn't be an impossibility to fix. _________________ Part of "The adopt an unanswered post initiative" |
|
| Back to top |
|
 |
jpl888 Guru


Joined: 13 Apr 2005 Posts: 337 Location: Piltown, Co. Kilkenny, Ireland.
|
Posted: Wed Aug 16, 2006 12:58 pm Post subject: |
|
|
And according to the JMicron website Gentoo is supported.
Looking through the kernel sources "AHCI" refers to that controller, so is AHCI loaded? Other than that are there any errors in dmesg? Does lspci report the controller? |
|
| Back to top |
|
 |
olger901 l33t

Joined: 17 Mar 2005 Posts: 625
|
Posted: Wed Aug 16, 2006 1:30 pm Post subject: |
|
|
Well it's basically like this:
The Onboard JMicron Controller is a SATA/PATA (IDE) Controller and has support for 2 SATA (1 Internal 1 on-the-go) and 2 IDE/PATA Drives.
I am currently only using the JMicron PATA Controller (I am using the Intel SATA Controller for the 2 Seagate HDD's) The Primary Master is a Lite-On SHM16P5S and the Primary Slave is a Lite-On SHM16P5S aswell.
When I pop in the CD it shows me the ISO Linux screen and I pressed enter there, then it loaded the kernel and various module which all went fine until it comes to the part where it tries to mount the CD-Rom as a filesystem.
EDIT: Ok I just tried booting with just a single DVD-/+RW Connected...same thing, I also tried to just boot with the failsafe option gives me the same thing.
The exact error
| Code: |
Making tmpfs for /newroot
Attempting to mount CD: - /dev/sda
Attempting to mount CD: - /dev/sda1
Attempting to mount CD: - /dev/sda2
Attempting to mount CD: - /dev/sda3
Attempting to mount CD: - /dev/sda4
Attempting to mount CD: - /dev/sda5
and goes on like this for sdb, and sdc..
No bootable medium found. Waiting for new devices...
Attempting to mount CD: - /dev/sda
Attempting to mount CD: - /dev/sda1
Attempting to mount CD: - /dev/sda2
Attempting to mount CD: - /dev/sda3
Attempting to mount CD: - /dev/sda4
Attempting to mount CD: - /dev/sda5
and goes on like this for sdb, and sdc..
Could not find CD to boot, something else needed.
Mounting /newroot/dev on /dev failed. No such file or directory.
|
Afterwards all I can do is type shell to get a minimum shell. |
|
| Back to top |
|
 |
FantomKnight Tux's lil' helper


Joined: 09 Aug 2006 Posts: 135 Location: USA
|
Posted: Wed Aug 16, 2006 1:43 pm Post subject: |
|
|
Instead of just pressing enter at the boot prompt, type in gentoo doscsi. Sometimes, SATA controllers need to have SCSI support forced in order for the CD to be recognized. Also, if you are like me and don't want to boot into the GUI from the LiveCD, you can type gentoo doscsi nox. This will basically give you the same non-GUI interface that previous Gentoo install CDs had. _________________ Windows = a 32-bit extension to a 16-bit graphical shell for an 8-bit operating system originally coded for a 4-bit microprocessor by a 2-bit company that can't stand 1 bit of competition. |
|
| Back to top |
|
 |
olger901 l33t

Joined: 17 Mar 2005 Posts: 625
|
Posted: Wed Aug 16, 2006 1:44 pm Post subject: |
|
|
| FantomKnight wrote: | | Instead of just pressing enter at the boot prompt, type in gentoo doscsi. Sometimes, SATA controllers need to have SCSI support forced in order for the CD to be recognized. Also, if you are like me and don't want to boot into the GUI from the LiveCD, you can type gentoo doscsi nox. This will basically give you the same non-GUI interface that previous Gentoo install CDs had. |
The CD-Rom drive is NOT connected to a SATA controller but to a regular 40-pin IDE Controller...I already am using the minimal install cd so I got no GUI, thanks for the tips though. |
|
| Back to top |
|
 |
Cuardin l33t

Joined: 06 Feb 2003 Posts: 713 Location: vasastaden.stockholm.se
|
Posted: Wed Aug 16, 2006 1:47 pm Post subject: |
|
|
Yeah, that is pretty much how I understood it.
What you need to do is get a kernel that has built-in support for your controller.
If I understand correctly, what you are seeing is that the BIOS can communicate with the controller and load the boot-loader and then the boot-loader asks the bios to load the kernel. Then the kernel starts up, and since bios-calls are super-slow, it skips those and begins to load drivers that can communicate directly. Now, if there is no driver for the JMicron device, then the kernel willr efuse to communicate with that device. That way, you just lost communication with the DVD-drive that contains the init-scripts and everything else you need to get the installation system running.
What I would do is place one DVD on the Intel controller instead of a HD. Place the gentoo-cd in there and boot. This should work flawlessly. Now install gentoo on the remaining HD, and make sure you enable support for the JMicron device (as well as everything else) in the kernel. When you boot your fresh system, it should be able to read both DVD drives.
Now, since you have two identical drives, I assume RAID is on the menu. I am not an expert on raid, but I am fairly sure you can fix RAID after you pretty much got the complete system installed if you plan ahead. Just jack in the second device in the right place and tell your system that this drive is to be part of the RAID array. If things are properly configured, everything should work automagically.
If you don't want RAID, then you have no problem. Just put the second drive back and do whatever you want with it. _________________ Part of "The adopt an unanswered post initiative" |
|
| Back to top |
|
 |
olger901 l33t

Joined: 17 Mar 2005 Posts: 625
|
Posted: Wed Aug 16, 2006 1:49 pm Post subject: |
|
|
| Cuardin wrote: | Yeah, that is pretty much how I understood it.
What you need to do is get a kernel that has built-in support for your controller.
If I understand correctly, what you are seeing is that the BIOS can communicate with the controller and load the boot-loader and then the boot-loader asks the bios to load the kernel. Then the kernel starts up, and since bios-calls are super-slow, it skips those and begins to load drivers that can communicate directly. Now, if there is no driver for the JMicron device, then the kernel willr efuse to communicate with that device. That way, you just lost communication with the DVD-drive that contains the init-scripts and everything else you need to get the installation system running.
What I would do is place one DVD on the Intel controller instead of a HD. Place the gentoo-cd in there and boot. This should work flawlessly. Now install gentoo on the remaining HD, and make sure you enable support for the JMicron device (as well as everything else) in the kernel. When you boot your fresh system, it should be able to read both DVD drives.
Now, since you have two identical drives, I assume RAID is on the menu. I am not an expert on raid, but I am fairly sure you can fix RAID after you pretty much got the complete system installed if you plan ahead. Just jack in the second device in the right place and tell your system that this drive is to be part of the RAID array. If things are properly configured, everything should work automagically.
If you don't want RAID, then you have no problem. Just put the second drive back and do whatever you want with it. |
The Intel Controller has no 40-pin IDE Connectors...just SATA Connectors.
BTW to FantomKnight I just did a doscsi aswell to be sure but that did not help unfortunately:( |
|
| Back to top |
|
 |
FantomKnight Tux's lil' helper


Joined: 09 Aug 2006 Posts: 135 Location: USA
|
Posted: Wed Aug 16, 2006 1:50 pm Post subject: |
|
|
Your previous post said | Quote: | | The Onboard JMicron Controller is a SATA/PATA (IDE) Controller | which indicates that it MIGHT need a SCSI option at boot. Also, the minimal CD may not have the proper drivers for this controller. Maybe you should try the LiveCD with the options I suggested. _________________ Windows = a 32-bit extension to a 16-bit graphical shell for an 8-bit operating system originally coded for a 4-bit microprocessor by a 2-bit company that can't stand 1 bit of competition. |
|
| Back to top |
|
 |
Cuardin l33t

Joined: 06 Feb 2003 Posts: 713 Location: vasastaden.stockholm.se
|
Posted: Wed Aug 16, 2006 1:53 pm Post subject: |
|
|
Isn't there a list of what devices are compiled into the boot kernels? That would easilly and decidedly resolve this issue? _________________ Part of "The adopt an unanswered post initiative" |
|
| Back to top |
|
 |
olger901 l33t

Joined: 17 Mar 2005 Posts: 625
|
Posted: Wed Aug 16, 2006 1:54 pm Post subject: |
|
|
| FantomKnight wrote: | Your previous post said | Quote: | | The Onboard JMicron Controller is a SATA/PATA (IDE) Controller | which indicates that it MIGHT need a SCSI option at boot. Also, the minimal CD may not have the proper drivers for this controller. Maybe you should try the LiveCD with the options I suggested. |
There is no use in doing that because the drivers that are included are exactly the same as far as I am aware, next to that if this should have been the solution at least knoppix or ubuntu should have booted... |
|
| Back to top |
|
 |
Cuardin l33t

Joined: 06 Feb 2003 Posts: 713 Location: vasastaden.stockholm.se
|
|
| Back to top |
|
 |
olger901 l33t

Joined: 17 Mar 2005 Posts: 625
|
Posted: Wed Aug 16, 2006 1:58 pm Post subject: |
|
|
| I wouldn't know, how would I, but by default if a kernel is compiled, the developpers include the whole module dir right? If so it should be included. |
|
| Back to top |
|
 |
FantomKnight Tux's lil' helper


Joined: 09 Aug 2006 Posts: 135 Location: USA
|
Posted: Wed Aug 16, 2006 2:01 pm Post subject: |
|
|
I just know that I once had a machine that I tried to boot several distros on, including Ubuntu. None of them would boot. The only one that I could get to boot was Gentoo using the doscsi option. Although this may not be the solution in your case. Hope you get it working though.  _________________ Windows = a 32-bit extension to a 16-bit graphical shell for an 8-bit operating system originally coded for a 4-bit microprocessor by a 2-bit company that can't stand 1 bit of competition. |
|
| Back to top |
|
 |
olger901 l33t

Joined: 17 Mar 2005 Posts: 625
|
Posted: Wed Aug 16, 2006 2:04 pm Post subject: |
|
|
Ok i just read through the forums and found the all-generic-ide option. I booted with this option and it worked, however when using this option, everything is REALLY slow...
BTW: It found my drive on /dev/hdk... |
|
| Back to top |
|
 |
olger901 l33t

Joined: 17 Mar 2005 Posts: 625
|
Posted: Wed Aug 16, 2006 2:08 pm Post subject: |
|
|
Even things like starting cfdisk takes a few minutes... |
|
| Back to top |
|
 |
olger901 l33t

Joined: 17 Mar 2005 Posts: 625
|
|
| Back to top |
|
 |
Cuardin l33t

Joined: 06 Feb 2003 Posts: 713 Location: vasastaden.stockholm.se
|
Posted: Wed Aug 16, 2006 2:31 pm Post subject: |
|
|
If you have another computer, you can allways place one of your HDs in that comp and do the installation on that comp, then move it to your new comp and boot it up. Not a good solution, but I did it once, and it isn't as complex as it may sound.
Still need good drivers for your DVD sooner or later, though. _________________ Part of "The adopt an unanswered post initiative" |
|
| Back to top |
|
 |
FantomKnight Tux's lil' helper


Joined: 09 Aug 2006 Posts: 135 Location: USA
|
Posted: Wed Aug 16, 2006 3:55 pm Post subject: |
|
|
Or, maybe you could do what one of the guys in those posts did. He disabled the JMicron controller and booted from a USB CD-ROM drive to get his system installed. _________________ Windows = a 32-bit extension to a 16-bit graphical shell for an 8-bit operating system originally coded for a 4-bit microprocessor by a 2-bit company that can't stand 1 bit of competition. |
|
| Back to top |
|
 |
FantomKnight Tux's lil' helper


Joined: 09 Aug 2006 Posts: 135 Location: USA
|
Posted: Wed Aug 16, 2006 4:20 pm Post subject: |
|
|
olger901, I just ran across another thread where someone used the docache boot option to get through an installation when nothing else worked. He probably had a different mobo, though. But still may be worth a shot. _________________ Windows = a 32-bit extension to a 16-bit graphical shell for an 8-bit operating system originally coded for a 4-bit microprocessor by a 2-bit company that can't stand 1 bit of competition. |
|
| Back to top |
|
 |
olger901 l33t

Joined: 17 Mar 2005 Posts: 625
|
Posted: Wed Aug 16, 2006 5:03 pm Post subject: |
|
|
| Thanks, I am gonna try that docache option, btw I filed a blocker bug report about 2 hours ago now, hoping that someone will look at it as I believe other motherboards that use the same JMicron controller may be having problems aswell... |
|
| Back to top |
|
 |
zuluxxx n00b

Joined: 21 Apr 2006 Posts: 40 Location: Paris, France
|
|
| Back to top |
|
 |
hinibi n00b

Joined: 24 Aug 2006 Posts: 1
|
Posted: Thu Aug 24, 2006 9:15 am Post subject: |
|
|
hello ppl
well i had the same problem, thought a bit, look in bios and found in the Bios (where it shows the detected ide device). there i found an option about the ide device, it was on Enhance. I switch option to Compatible, booted on gentoo CD, and all went well
hope this helps you  |
|
| Back to top |
|
 |
|