Re: removable EIDE disks

From: Justin Schoeman (justin@suntiger.ee.up.ac.za)
Date: Tue Nov 07 2000 - 07:57:33 EST


> Joe Woodward wrote:
>
> I am trying to use removable EIDE hard disks on a Red Hat Linux 6.1
> machine, for backup / walknet purposes.
>
> Issuing a BLKRRPART ioctl call immediately after changing the disk
> works, but only if the new disk is no larger than the disk present at
> boot time (smaller and equal capacity disks work OK).
>
> How do I get Linux to recognise that the media in /dev/hdc has
> changed?
>
> Bill Nottingham suggested that I ask you, as he is unsure if this is a
> bug or if there is a technique that I am missing.
>
>
> Thanks
>
> Richard Stanton
>
> rich@twasystems.fsnet.co.uk
>

Try using the HDIO_SCAN_HWIF ioctl instead. This is what I have been
using, and it work(ed) just fine. (It seems to result in hard locks on
the newer 2.2.x, where x>14, kernels though).

-justin
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue Nov 07 2000 - 21:00:22 EST