2002-11-18 12:39:33

by L P

[permalink] [raw]
Subject: Problems Hot-Swapping IDE ATA drives

Hello all,
Please, help me with the following: I have the PCMCIA adapter which converts the ATA compatible PCMCIA cassettes into "True IDE hard disk".
My RedHat 7.3 linux works fine, when it was booted with the cassette inserted. I can mount/read/write/unmount the device without any error.
Next, I unmount the device and extract the cassette - usually (not always)I receive the "spurious interrupt" message. Then, when I insert the cassette and try to mount it back, I receive the following errors:
---------
[root@leonp] mount /dev/hdc1 /mnt/pcmcia
end_request: I/O error, dev 16:00 (hdc), sector 2
end_request: I/O error, dev 16:00 (hdc), sector 4
end_request: I/O error, dev 16:00 (hdc), sector 6
end_request: I/O error, dev 16:00 (hdc), sector 0
end_request: I/O error, dev 16:00 (hdc), sector 2
end_request: I/O error, dev 16:00 (hdc), sector 4
end_request: I/O error, dev 16:00 (hdc), sector 6
unable to read partition table
mount: error while guessing file system type
------------
These messages are repeated several times.

I also tried to issue hdparm -U (or -R) 0 /dev/hdc with exactly the same result.

Any help will be highly appreciated.
Please, post possible answers to my private address, as I am not subscribed to the list.
--
__________________________________________________________
Sign-up for your own FREE Personalized E-mail at Mail.com
http://www.mail.com/?sr=signup


2002-11-18 13:05:13

by Alan

[permalink] [raw]
Subject: Re: Problems Hot-Swapping IDE ATA drives

PCMCIA IDE works for all the devices I have. Really I'd need to see the
dmesg for the setup from boot through the mounts and fails

2002-11-18 13:37:00

by Daniela Engert

[permalink] [raw]
Subject: Re: Problems Hot-Swapping IDE ATA drives

On 18 Nov 2002 13:39:39 +0000, Alan Cox wrote:

>>Please, help me with the following: I have the PCMCIA adapter which
>>converts the ATA compatible PCMCIA cassettes into "True IDE hard disk".
>>My RedHat 7.3 linux works fine, when it was booted with the cassette
>>inserted. I can mount/read/write/unmount the device without any error.
>>Next, I unmount the device and extract the cassette - usually (not
>>always)I receive the "spurious interrupt" message. Then, when I insert
>>the cassette and try to mount it back, I receive the following errors:

>PCMCIA IDE works for all the devices I have. Really I'd need to see the
>dmesg for the setup from boot through the mounts and fails

There is a problem with PCMCIA<->ATA adapters and "True IDE mode":

A CompactFlash unit enters "True IDE mode" when the /OE pin is held low
at device power on. This is fine when your system is powered on with
the CF card inserted. But if you insert a CF card into an already
powered on system, the /OE pin is not connected to the socket and thus
held high by an device-internal pull up at device power on. This is
because the power pins are longer than the other pins and connected
before the others! So the CF card enters "memory mapped mode" instead
of "True ATA mode" and is no longer accessible from the ATA host.

Ciao,
Dani

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Daniela Engert, systems engineer at MEDAV GmbH
Gr?fenberger Str. 32-34, 91080 Uttenreuth, Germany
Phone ++49-9131-583-348, Fax ++49-9131-583-11


2002-11-21 10:36:35

by L P

[permalink] [raw]
Subject: Re: Problems Hot-Swapping IDE ATA drives

Dear Daniela,
> There is a problem with PCMCIA<->ATA adapters and "True IDE mode":
>
> A CompactFlash unit enters "True IDE mode" when the /OE pin is held low
> at device power on. This is fine when your system is powered on with
> the CF card inserted. But if you insert a CF card into an already
> powered on system, the /OE pin is not connected to the socket and thus
> held high by an device-internal pull up at device power on. This is
> because the power pins are longer than the other pins and connected
> before the others! So the CF card enters "memory mapped mode" instead
> of "True ATA mode" and is no longer accessible from the ATA host.

Many many thanks to you for the hint - I added the On/Off switch on the adapter power and everything now works fine! I insert cassette, cycle the power and mount the drive - it works!
Once again - many thanks.

--
__________________________________________________________
Sign-up for your own FREE Personalized E-mail at Mail.com
http://www.mail.com/?sr=signup