Skip to Content.
Sympa Menu

sm-discuss - Re: [SM-Discuss] automount help

sm-discuss AT lists.ibiblio.org

Subject: Public SourceMage Discussion List

List archive

Chronological Thread  
  • From: Andrew "ruskie" Levstik <ruskie AT mages.ath.cx>
  • To: sm-discuss AT lists.ibiblio.org
  • Subject: Re: [SM-Discuss] automount help
  • Date: Tue, 25 May 2004 09:34:29 +0200

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Mon, 24 May 2004 23:15:09 -0500
Derek Moyes <sorcerer AT flamesnyper.com> wrote:

> OK, so I got this crazy idea to try out automount... I have it all setup,
> but
> it's acting kinda weird.
>
> Here are my files:
> ####
> # auto.master file
> /var/autofs/removable /etc/auto.removable --timeout 6
> /mnt /etc/auto.mnt --timeout 7200
>
> ####
> # auto.mnt file
> raid -fstype=nfs,rsize=8192,wsize=8192 10.252.1.2:/mnt/raid
>
> ####
> # auto.removable
> cdrom -fstype=auto,ro,nosuid,nodev :/dev/cdroms/cdrom0
> floppy -fstype=auto,sync,users :/dev/fd0
> ipod -fstype=vfat,users \
> :/dev/scsi/host0/bus0/target0/lun0/part2
> usbkey -fstype=vfat,sync,uid=500,gid=300 \
> :/dev/scsi/host3/bus0/target0/lun0/part1
>
> # (those last 2 lines aren't actually separated, I did it just to make
> # this email easier to read)
>
> #### end of files
>
> Alright, so what's happening is this... when I mount one of the "removable
> devices" in a console window it seems to work fine... I can 'cd' into the
> directory, etc, etc.
>
> But in gnome, if I have a window open... it closes after the "--timeout"
> period.
> How can I get automount to recognize that I have the directory in use when I
> just have a gnome window open? The "raid" device on the remote computer
> works
> fine, probably because the timeout is so long. I want the timeouts short so
> that I can just remove the cd/floppy/usbkey/ipod after waiting a few
> seconds.
> If I sit at a bash prompt in the named folder "/var/autofs/removable/usbkey"
> then the gnome window will stay open.
>
> I can't seem to find anything about this with google.
>
> For what it's worth, I'm using:
> kernel 2.4.24
> autofs 4.0.0pre10 (latest)
> gnome 2.6
>
> If I can get this working, I'd be happy to write up a mini howto... any help
> would be appreciated.
>
> -- Derek, sorcerer AT flamesnyper.com
> _______________________________________________
> SM-Discuss mailing list
> SM-Discuss AT lists.ibiblio.org
> http://lists.ibiblio.org/mailman/listinfo/sm-discuss
>
IIRC gnome uses the gnome-vfs it's own virtual fs that handles all the calls
so I don't know.
I have autofs setup properly and it works for me anywhere but I am not using
gnome

my configs
auto.master
/mnt /etc/auto.removable --timeout 10
auto.removable
cdrom -fstype=auto,ro,user,utf8 :/dev/hdd
floppy -fstype=auto,rw,sync,umask=0000,utf8 :/dev/fd0
usb -fstype=auto,rw,user,utf8 :/dev/sda1

- -ruskie
- --
For all the knowledge...
I will prevail...
If I fail nothing is left...
All is lost...
Never to be seen again...
Nevermore...

- --

Key ID = 32FE2034
Key fingerprint = EF36 041B E2A5 4E6F 7B3E 6B45 C0F2 E234 32FE 2034

- --

- -----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GAT d? s+:+++ a? C++++>$ UL+++ P L+++ E---- W+ N+ o? K? !w O+ !M
V PS+ PE Y+ PGP++ t+++ 5+++ !X R++ tv++ b+++ DI? !D G e h! !r !y+
- ------END GEEK CODE BLOCK------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFAsvcFwPLiNDL+IDQRAhdEAJkBPE9LDlXbTThhxdN6SMDMNZ+nygCeIJih
HrnHxEPjya7fx5+iS5svDA8=
=RY/l
-----END PGP SIGNATURE-----




Archive powered by MHonArc 2.6.24.

Top of Page