You are not logged in.

#1 2006-05-01 12:15:38

riwa
Member
From: Lund, Sweden
Registered: 2006-04-04
Posts: 215

Automounting not working?

I installed and configured autofs and on Wiki it says that:

Wiki-Pages wrote:

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

#2 2006-05-14 17:25:46

ScriptDevil
Member
From: In Front of My PC
Registered: 2006-04-06
Posts: 253

Re: Automounting not working?

if it does not try the manual ways. Automated stuff are eyewashes.


Be yourself, because you are all that you can be

Offline

#3 2006-05-17 14:44:46

shadowhand
Member
From: MN, USA
Registered: 2004-02-19
Posts: 1,142
Website

Re: Automounting not working?

Search the wiki. There's info about automounters there.


·¬»· i am shadowhand, powered by webfaction

Offline

#4 2006-05-17 14:59:23

FUBAR
Member
From: Belgium
Registered: 2004-12-08
Posts: 1,029
Website

Re: Automounting not working?

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

#5 2006-05-18 17:48:46

riwa
Member
From: Lund, Sweden
Registered: 2006-04-04
Posts: 215

Re: Automounting not working?

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

#6 2006-05-18 21:20:32

Kern
Member
From: UK
Registered: 2005-02-09
Posts: 464

Re: Automounting not working?

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 smile

Offline

#7 2006-05-19 07:48:25

FUBAR
Member
From: Belgium
Registered: 2004-12-08
Posts: 1,029
Website

Re: Automounting not working?

riwa wrote:

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

#8 2006-06-16 08:22:17

riwa
Member
From: Lund, Sweden
Registered: 2006-04-04
Posts: 215

Re: Automounting not working?

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

#9 2006-06-18 13:59:23

FUBAR
Member
From: Belgium
Registered: 2004-12-08
Posts: 1,029
Website

Re: Automounting not working?

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

#10 2006-06-19 14:10:45

riwa
Member
From: Lund, Sweden
Registered: 2006-04-04
Posts: 215

Re: Automounting not working?

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

#11 2006-06-28 23:00:29

gizmo
Member
From: Norway
Registered: 2006-02-22
Posts: 27

Re: Automounting not working?

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

#12 2006-07-03 12:36:06

riwa
Member
From: Lund, Sweden
Registered: 2006-04-04
Posts: 215

Re: Automounting not working?

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

#13 2006-07-07 11:34:13

maxwevers
Member
Registered: 2006-06-30
Posts: 29

Re: Automounting not working?

riwa wrote:

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

#14 2006-07-07 16:59:12

riwa
Member
From: Lund, Sweden
Registered: 2006-04-04
Posts: 215

Re: Automounting not working?

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

#15 2006-07-07 17:33:21

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,914
Website

Re: Automounting not working?

why not just use udev pmont hal dbus etc...


Mr Green

Offline

#16 2006-07-11 13:59:08

Romashka
Forum Fellow
Registered: 2005-12-07
Posts: 1,054

Re: Automounting not working?

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

#17 2006-07-11 14:30:56

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,914
Website

Re: Automounting not working?

autofs not working here (yet!)

set up as per wiki .... nothing ...

Happy with udev rules & magic!

/me chants pendrive to mount


Mr Green

Offline

#18 2006-07-11 21:29:15

Romashka
Forum Fellow
Registered: 2005-12-07
Posts: 1,054

Re: Automounting not working?

Mr Green wrote:

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

#19 2006-07-12 05:14:34

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,914
Website

Re: Automounting not working?

no idea .. I will keep trying maybe I missed something


Mr Green

Offline

#20 2006-07-12 08:00:52

Romashka
Forum Fellow
Registered: 2005-12-07
Posts: 1,054

Re: Automounting not working?

Did you disable your udev rules and restarted udev before playing with autofs?


to live is to die

Offline

#21 2006-07-12 08:18:19

Romashka
Forum Fellow
Registered: 2005-12-07
Posts: 1,054

Re: Automounting not working?

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

#22 2006-07-12 08:27:26

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,914
Website

Re: Automounting not working?

lol no .... but I will  :oops:


Mr Green

Offline

Board footer

Powered by FluxBB