Date: Tue, 18 May 2004 11:57:37 +0800 (MYT) From: Senandung Mendonan <mendonan@absolute-p.ath.cx> To: "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org> Subject: umass devices and devd [ was Re: mounting usb camera - no /dev/da* !!! ] Message-ID: <20040518114307.K930@ybpnyubfg> In-Reply-To: <1084849352.10631.54.camel@chaucer> References: <200405172050.45546.ben@spooty.net> <200405172340.42203.ben@spooty.net> <20040517154639.0efb33c1@vixen42.24-119-122-191.cpe.cableone.net> <1084849352.10631.54.camel@chaucer>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 17 May 2004, Mike Jeays wrote:
> I have a Canon Powershot A70, and the same problem. I bought a SanDisk
> card reader, and it works perfectly with a Compact Flash card that has
> been used in the A70. It can be mounted as
> mount -t msdos /dev/da0s1 /mnt
>
> You do need to put the card in the reader first, and then plug in the
> USB connector to make it work properly.
>
> Much the easiest solution, IMHO. And very much easier than using the
> software supplied with the camera on a Windows machine.
I thought for Windows XP most USB storage devices don't need additional
software to work. My digital camera for example (a nifty Sony Cyber-shot
DSC-F77A), you can connect and disconnect and they get mounted/dismounted
automatically as an external drive. Tried to do the same in FreeBSD via
devd, in /etc/dev.conf:-
attach 0 {
device-name "umass[0-9]+";
action "(sleep 2; mount /mnt/digicam)&";
};
detach 0 {
device-name "umass[0-9]+";
action "(sleep 2; umount -f /mnt/digicam)&";
};
with the line in /etc/fstab:-
/dev/da0s1 /mnt/digicam msdosfs rw,noauto 0 0
Attaching my usb digicam (mine is a nifty Sony Cyber-shot DSC-F77A) works
great, but detaching it has random effects (ranging from works with system
intact to instant kernel panic). Resorted to unmount first before
detaching (when I remember to do so ;-) ). Any similar experience, and
should I send-pr?
Thanks.
--mendonan
"Yang mimpikan secangkir kopi panas dengan selimut.."
(Dreaming of a cup of hot coffee, and a blanket..")
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040518114307.K930>
