Auto mount/unmount USB hard drive
Joerg Pernfuss
elessar at bsdforen.de
Tue May 9 00:01:06 UTC 2006
On Mon, 08 May 2006 19:40:44 -0400
Robert Fitzpatrick <lists at webtent.net> wrote:
> I have a USB hard drive mounting and working fine. I have the
> following entry in /etc/fstab that allows it to work on boot. The
> device loads as /dev/da4. But if I disconnect without unmounting the
> device, it detaches, but when plugged back in, it receives a new
> device as /dev/da5, which is not what is in fstab of course, yada,
> yada, yada. Is there a way I can get it to automatically
> mount/unmount the drive while working under the same device id as I
> unplug and plug back in?
>
> /dev/da4s1 /mnt/usb msdos rw,noauto 0 0
If the msdosfs has a label, you could load geom_label.ko and use sth
like
/dev/msdosfs/usbdisk /mnt/usb msdos rw,noauto 0 0
--
| /"\ ASCII ribbon | GnuPG Key ID | e86d b753 3deb e749 6c3a |
| \ / campaign against | 0xbbcaad24 | 5706 1f7d 6cfd bbca ad24 |
| X HTML in email | .the next sentence is true. |
| / \ and news | .the previous sentence was a lie. |
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20060509/a0470116/signature.pgp
More information about the freebsd-questions
mailing list