-
Chad Granum
OpenSourcery Alumnus
I encountered an interesting issue when re-installing Gentoo on my personal laptop this evening. Previous gentoo install disks did not have this issue, however 2008.0 did. The issue is that my laptop has an intel sata controller that can also be identified w/ limited functionality as a pata controller.
The problem
The issue w/ using this sata controller as a pata controller is that dma cannot be enabled. This results in unbearable slowdowns whenever the hard drive or cdrom are accessed. Trying to format hda1, a 200mb partition with reiserfs was taking several minutes, normally it only takes a second or two. As well when the format was runing, the console would update slowly with a clearly visible refresh every time new text was displayed.
Obviously trying to copy the files needed to install any distro in such a situation would be painful. This is made far more painful when you are installing gentoo, which compiles the entire operating system from source. Clearly I needed to find a way to disable IDE support on bootup.
Searching for the solution
Gentoo provides some of the best documentation I have ever seen regarding installation. The install cd in fact allows you to see several bootup options at the boot prompt. Among these options were noload=[module] and nosata. However I was unable to find any options for IDE.
I figured I could boot the cd, unmount it (using the docache boot option in gentoo allows this), unload the ide drivers, and re-load the sata drivers. The problem with this however is that the ide drivers were not loaded as a module, they were built into the kernel.
Next I tried to check the kernel configuration for any help. I have been compiling my own kernel on linux since day 1 (some time in 1997, on slackware linux, back when it took an hour to do.) In the past I have noticed useful kernel boot options listed in the module help provided by the kernel config utils. I checked the IDE overall driver and the ATA generic driver, the latter reffered me to the Documentation/ide/ide.txt documentation, and here is where I found my solution.
The solution
The kernel documentation on IDE options at kernel boot is quite complete. It only took a minute of skimming the doc to decide upon the following boot prompt command:
boot: gentoo hda=none hdb=none hdc=none hdd=none ide0=0x168,0x36e,10
In detail:
When I booted w/ this set of options, the ide driver found no controller or drives. Next when the sata driver loaded, the controller and drivers were found using the preferred driver. My format and installation ran w/o any slowdowns.
This solution NOW WORK on
This solution NOW WORK on latest minimalCD from autobuilds - IDE still detected.
I had the same problen on a
I had the same problen on a Samsung NC10 using 2008.0 - this fixed it! Thanks!