Linux kernel 2.6.19 ATA drive support boobytrap

Christopher Friedt cfriedt-u6hQ6WWl8Q3d1t4wvoaeXtBPR1lH4CV8 at public.gmane.org
Sat Mar 10 11:33:33 UTC 2007


Ah, good!

I got it working now too... with the old PIIX driver (ata / sata) the 
root device was named hdc6. Now it's named sda6.

Also, i just changed the string [hdc] in my /etc/fstab to be [sda] and 
there were again, no problems.

kernel cmdline is now root=/dev/sda6 instead of /dev/hdc6

Surprisingly, grub somehow works without any changes - thus (hd0,4) 
stays as (hd0,4) - the boot partition where my bzImage is located.

Christopher Friedt wrote:
> Hi Walter,
> 
> I was one of those that ran into the problem that my system wouldn't 
> boot after switching to the 2.6.19-gentoo-r5 kernel.
> 
> Did your root device change to /dev/sd<something> instead of 
> /dev/hd<something>
> 
> Currently, I'm not sure what I should make changes in to switch to the 
> newer kernel, but I've selected CONFIG_ATA and CONFIG_ATA_PIIX (this one 
> also supports SATA)
> 
> Do you use grub? if so, what does the root= instruction in your 
> grub.conf look like?
> 
> Also, what is your kernel cmdline root=? and /etc/fstab ?
> 
> Currently, i'm using the ATA_PIIX driver, which also supports SATA <= 
> 2.6.18, but it normally registers the device at /dev/hdc even if it's an 
> SATA drive, which has been a source of some confusion in the past.
> 
> regards,
> 
> ~/Chris
> 
> 
> Walter Dnes wrote:
>>   This is of interest to those who build kernels.  There's a discussion
>> about this on the Gentoo mailing list.  If you're moving from 2.6.18 to
>> 2.6.19, and your system won't boot, and you get kernel panics about not
>> being able to access the hard drive, this message is for you.
>>
>>   ATA drive support in .config has been moved out of the SCSI section
>> and into a section all its own.  "make oldconfig" does *NOT* handle this
>> properly, as I found out "the hard way"<g>.  The relevant section in
>> .config is...
>>
>> #
>> # Serial ATA (prod) and Parallel ATA (experimental) drivers
>> #
>> CONFIG_ATA=y
>> # CONFIG_SATA_AHCI is not set
>> # CONFIG_SATA_SVW is not set
>> # CONFIG_ATA_PIIX is not set
>> # CONFIG_SATA_MV is not set
>> CONFIG_SATA_NV=y
>> # CONFIG_PDC_ADMA is not set
>>
>>   Set CONFIG_ATA=y, and enable your drive controller (I'm on an Nvidia
>> motherboard, yours will probably be different).  With that change made,
>> I am now able to boot up properly from...
>>
>> [m3000][waltdnes][~] uname -r
>> 2.6.19-gentoo-r5
>>
> -- 
> The Toronto Linux Users Group.      Meetings: http://gtalug.org/
> TLUG requests: Linux topics, No HTML, wrap text below 80 columns
> How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists
> 
> 
--
The Toronto Linux Users Group.      Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists





More information about the Legacy mailing list