You are not logged in.
I installed and configured autofs and on Wiki it says that:
Devices are now automatically mounted when they are accessed. Visit the /media/cdrom and /media/floppy directories to access them. They will remain mounted as long as you access them.
However if I enter the dir and tries to list the files I get:
221506/media/cdrom$ ls
ls: .: No such file or directory
Any ideas?
/Richard
If you must have must. Have must.
- DKE supporters about this wonderful swedish soda.
Offline
if it does not try the manual ways. Automated stuff are eyewashes.
Be yourself, because you are all that you can be
Offline
Search the wiki. There's info about automounters there.
·¬»· i am shadowhand, powered by webfaction
Offline
Create symbolic links in /mnt or somewhere pointing to every medium you have AutoFS manage.
ln -s /media/cd /mnt/cd
Then you just put in a CD, and cd /mnt/cd et voila.
A bus station is where a bus stops.
A train station is where a train stops.
On my desk I have a workstation.
Offline
Still the same problem after symbolic link:
194717/mnt/cd/cdrom# ls
ls: .: No such file or directory
If you must have must. Have must.
- DKE supporters about this wonderful swedish soda.
Offline
silly question: its not a music cd by any chance? no insult to ur intelligence intended, its something i did once.
After a while a slap on the forehead seemed to cure me of the problem
Offline
Still the same problem after symbolic link:
194717/mnt/cd/cdrom# ls ls: .: No such file or directory
If it's not an audio CD you're trying to mount, as Kern suggested, you probably didn't read the AutoFS wiki correctly.
Off the top of my head:
1. enable autofs support (unless you have a kernel from the repo)
2. install the autofs tools using pacman
3. edit /etc/autofs/autofs.media and /etc/autofs/autofs.master
4. modprobe autofs
5. /etc/rc.d/autofs start
A bus station is where a bus stops.
A train station is where a train stops.
On my desk I have a workstation.
Offline
I still get the same message:
101939/media# ls
cdrom/ usbstick/
101940/media# ls cdrom/
ls: cdrom/: No such file or directory
However I didn't moldprobe nit (I think). Tried:
102057/media# modprobe autofs
FATAL: Module autofs not found.
I did follow every step in AutoFS_HowTo.
If you must have must. Have must.
- DKE supporters about this wonderful swedish soda.
Offline
If you're using the stock kernel, it's got AutoFS compiled in so no need for modprobing.
Did you run the autofs service?
A bus station is where a bus stops.
A train station is where a train stops.
On my desk I have a workstation.
Offline
I did:
/etc/rc.d/autofs start
I also added it in my daemon-list in rc.conf so it should start manually but I've tried both ways.
If you must have must. Have must.
- DKE supporters about this wonderful swedish soda.
Offline
Could you post the content of /etc/autofs/auto.media?
Did you remember to put a empty line at the bottom of /etc/autofs/auto.master?
Offline
Output of auto.media:
cdrom -fstype=iso9660, ro, nodev, nosuid :/dev/cdrom
usbstick -fstype=auto, async, nodev, nosuid, umask=000 :/dev/sda1
Yes. There's an empty line below the last line in auto.master.
If you must have must. Have must.
- DKE supporters about this wonderful swedish soda.
Offline
Yes. There's an empty line below the last line in auto.master.
As far as I can remember you need an empty line at the end of every auto file you include.
Offline
I'll make sure I do...
[edit]
Now my /media dir got deleted. I created it again, restarted autofs and it got removed again.
If you must have must. Have must.
- DKE supporters about this wonderful swedish soda.
Offline
why not just use udev pmont hal dbus etc...
Mr Green
Offline
Autofs has one big advantage over udev:
you can mount usbstick with -o async (which greatly improves speed and flash lifetime) and you can safely remove usbstick after 1 minute (if configured as in http://wiki.archlinux.org/index.php/AutoFS_HowTo ).
The same for CDs - you don't need any eject utilities or menus to unlock CD-drive. It will be unmounted and unlocked after 1 minute idle.
BTW I posted a feature request to Flyspray about changing useless autofs default config files to something like AutoFS HowTo from Wiki.
to live is to die
Offline
autofs not working here (yet!)
set up as per wiki .... nothing ...
Happy with udev rules & magic!
/me chants pendrive to mount
Mr Green
Offline
autofs not working here (yet!)
set up as per wiki .... nothing ...
Happy with udev rules & magic!
/me chants pendrive to mount
Works for me. Setup as per Wiki. What I did wrong?
to live is to die
Offline
no idea .. I will keep trying maybe I missed something
Mr Green
Offline
Did you disable your udev rules and restarted udev before playing with autofs?
to live is to die
Offline
Here are my config files:
/etc/autofs/auto.master:
/media /etc/autofs/auto.media
Note that the end char is the newline char!
/etc/autofs/auto.media
cdrom -fstype=iso9660,ro,nodev,nosuid,iocharset=koi8-u :/dev/cdrom
floppy -fstype=auto,async,nodev,nosuid,umask=000,codepage=866,iocharset=koi8-u :/dev/fl
usbdrive -fstype=vfat,async,nodev,nosuid,noexec,noatime,umask=000,codepage=866,i
ocharset=koi8-u :/dev/sda1
/etc/conf.d/autofs:
# e.g. localoptions='rsize=8192,wsize=8192'
localoptions=''
# e.g. --timeout=60
daemonoptions='-g'
/etc/default/autofs:
TIMEOUT=1
And
DAEMONS=(... autofs ...)
Then I've created empty /media directory.
On start autofs creates /media/cdrom, /media/floppy and /media/usbdrive
Autofs does not mount usbdrive when you plug USB drive, nor cdrom when you insert CD! It mounts these directories only on first access! And unmounts them after 1 minute after the last access (and if none files or dirs are blocked).
to live is to die
Offline
lol no .... but I will :oops:
Mr Green
Offline