All of lore.kernel.org
 help / color / mirror / Atom feed
* removable EIDE disks
@ 2000-11-07 11:12 Joe Woodward
  2000-11-07 12:29 ` Alan Cox
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Joe Woodward @ 2000-11-07 11:12 UTC (permalink / raw)
  To: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 566 bytes --]

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


[-- Attachment #2: Type: text/html, Size: 1349 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: removable EIDE disks
  2000-11-07 11:12 removable EIDE disks Joe Woodward
@ 2000-11-07 12:29 ` Alan Cox
  2000-11-07 12:37 ` Andries Brouwer
  2000-11-07 12:57 ` Justin Schoeman
  2 siblings, 0 replies; 4+ messages in thread
From: Alan Cox @ 2000-11-07 12:29 UTC (permalink / raw)
  To: Joe Woodward; +Cc: linux-kernel

> 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?

I imagine your disks are not reporting themselves as 'removable' ? If they
correctly report removable then umount/mount would do the necessary I think.
It certainly does for magneto-optical

-
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/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: removable EIDE disks
  2000-11-07 11:12 removable EIDE disks Joe Woodward
  2000-11-07 12:29 ` Alan Cox
@ 2000-11-07 12:37 ` Andries Brouwer
  2000-11-07 12:57 ` Justin Schoeman
  2 siblings, 0 replies; 4+ messages in thread
From: Andries Brouwer @ 2000-11-07 12:37 UTC (permalink / raw)
  To: Joe Woodward; +Cc: linux-kernel

On Tue, Nov 07, 2000 at 11:12:00AM -0000, Joe Woodward wrote:

> I am trying to use removable EIDE hard disks
> 
> Issuing a BLKRRPART ioctl call immediately after changing the disk works

It should not be necessary to use BLKRRPART.
Does the disk advertise itself as removable?

% dmesg | grep remov
Detected scsi removable disk sda at scsi1, channel 0, id 6, lun 0

Andries
-
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/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: removable EIDE disks
  2000-11-07 11:12 removable EIDE disks Joe Woodward
  2000-11-07 12:29 ` Alan Cox
  2000-11-07 12:37 ` Andries Brouwer
@ 2000-11-07 12:57 ` Justin Schoeman
  2 siblings, 0 replies; 4+ messages in thread
From: Justin Schoeman @ 2000-11-07 12:57 UTC (permalink / raw)
  To: Joe Woodward, linux-kernel@vger.kernel.org

> 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/

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2000-11-07 13:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-11-07 11:12 removable EIDE disks Joe Woodward
2000-11-07 12:29 ` Alan Cox
2000-11-07 12:37 ` Andries Brouwer
2000-11-07 12:57 ` Justin Schoeman

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.