From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Tue, 7 Nov 2000 06:33:53 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Tue, 7 Nov 2000 06:33:44 -0500 Received: from cmailg5.svr.pol.co.uk ([195.92.195.175]:8521 "EHLO cmailg5.svr.pol.co.uk") by vger.kernel.org with ESMTP id ; Tue, 7 Nov 2000 06:33:36 -0500 Message-ID: <000001c048ae$6132c340$6904883e@default> From: "Joe Woodward" To: Subject: removable EIDE disks Date: Tue, 7 Nov 2000 11:12:00 -0000 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0005_01C048AB.8CFEF320" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2919.6600 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org This is a multi-part message in MIME format. ------=_NextPart_000_0005_01C048AB.8CFEF320 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable 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 ------=_NextPart_000_0005_01C048AB.8CFEF320 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
I am trying to use removable EIDE = hard disks on=20 a Red Hat Linux 6.1 machine, for backup / walknet purposes.
 
Issuing a BLKRRPART ioctl call = immediately after=20 changing the disk works, but only if the new disk is no larger than the = disk=20 present at boot time (smaller and equal capacity disks work = OK).
 
How do I get Linux to recognise that = the media=20 in /dev/hdc has changed?
 
Bill Nottingham suggested that I ask = you, as he=20 is unsure if this is a bug or if there is a technique that I am=20 missing.
 
 
Thanks
 
Richard Stanton
 
rich@twasystems.fsnet.co.uk
 
------=_NextPart_000_0005_01C048AB.8CFEF320-- - 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/ From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Tue, 7 Nov 2000 07:29:07 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Tue, 7 Nov 2000 07:28:57 -0500 Received: from lightning.swansea.linux.org.uk ([194.168.151.1]:27512 "EHLO the-village.bc.nu") by vger.kernel.org with ESMTP id ; Tue, 7 Nov 2000 07:28:46 -0500 Subject: Re: removable EIDE disks To: woodey@twasystems.fsnet.co.uk (Joe Woodward) Date: Tue, 7 Nov 2000 12:29:49 +0000 (GMT) Cc: linux-kernel@vger.kernel.org In-Reply-To: <000001c048ae$6132c340$6904883e@default> from "Joe Woodward" at Nov 07, 2000 11:12:00 AM X-Mailer: ELM [version 2.5 PL1] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: From: Alan Cox Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org > 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/ From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Tue, 7 Nov 2000 07:37:48 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Tue, 7 Nov 2000 07:37:37 -0500 Received: from hera.cwi.nl ([192.16.191.1]:45468 "EHLO hera.cwi.nl") by vger.kernel.org with ESMTP id ; Tue, 7 Nov 2000 07:37:20 -0500 Date: Tue, 7 Nov 2000 13:37:09 +0100 From: Andries Brouwer To: Joe Woodward Cc: linux-kernel@vger.kernel.org Subject: Re: removable EIDE disks Message-ID: <20001107133709.A16089@veritas.com> In-Reply-To: <000001c048ae$6132c340$6904883e@default> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <000001c048ae$6132c340$6904883e@default>; from woodey@twasystems.fsnet.co.uk on Tue, Nov 07, 2000 at 11:12:00AM -0000 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org 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/ From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Tue, 7 Nov 2000 08:07:31 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Tue, 7 Nov 2000 08:07:21 -0500 Received: from kendy.up.ac.za ([137.215.101.101]:52749 "EHLO kendy.up.ac.za") by vger.kernel.org with ESMTP id ; Tue, 7 Nov 2000 08:07:03 -0500 Message-ID: <3A07FC3D.13663547@suntiger.ee.up.ac.za> Date: Tue, 07 Nov 2000 14:57:33 +0200 From: Justin Schoeman Reply-To: justin@suntiger.ee.up.ac.za Organization: University of Pretoria X-Mailer: Mozilla 4.72 [en] (X11; U; Linux 2.2.14 i686) X-Accept-Language: en MIME-Version: 1.0 To: Joe Woodward , "linux-kernel@vger.kernel.org" Subject: Re: removable EIDE disks In-Reply-To: <000001c048ae$6132c340$6904883e@default> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: 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/