Re: Auto mount/unmount USB hard drive

2006-05-09 Thread Joerg Pernfuss
On Tue, 09 May 2006 09:12:12 -0400
Robert Fitzpatrick <[EMAIL PROTECTED]> wrote:

> On Tue, 2006-05-09 at 02:00 +0200, Joerg Pernfuss wrote:
> > If the msdosfs has a label, you could load geom_label.ko and use sth
> > like
> > 
> > /dev/msdosfs/usbdisk/mnt/usbmsdos
> > rw,noauto   0   0
> > 
> 
> Sorry for the direct message Joerg, I am resending this to the list.
np.

> Thanks, but how do I label the msdosfs? I assume something similar to
> tunefs for UFS, but I don't see a label option for msdosfs.

In newfs_msdos(8) it is the -I volume id option.

Maybe there is some tool available via ports that can change the volid
of an already existing msdosfs, the FreeBSD base doesn't contain one
as far as I know.

Jörg
-- 
| /"\   ASCII ribbon   |  GnuPG Key ID | e86d b753 3deb e749 6c3a |
| \ / campaign against |0xbbcaad24 | 5706 1f7d 6cfd bbca ad24 |
|  XHTML in email  |.the next sentence is true.   |
| / \ and news | .the previous sentence was a lie.|


signature.asc
Description: PGP signature


Re: Auto mount/unmount USB hard drive

2006-05-09 Thread Robert Fitzpatrick
On Tue, 2006-05-09 at 02:00 +0200, Joerg Pernfuss wrote:
> On Mon, 08 May 2006 19:40:44 -0400
> Robert Fitzpatrick <[EMAIL PROTECTED]> 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/usbmsdos   rw,noauto   0   0
> 
> If the msdosfs has a label, you could load geom_label.ko and use sth
> like
> 
> /dev/msdosfs/usbdisk  /mnt/usbmsdos   rw,noauto   0   0
> 

Sorry for the direct message Joerg, I am resending this to the list.
Thanks, but how do I label the msdosfs? I assume something similar to
tunefs for UFS, but I don't see a label option for msdosfs.

-- 
Robert

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Auto mount/unmount USB hard drive

2006-05-08 Thread Joerg Pernfuss
On Mon, 08 May 2006 19:40:44 -0400
Robert Fitzpatrick <[EMAIL PROTECTED]> 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/usbmsdos   rw,noauto   0   0

If the msdosfs has a label, you could load geom_label.ko and use sth
like

/dev/msdosfs/usbdisk/mnt/usbmsdos   rw,noauto   0   0

-- 
| /"\   ASCII ribbon   |  GnuPG Key ID | e86d b753 3deb e749 6c3a |
| \ / campaign against |0xbbcaad24 | 5706 1f7d 6cfd bbca ad24 |
|  XHTML in email  |.the next sentence is true.   |
| / \ and news | .the previous sentence was a lie.|


signature.asc
Description: PGP signature