2006-01-04 19:54:42

by andy liebman

[permalink] [raw]
Subject: Atapi CDROM, SATA OS drive, and 2.6.14+ kernel

Can somebody tell me what changed in the 2.6.14 kernel that doesn't
allow me to access my CDROM drive when my OS drive is SATA?

I have an image of a working 2.6.14 system that was installed on an IDE
drive. I restored the image to a SATA drive, changed a few lines in
/etc/fstab and /etc/lilo.conf so that they refer to /dev/sd* devices
instead of /dev/hd* devices.

I also modified /etc/modprobe.conf so that it is identical to the file
that Mandriva 2006 produces when installed directly to a SATA drive
(but Mandriva 2006 has the 2.6.12.x kernel).

I can't mount my CDROM when running 2.6.14.x

I have googled this for several days. I have seen posts about passing
options to the kernel and including extra lines in modprobe.conf like:

libata atapi_enabled=1

Can't find the magic formula. Help would be appreciated.

Andy Liebman


2006-01-04 20:13:46

by Matan Peled

[permalink] [raw]
Subject: Re: Atapi CDROM, SATA OS drive, and 2.6.14+ kernel

[email protected] wrote:
> I have an image of a working 2.6.14 system that was installed on an IDE
> drive. I restored the image to a SATA drive, changed a few lines in
> /etc/fstab and /etc/lilo.conf so that they refer to /dev/sd* devices
> instead of /dev/hd* devices.

If all your drives are S/ATA, your CDROM should be the only /dev/hd? device.

if you try 'ls /dev/hd?', doesn't it show anything?

--
[Name ] :: [Matan I. Peled ]
[Location ] :: [Israel ]
[Public Key] :: [0xD6F42CA5 ]
[Keyserver ] :: [keyserver.kjsl.com]
encrypted/signed plain text preferred

2006-01-04 20:25:27

by andy liebman

[permalink] [raw]
Subject: Re: Atapi CDROM, SATA OS drive, and 2.6.14+ kernel

Says "no such file or directory" for ANY /dev/hd*. And Mandrake's
hardware detection doesn't show any other hard drive device other than
the OS drive.


[email protected] wrote:
> [email protected] wrote:
>> I have an image of a working 2.6.14 system that was installed on an
>> IDE drive. I restored the image to a SATA drive, changed a few lines
>> in /etc/fstab and /etc/lilo.conf so that they refer to /dev/sd*
>> devices instead of /dev/hd* devices.
>
> If all your drives are S/ATA, your CDROM should be the only /dev/hd?
> device.
>
> if you try 'ls /dev/hd?', doesn't it show anything?
>

2006-01-04 20:24:57

by Randy Dunlap

[permalink] [raw]
Subject: Re: Atapi CDROM, SATA OS drive, and 2.6.14+ kernel

On Wed, 4 Jan 2006 [email protected] wrote:

> Can somebody tell me what changed in the 2.6.14 kernel that doesn't
> allow me to access my CDROM drive when my OS drive is SATA?
>
> I have an image of a working 2.6.14 system that was installed on an IDE
> drive. I restored the image to a SATA drive, changed a few lines in
> /etc/fstab and /etc/lilo.conf so that they refer to /dev/sd* devices
> instead of /dev/hd* devices.
>
> I also modified /etc/modprobe.conf so that it is identical to the file
> that Mandriva 2006 produces when installed directly to a SATA drive
> (but Mandriva 2006 has the 2.6.12.x kernel).
>
> I can't mount my CDROM when running 2.6.14.x
>
> I have googled this for several days. I have seen posts about passing
> options to the kernel and including extra lines in modprobe.conf like:
>
> libata atapi_enabled=1

should be:
libata.atapi_enabled=1
if libata is built into the kernel image.

> Can't find the magic formula. Help would be appreciated.

--
~Randy

2006-01-04 21:43:19

by andy liebman

[permalink] [raw]
Subject: Re: Atapi CDROM, SATA OS drive, and 2.6.14+ kernel

[email protected] wrote:
> On Wed, 4 Jan 2006 [email protected] wrote:
>
>> Can somebody tell me what changed in the 2.6.14 kernel that doesn't
>> allow me to access my CDROM drive when my OS drive is SATA?
>>
>> I have an image of a working 2.6.14 system that was installed on an IDE
>> drive. I restored the image to a SATA drive, changed a few lines in
>> /etc/fstab and /etc/lilo.conf so that they refer to /dev/sd* devices
>> instead of /dev/hd* devices.
>>
>> I also modified /etc/modprobe.conf so that it is identical to the file
>> that Mandriva 2006 produces when installed directly to a SATA drive
>> (but Mandriva 2006 has the 2.6.12.x kernel).
>>
>> I can't mount my CDROM when running 2.6.14.x
>>
>> I have googled this for several days. I have seen posts about passing
>> options to the kernel and including extra lines in modprobe.conf like:
>>
>> libata atapi_enabled=1
>
> should be:
> libata.atapi_enabled=1
> if libata is built into the kernel image.

Well, I added that to my modprobe.conf file, remade the initrd. But then
on rebooting I got a kernel panic -- VFS not able to sync root filesystem.

Any other ideas?

>
>> Can't find the magic formula. Help would be appreciated.
>

2006-01-04 21:52:04

by Randy Dunlap

[permalink] [raw]
Subject: Re: Atapi CDROM, SATA OS drive, and 2.6.14+ kernel

On Wed, 4 Jan 2006, andy liebman wrote:

> [email protected] wrote:
> > On Wed, 4 Jan 2006 [email protected] wrote:
> >
> >> Can somebody tell me what changed in the 2.6.14 kernel that doesn't
> >> allow me to access my CDROM drive when my OS drive is SATA?
> >>
> >> I have an image of a working 2.6.14 system that was installed on an IDE
> >> drive. I restored the image to a SATA drive, changed a few lines in
> >> /etc/fstab and /etc/lilo.conf so that they refer to /dev/sd* devices
> >> instead of /dev/hd* devices.
> >>
> >> I also modified /etc/modprobe.conf so that it is identical to the file
> >> that Mandriva 2006 produces when installed directly to a SATA drive
> >> (but Mandriva 2006 has the 2.6.12.x kernel).
> >>
> >> I can't mount my CDROM when running 2.6.14.x
> >>
> >> I have googled this for several days. I have seen posts about passing
> >> options to the kernel and including extra lines in modprobe.conf like:
> >>
> >> libata atapi_enabled=1
> >
> > should be:
> > libata.atapi_enabled=1
> > if libata is built into the kernel image.
>
> Well, I added that to my modprobe.conf file, remade the initrd. But then
> on rebooting I got a kernel panic -- VFS not able to sync root filesystem.

or Unable to mount root filesystem ??

Are your SCSI & SATA drivers built as loadable modules or
built into the kernel image?
Why use an inited at all?

> Any other ideas?
>
> >
> >> Can't find the magic formula. Help would be appreciated.

--
~Randy