You are not logged in.
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
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
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
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
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
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
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
I told you not to use my config . BTW 'iocharset=iso8859-7' is used to correctly show filenames with greek characters...
Offline