Subject: Re: [New to NetBSD] USB mass-storage hotplug?
To: None <netbsd-users@netbsd.org>
From: Malte Dehling <mdehling@math.ruhr-uni-bochum.de>
List: netbsd-users
Date: 06/24/2005 12:40:30
--xgyAXRrhYN0wYx8y
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Thu, Jun 23, 2005 at 03:00:55PM +0000, Sylvain Briole wrote:
> Hi all,
>=20
> I am a new user of NetBSD, with a Debian Linux background.
> I would like to know how to use USB mass-storage "hotplug" in NetBSD.
>=20
> In Debian Linux Woody I was doing like this to avoid any problem:
> - /etc/init.d/hotplug start
> - plug in USB hard disk
> - mount /dev/usb_drive /mount_point
> - working with the drive
> - umount /mount_point
> - /etc/init.d/hotplug stop
> - plug out USB hard disk
>=20
> I have read USB manpages (usb(4), umass(4)) on NetBSD 2.0.2, but I did no=
t find
> out how to use "hotplug". Do I have to do anything before/after :
> - plug-in?
> - plug-out?
> To avoid any kernel panic or something like this?
>=20

=46rom my experience with my (usb-connected) digicam, which shows up as a u=
sb
mass storage device with scsi emulation, it worked like this:
- plug in
- mount
- work
- umount
- unplug

I never noticed any problems and there was no need for any hotplug
scripts... ofcourse, if you want you device to be mounted automagically,
you'll need to use amd or something.

--=20
Malte Dehling

Mail:		mdehling [at] math.ruhr-uni-bochum.de
Website:	http://mdehling.ath.cx/
PGP:		2586 A3BF B438 E68E 2B85  C4EA C5A7 AD96 C865 03D2

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

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (SunOS)

iD8DBQFCu+MdxaetlshlA9IRAu6CAKCLFTOJgVfwAyiuhf4ft6pbU8kogQCfQ8ET
e+7EwnF7LhrwJsnI2yzEm4Y=
=hk/P
-----END PGP SIGNATURE-----

--xgyAXRrhYN0wYx8y--