Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Nov 2005 17:57:12 +0100
From:      Roland Smith <rsmith@xs4all.nl>
To:        Brian Candler <B.Candler@pobox.com>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: CF card and /dev filesystem entries
Message-ID:  <20051116165712.GB33710@slackbox.xs4all.nl>
In-Reply-To: <20051116101200.GA2823@uk.tiscali.com>
References:  <20051116101200.GA2823@uk.tiscali.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--/WwmFnJnmDyWGHa4
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Wed, Nov 16, 2005 at 10:12:00AM +0000, Brian Candler wrote:
> Running FreeBSD 6.0 here.
>=20
> I have a USB-attached floppy/CF/SD combo reader. On powerup it is detected
> and I get /dev/da0 as the CF slot:
>=20
> da0 at umass-sim0 bus 0 target 0 lun 0
> da0: <OEI-USB CompactFlash 2.0> Removable Direct Access SCSI-0 device=20
> da0: 1.000MB/s transfers
> da0: Attempt to query device size failed: NOT READY, Medium not present
> da1 at umass-sim0 bus 0 target 0 lun 1
> da1: <OEI-USB SM/MS/SD 2.0> Removable Direct Access SCSI-0 device=20
> da1: 1.000MB/s transfers
> da1: Attempt to query device size failed: NOT READY, Medium not present
>=20
> However, when I insert a CF card with normal partioning I need /dev/da0s1,
> and this is not present in the /dev filesystem because the partition table
> has not been read.
<snip>
> The only way I can see to *force* the superblock to be read is to attempt=
 to
> mount the whole device as if it were unpartitioned. This is sufficient to
> cause the /dev/da0s1 entry to appear in the /dev filesystem.
<snip>
> At this point, everything works as expected.
>=20
> My question is: is there an easier or more direct way to cause the partit=
ion
> table of the CF card to be read and the /dev filesystem to update?

Try 'camcontrol rescan all' (as root).

Roland
--=20
R.F.Smith (http://www.xs4all.nl/~rsmith/) Please send e-mail as plain text.
public key: http://www.xs4all.nl/~rsmith/pubkey.txt

--/WwmFnJnmDyWGHa4
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (FreeBSD)

iD8DBQFDe2ToEnfvsMMhpyURAsiaAJ4qbiwLpWFI2BJtm7mylpxHD2eKAwCfSeZz
OmE9YqdlQ4gDi1MxfVXZCaM=
=HIqv
-----END PGP SIGNATURE-----

--/WwmFnJnmDyWGHa4--



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