| View previous topic :: View next topic |
| Author |
Message |
schiotz Apprentice

Joined: 20 Jan 2004 Posts: 195 Location: Denmark
|
Posted: Tue Mar 11, 2008 5:13 am Post subject: [SOLVED] autofs stopped working |
|
|
I sometimes use autofs to mount a directory from a server on my laptop. It used to work, but sometimes in the last month or so it has stopped working, probably after an upgrade.
/etc/init.d/autofs starts as it should. But when I access a remote directory, I get this in the system log:
| Code: |
Mar 11 11:05:26 demokrit automount[9417]: >> mount: block device server:/u/camp is write-protected, mounting read-only
Mar 11 11:05:26 demokrit automount[9417]: >> mount: cannot mount block device server:/u/camp read-only
Mar 11 11:05:26 demokrit automount[9417]: mount(nfs): nfs: mount failure server:/u/camp on /fysik/camp
Mar 11 11:05:26 demokrit automount[9417]: failed to mount /fysik/camp
|
The remote directory is *not* exported read-only, it is exported in the same way to the entire subnet, and it works on all other machines (none of them Gentoo) here at the department.
My /etc/autofs/auto.master:
| Code: |
# $Id: auto.master,v 1.3 2004/12/09 08:25:48 robbat2 Exp $
# Sample auto.master file
# Format of this file:
# mountpoint map options
# For details of the format look at autofs(8).
#/net /etc/autofs/auto.net
#/misc /etc/autofs/auto.misc
#/home /etc/autofs/auto.home
/fysik /etc/autofs/auto.fysik
|
My /etc/autofs/auto.fysik:
| Code: |
# This is an automounter map and it has the following format
# key [ -mount-options-separated-by-comma ] location
# Details may be found in the autofs(5) manpage
camp -rsize=8192,wsize=8192,tcp server:/u/camp
# wwwcamp -rsize=8192,wsize=8192,tcp servcamp:/u/camp/wwwcamp
#ftp -rsize=8192,wsize=8192,tcp server:/u/fys/FTP
data -rsize=8192,wsize=8192,tcp server:/u/data
data2 -rsize=8192,wsize=8192,tcp server:/u/data2
floppy -fstype=auto :/dev/fd0
cdrom -fstype=udf,iso9660 :/dev/cdrom
usb -fstype=auto,sync :/dev/sda1
|
Any help will be really appreciated!
/Jakob
Last edited by schiotz on Wed Mar 12, 2008 4:06 am; edited 1 time in total |
|
| Back to top |
|
 |
cyrillic Veteran


Joined: 18 Feb 2003 Posts: 7086 Location: Groton, Massachusetts USA
|
Posted: Tue Mar 11, 2008 10:16 am Post subject: Re: autofs stopped working |
|
|
| schiotz wrote: | | sometimes in the last month or so it has stopped working, probably after an upgrade. |
I had a similar problem when I upgraded from autofs-4 to autofs-5
The config files were all different (and in different places), so I just deleted /etc/autofs/ and created new config files. |
|
| Back to top |
|
 |
schiotz Apprentice

Joined: 20 Jan 2004 Posts: 195 Location: Denmark
|
Posted: Wed Mar 12, 2008 3:23 am Post subject: Re: autofs stopped working |
|
|
| cyrillic wrote: | | schiotz wrote: | | sometimes in the last month or so it has stopped working, probably after an upgrade. |
I had a similar problem when I upgraded from autofs-4 to autofs-5
The config files were all different (and in different places), so I just deleted /etc/autofs/ and created new config files. |
Thanks for your reply!
I am still running autofs 4.1.3-r7, so that is not the problem. Actually, autofs itself has not been updated in quite a while, it must be something else that breaks autofs.
Best regards
Jakob |
|
| Back to top |
|
 |
schiotz Apprentice

Joined: 20 Jan 2004 Posts: 195 Location: Denmark
|
Posted: Wed Mar 12, 2008 4:06 am Post subject: |
|
|
Problem solved! I discovered that there is a package called nfs-utils, and thought that it was a good idea to try to install it.  |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|