Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Aug 2004 13:28:13 -0400
From:      Anish Mistry <mistry.7@osu.edu>
To:        ticso@cicely.de
Cc:        freebsd-current@freebsd.org
Subject:   Re: USB 6-in-1 drive
Message-ID:  <200408231328.21115.mistry.7@osu.edu>
In-Reply-To: <20040823164137.GG6363@cicely12.cicely.de>
References:  <200408221606.52427.mistry.7@osu.edu> <200408231231.30004.mistry.7@osu.edu> <20040823164137.GG6363@cicely12.cicely.de>

next in thread | previous in thread | raw e-mail | index | archive | help
=2D----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Monday 23 August 2004 12:41 pm, Bernd Walter wrote:
> On Mon, Aug 23, 2004 at 12:31:22PM -0400, Anish Mistry wrote:
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> >
> > On Monday 23 August 2004 06:57 am, Bernd Walter wrote:
> > > On Sun, Aug 22, 2004 at 04:06:36PM -0400, Anish Mistry wrote:
> > > > -----BEGIN PGP SIGNED MESSAGE-----
> > > > Hash: SHA1
> > > >
> > > > Since I don't use my 6-in-1 drive very much (yesterday was the first
> > > > time in months) I noticed that some of old functionality seems to be
> > > > gone or broken. Before I was able to insert the drive with no disks,
> > > > then put in a disk, issue the camcontrol rescan all, and the disk
> > > > would be picked up and a new device node connected, or start with t=
he
> > > > disk in and remove is, rescan and the device node disappears.  As of
> > > > a recent CURRENT this doesn't seem to work and I have to remove the
> > > > drive  from the usb slot to get it to pickup the new device states.=
=20
> > > > Is this a known regression, or am I missing something?
> > >
> > > What is your problem?
> > > So far I just see "Medium not present" related errors, which are
> > > expected unless a media is physically present.
> >
> > I guess I should have been a bit more stright forward.
> > The problem is that "camcontrol rescan all" isn't picking up a disk when
> > I insert it into the drive and issues that command like it used to.
> > Before:
> > 1) Plugin in drive with no disks
> >  - Device nodes are created (/dev/da0-3)
> > 2) Insert Disk
> > 3) issue "camcontrol rescan all"
> >  - A new device node for that disk appears (ie. /dev/da3s1)
>
> That's not the purpose of camcontrol and never has been.
> camcontrol scans for drives and not media, as the drives are already
> there nothing changes.
>
> > Now:
> > 1) Plugin in drive with no disks
> >  - Device nodes are created (/dev/da0-3)
> > 2) Insert Disk
> > 3) issue "camcontrol rescan all"
> >  - Nothing, device node isn't created
>
> You need GEOM to rescan the medias layout:
> cat /dev/null > /dev/da0
> etc...
Ok, thanks this works.  So is this the official way to rescan the GEOM layo=
ut?
=2D --=20
Anish Mistry
=2D----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)

iD8DBQFBKikzxqA5ziudZT0RAqX6AJwPG5sB9YpbAS94ZRH3ktgTJgCXtgCeIe3q
X5pIcDMn0chhaz+vBJsvc7g=3D
=3DjNWh
=2D----END PGP SIGNATURE-----



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200408231328.21115.mistry.7>