Subject: Re: [New to NetBSD] USB mass-storage hotplug?
To: Sylvain Briole <sbriole.mls@free.fr>
From: Courtney R. Spencer <cspencer@mindspring.com>
List: netbsd-users
Date: 06/24/2005 10:08:01
On Thu Jun 23, 2005 at 03:00:55PM +0000, Sylvain Briole wrote:
> Hi all,
>
> 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.
>
> 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
>
> I have read USB manpages (usb(4), umass(4)) on NetBSD 2.0.2, but I did not 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?
>
> I thank you in advance,
To answer your question, since you do use mount/umount, there
is no other script needed and nothing else you have to do in netbsd.
> - plug in USB hard disk
> - mount /dev/usb_drive /mount_point
> - working with the drive
> - umount /mount_point
> - plug out USB hard disk
--
Courtney R. Spencer