Re: GEOM + mount_msdosfs usb flash stick

2008-08-04 Thread Roland Smith
On Mon, Aug 04, 2008 at 02:12:09PM +0800, joeb wrote:
> On 7.0 release of FBSD trying to mount a usb flash memory stick. The stick
> has a msdos file system on it and has been loaded with files using windows
> xp. When I plug the stick into my FBSD 7.0 box I get Geom console msg
> 'GEOM_LABEL:Label for provider Da0s1 is msdosfs_flashdrive'.
> Does this mean the flash stick is mounted and the mount point is
> msdosfs_flashdrive'?

No. It means that GEOM_LABEL has created a named device in
/dev/msdosfs/flashdrive. 

This is easier to use then e.g. /dev/da0s1. Consider the case where you
have two USB mass storage devices. One will be da0, the other da1, da0
being the one that was plugged in first. The label 'flashdrive' on the
other hand won't change unless you change it.

>  When is issue this command,  mount_msdosfs /dev/da0s1 /mnt  I get this
> console msg  ' GEOM get label removed'.  Using the /mnt mount point every
> thing works fine.

If you use 'mount_msdosfs -m 644 -M 755 /dev/msdosfs/flashdrive /mnt'
you can keep using this command (e.g. put it in a script) as long as you
don't change the label.

Roland
-- 
R.F.Smith   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)


pgpZhIEZB9D0S.pgp
Description: PGP signature


Re: GEOM + mount_msdosfs usb flash stick

2008-08-03 Thread Polytropon
On Mon, 4 Aug 2008 14:12:09 +0800, "joeb" <[EMAIL PROTECTED]> wrote:
> When I plug the stick into my FBSD 7.0 box I get Geom console msg
> 'GEOM_LABEL:Label for provider Da0s1 is msdosfs_flashdrive'.
> Does this mean the flash stick is mounted and the mount point is
> msdosfs_flashdrive'?

I don't think so, but you can check it with

% mount -v

if anything has been mounted.

> When is issue this command,  mount_msdosfs /dev/da0s1 /mnt  I get this
> console msg  ' GEOM get label removed'.  Using the /mnt mount point every
> thing works fine.

Manual mount seems to have higher priority. Refer to /etc/fstab
to define "standard" mount points if you like, for example:

/dev/fd0/media/floppy   msdosfs rw,noauto   0   0
/dev/acd0   /media/cdromcd9660  ro,noauto   0   0
/dev/acd0   /media/dvd  cd9660  ro,noauto   0   0
/dev/acd1   /media/writer   cd9660  ro,noauto   0   0
/dev/cd0/media/pcd  cd9660  ro,noauto   0   0
/dev/da0/media/pd   ufs rw,noauto,noatime 0 0
/dev/da1/media/jaz  ufs rw,noauto   0   0
/dev/da2s1  /media/stickmsdosfs rw,noauto,noatime 0 0
/dev/da2/media/cam  msdosfs rw,noauto,noatime 0 0
/dev/da3s1  /media/card msdosfs rw,noauto,noatime 0 0

> What is GEOM doing form me in 7.0?

As far as I do understand, GEOM provides these messages to allow
some kind of auto-mounting service (usually coming with KDE or
Gnome) to take some "title" of the media (data carrier identifier)
to create the mount point; I saw something similar with PC-BSD
when CDs, DVDs or USB sticks had been inserted, the mountpoint
was something like /media/The Title of The Disc (including the
ugly whitespaces) or /media/USB0001. Or, as your example seems
to show, the label is a combination of the type of the media and
the filesystem it uses...


If you don't run any of these automounters, the messages don't
seem to hava any effect. But I'm not sure, I've never seen them
on my 7.x system...


Maybe "man geom" will tell you more.


-- 
Polytropon
>From Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"