Re: Automatic mounting of removable meadia
Christopher T. Johnson wrote: Heinrich Rebehn wrote: Yes. Although it does not provide automatic mounting upon insertion of the disk (like windows does), it would be a solution. Unfortunately "man amd" does not say anything about the format of the map for a local device and i was unable to find anything in /usr/share/examples. Can anyone give me an example? This article provides a tutorial for adding this functionality using amd. It may be a little out-of-date, but it has worked for me in the past. http://www.daemonnews.org/200202/automounting.html This solution mounts the media on access, and unmounts it on quiescence. Not exactly "like windows does", but still useful. Hope this helps. ~brian I use amd for doing just this. it works for most cases. My map file looks like cdrom type:=cdfs;dev:=/dev/acd0c;addopts:=ro floppy type:=pcfs;dev:=/dev/fd0 zip type:=ufs;dev:=/dev/da0s1a pczip type:=pcfs;dev:=/dev/da0s4 pczipF type:=pcfs;dev:=/dev/da0 flash type:=pcfs;dev:=/dev/da0s1 (minus the NFS filesystems) This works for everything but the type:=ufs. When amd mounts a unix filesystem it will never unmount it. I had to patch amd to unmount ufs. My amd.conf is the default. The parameters for amd are: /usr/sbin/amd -p -a /.amd_mnt -l syslog /u /etc/amd.u Best, -Chris Thank you very much, it works perfect. I also added "-c 5 -w 10" to have the disk quickly unmounted when it is no longer used. "man (8) amd", as other posters suggested does not say anything about the format of the maps. Also, thanks for the link to the tutorial in deamonnews, but the solution provided above looks simpler to me Heinrich ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Automatic mounting of removable meadia
> Heinrich Rebehn wrote: > > > > > Yes. Although it does not provide automatic mounting upon insertion of > > the disk (like windows does), it would be a solution. > > Unfortunately "man amd" does not say anything about the format of the > > map for a local device and i was unable to find anything in > > /usr/share/examples. Can anyone give me an example? > > This article provides a tutorial for adding this functionality using amd. > It may be a little out-of-date, but it has worked for me in the past. > > http://www.daemonnews.org/200202/automounting.html > > This solution mounts the media on access, and unmounts it on quiescence. > Not exactly "like windows does", but still useful. > > Hope this helps. > > ~brian I use amd for doing just this. it works for most cases. My map file looks like cdrom type:=cdfs;dev:=/dev/acd0c;addopts:=ro floppy type:=pcfs;dev:=/dev/fd0 zip type:=ufs;dev:=/dev/da0s1a pczip type:=pcfs;dev:=/dev/da0s4 pczipF type:=pcfs;dev:=/dev/da0 flash type:=pcfs;dev:=/dev/da0s1 (minus the NFS filesystems) This works for everything but the type:=ufs. When amd mounts a unix filesystem it will never unmount it. I had to patch amd to unmount ufs. My amd.conf is the default. The parameters for amd are: /usr/sbin/amd -p -a /.amd_mnt -l syslog /u /etc/amd.u Best, -Chris ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Automatic mounting of removable meadia
Heinrich Rebehn wrote: Yes. Although it does not provide automatic mounting upon insertion of the disk (like windows does), it would be a solution. Unfortunately "man amd" does not say anything about the format of the map for a local device and i was unable to find anything in /usr/share/examples. Can anyone give me an example? This article provides a tutorial for adding this functionality using amd. It may be a little out-of-date, but it has worked for me in the past. http://www.daemonnews.org/200202/automounting.html This solution mounts the media on access, and unmounts it on quiescence. Not exactly "like windows does", but still useful. Hope this helps. ~brian ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Automatic mounting of removable meadia
Lowell Gilbert wrote: Heinrich Rebehn <[EMAIL PROTECTED]> writes: Is it possible to automatically mount media when they are inserted? From the GNOME 2.4 documentation (Nautilus, 1.8.1:To mount Media): " If your system is not configured to mount the device automatically, you must mount the device manually. Right-click on the desktop, then choose Disks->device-name. For example, to mount a floppy diskette, choose Disks->Floppy. An object that represents the media is added to the desktop. " So, how can i configure FreeBSD to mount the device automatically? amd(8) Yes. Although it does not provide automatic mounting upon insertion of the disk (like windows does), it would be a solution. Unfortunately "man amd" does not say anything about the format of the map for a local device and i was unable to find anything in /usr/share/examples. Can anyone give me an example? Unfortunately, the GNOME way to manually mount media via an entry in /etc/fstab does not work under FreeBSD since the mountpoint must be owned by the user, which is difficult to configure for a multiuser system. No, it's not. You can either have each user have a mountpoint in their own home directory, or you can use a common mountpoint which gets forced to the ownership of the user in the login procedure (typically via fbtab(5) or the XFree86 login, e.g. xdm's GiveConsole script). You have to be careful with security, but it's not very different from letting ordinary users mount media in the first place. Thanks for these hints. Heinrich ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Automatic mounting of removable meadia
Heinrich Rebehn <[EMAIL PROTECTED]> writes: > Is it possible to automatically mount media when they are inserted? > From the GNOME 2.4 documentation (Nautilus, 1.8.1:To mount Media): > > " > If your system is not configured to mount the device automatically, > you must mount the device manually. Right-click on the desktop, then > choose Disks->device-name. For example, to mount a floppy diskette, > choose Disks->Floppy. An object that represents the media is added to > the desktop. > " > > So, how can i configure FreeBSD to mount the device automatically? amd(8) > Unfortunately, the GNOME way to manually mount media via an entry in > /etc/fstab does not work under FreeBSD since the mountpoint must be > owned by the user, which is difficult to configure for a multiuser > system. No, it's not. You can either have each user have a mountpoint in their own home directory, or you can use a common mountpoint which gets forced to the ownership of the user in the login procedure (typically via fbtab(5) or the XFree86 login, e.g. xdm's GiveConsole script). You have to be careful with security, but it's not very different from letting ordinary users mount media in the first place. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Automatic mounting of removable meadia
On Tue, 21 Oct 2003 15:19:08 +0200 Heinrich Rebehn <[EMAIL PROTECTED]> wrote: > Hi list, > > Is it possible to automatically mount media when they are inserted? > From the GNOME 2.4 documentation (Nautilus, 1.8.1:To mount Media): > > " > If your system is not configured to mount the device automatically, > you must mount the device manually. Right-click on the desktop, then > choose Disks->device-name. For example, to mount a floppy diskette, > choose Disks->Floppy. An object that represents the media is added to > the desktop." > > So, how can i configure FreeBSD to mount the device automatically? > > Unfortunately, the GNOME way to manually mount media via an entry in > /etc/fstab does not work under FreeBSD since the mountpoint must be > owned by the user, which is difficult to configure for a multiuser > system. > > Any solution? > > Heinrich > -- man (8) amd ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Automatic mounting of removable meadia
Hi list, Is it possible to automatically mount media when they are inserted? From the GNOME 2.4 documentation (Nautilus, 1.8.1:To mount Media): " If your system is not configured to mount the device automatically, you must mount the device manually. Right-click on the desktop, then choose Disks->device-name. For example, to mount a floppy diskette, choose Disks->Floppy. An object that represents the media is added to the desktop. " So, how can i configure FreeBSD to mount the device automatically? Unfortunately, the GNOME way to manually mount media via an entry in /etc/fstab does not work under FreeBSD since the mountpoint must be owned by the user, which is difficult to configure for a multiuser system. Any solution? Heinrich -- Heinrich Rebehn University of Bremen Physics / Electrical and Electronics Engineering - Department of Telecommunications - Phone : +49/421/218-4664 Fax :-3341 ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"