You are not logged in.

#1 2003-11-15 16:09:20

zen_guerrilla
Member
From: Greece
Registered: 2002-12-22
Posts: 259

TIP: Using autofs for supermount... [FXx]

If you want to have supermount functionality without patching your kernel, simply install autofs. And:

add the following line in /etc/modules.conf :

probe autofs autofs4 autofs

edit /etc/autofs/auto.master, adding the following line :

/var/autofs/vol         /etc/autofs/auto.vol    --timeout 3

then create /etc/autofs/auto.vol, ie:

floppy          -fstype=vfat,rw,sync,umask=0000,iocharset=iso8859-7,codepage=869        :/dev/fd0
cdrw            -fstype=iso9660,ro,nosuid,nodev,iocharset=iso8859-7                     :/dev/cdrw
dvd             -fstype=iso9660,ro,nosuid,nodev,iocharset=iso8859-7                     :/dev/dvd
/etc/rc.d/autofs start
ls /var/autofs/vol/dvd/

watch your dvd getting mounted automatically & listing your files. After 3 secs it will get automatically umounted.

If you mount nfs shares from a server, do :

ls /var/autofs/net/$SERVER_HOSTNAME/

(replacing $SERVER_HOSTNAME with the server's hostname as listed in client's /etc/hosts)
to access all its shares automatically.

Offline

#2 2003-11-15 22:47:54

dauphin
Member
From: Scotland
Registered: 2003-07-09
Posts: 188

Re: TIP: Using autofs for supermount... [FXx]

I'm not having any success with this.  All I get is:

ls: /var/autofs/vol/dvd: No such file or directory

Have you any thoughts what could be wrong please?

Offline

#3 2003-11-15 22:53:31

kritoke
Member
From: Texas, USA
Registered: 2003-08-01
Posts: 211
Website

Re: TIP: Using autofs for supermount... [FXx]

Have you linked something to /dev/dvd first or change it to something like /dev/cdroms/cdromX?  I am pretty sure by default it does not exist, the same would be for the /dev/cdrw.  That is just my thoughts on the subject, I myself haven't used autofs yet.

Kritoke


http://counter.li.org/ Registered Linux User #318963 kritoke@jabber.org

Offline

#4 2003-11-16 00:47:41

zen_guerrilla
Member
From: Greece
Registered: 2002-12-22
Posts: 259

Re: TIP: Using autofs for supermount... [FXx]

Of course the auto.vol is just a sample (what I use) so don't use it as it.
A simple :

 cdrom      -fstype=iso9660,ro          :/dev/cdroms/cdrom0

should be fine as a generic configuration.

Offline

#5 2003-11-16 09:48:18

dauphin
Member
From: Scotland
Registered: 2003-07-09
Posts: 188

Re: TIP: Using autofs for supermount... [FXx]

I'd realised that and am using /dev/cdroms/cdrom0 (and cdrom1).
When I issue the   "ls /var/autofs/vol/cdrw"  command, it makes the drive spin, but  just reports "No such drive or directory".  Same with the dvd and the floppy.
I've looked at the relevant man pages but they are a little sparse, so if you have any further ideas I'd be grateful.

Offline

#6 2003-11-16 12:31:21

zen_guerrilla
Member
From: Greece
Registered: 2002-12-22
Posts: 259

Re: TIP: Using autofs for supermount... [FXx]

Try to 'cd' in that dir. '/var/autofs/vol/cdrw' doesn't exist. When you try to access it, autofs mounts your drive and creates that dir. Also make sure to check syslog (/var/log/messages) for possible errors, autofs by default creates nice log messages.

Offline

#7 2003-11-16 13:00:09

dauphin
Member
From: Scotland
Registered: 2003-07-09
Posts: 188

Re: TIP: Using autofs for supermount... [FXx]

I have got it working now.  The problem was the reference to
"iocharset=iso8859-7" in /etc/autofs/auto.vol.   Once I removed that everything was OK.  Thanks for your help.

Offline

#8 2003-11-16 13:21:11

zen_guerrilla
Member
From: Greece
Registered: 2002-12-22
Posts: 259

Re: TIP: Using autofs for supermount... [FXx]

I told you not to use my config smile. BTW 'iocharset=iso8859-7' is used to correctly show filenames with greek characters...

Offline

Board footer

Powered by FluxBB