Skip to contentSkip to conversation

Fedora 8 And Autofs

DISCUSSION Thanh Tran 4 participants 15 messages Aug 12, 2008 – Aug 15, 2008 Kernel automounter

lore
Share & tools
lore

Thanh Tran

author
#0 lore raw

I'm sorry if this is a repost. I'm not sure if the 1st one got through. I've been using autofs just fine on Fedora 5. I recently upgraded to Fedora 8. I ran yum install autofs to get the latest. Then, I updated my auto.master file to match my old one under Fedora 5. It does not seem to work. The autofs does not seem to load my master mount file. I checked hal and it's happy as a clam. It sees new devices being added when I plug my usb cdrom and usb memory stick. I looked at the autofs script in /etc/init.d and compared it to the one on Fedora 5 and they totally different. Could someone please direct me to a tutorial? I never had this much trouble on Fedora 5.

maintainer
#1 lore raw
Quoted 4 lines · Thanh Tran

I'm sorry if this is a repost. I'm not sure if the 1st one got through. I've been using autofs just fine on Fedora 5. I recently upgraded to Fedora 8. I ran yum install autofs to get the latest. Then, I updated my auto.master file to match my old one under Fedora

So what is in your auto.master?

Quoted 2 lines

5. It does not seem to work. The autofs does not seem to load my
master mount file. I checked hal and it's happy as a clam. It sees

Any messages in the system log.
What has hal got to do with this?

Quoted 13 lines

new devices being added when I plug my usb cdrom and usb memory
stick. I looked at the autofs script in /etc/init.d and compared it to the one on Fedora 5 and they totally different. Could someone please direct me to a tutorial? I never had this much trouble on Fedora 5.

_______________________________________________
autofs mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/autofs

author
#2 lore raw

Thanks for the reply.

My auto.master file looks like this.

/mnt/cdrom /etc/auto.cdrom --timeout 2
/mnt/floppy /etc/auto.floppy --timeout 1
/mnt/usbdrive /etc/auto.usbdrive --timeout 2

My auto.cdrom looks like this.

cdrom -fstype=iso9660,user,suid :/dev/cdrom

I did a lshal -monitor to make sure the physical devices were at least being detected when I inserted them to the USB.

I did a "/etc/rc.d/init.d/autofs status" under Fedora 8 and only got this.

automount (pid 1524) is running...

I did the same call under Fedora 5 and got this.

Configured Mount Points:
------------------------
/usr/sbin/automount --timeout=60 /mnt/cdrom file /etc/auto.cdrom /usr/sbin/automount --timeout=60 /mnt/floppy file /etc/auto.floppy /usr/sbin/automount --timeout=60 /mnt/usbdrive file /etc/auto.usbdrive

Active Mount Points:
--------------------
/usr/sbin/automount --timeout=60 /mnt/cdrom file /etc/auto.cdrom /usr/sbin/automount --timeout=60 /mnt/floppy file /etc/auto.floppy /usr/sbin/automount --timeout=60 /mnt/usbdrive file /etc/auto.usbdrive

This output leads me to believe the auto.master is not loading correctly under Fedora 8.

Thanks.

Quoted 42 lines · Ian Kent

From: Ian Kent <[email protected]>
Subject: Re: [autofs] Fedora 8 And Autofs
To: [email protected]
Cc: [email protected]
Date: Tuesday, August 12, 2008, 10:51 PM

Quoted 1 line · Thanh Tran

I'm sorry if this is a repost. I'm not sure

if the 1st one got

Quoted 1 line

through. I've been using autofs just fine on

Fedora 5. I recently

Quoted 1 line

upgraded to Fedora 8. I ran yum install autofs to get

the latest.

Quoted 1 line

Then, I updated my auto.master file to match my old

one under Fedora

So what is in your auto.master?

Quoted 1 line

5. It does not seem to work. The autofs does not

seem to load my

Quoted 1 line

master mount file. I checked hal and it's happy

as a clam. It sees

Any messages in the system log.
What has hal got to do with this?

Quoted 1 line

new devices being added when I plug my usb cdrom and

usb memory

Quoted 1 line

stick. I looked at the autofs script in /etc/init.d

and compared it

Quoted 1 line

to the one on Fedora 5 and they totally different.

Could someone

Quoted 1 line

please direct me to a tutorial? I never had this much

trouble on

Quoted 9 lines

Fedora 5.

_______________________________________________
autofs mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/autofs

maintainer
#3 lore raw
Quoted 8 lines · Thanh Tran

Thanks for the reply.

My auto.master file looks like this.

/mnt/cdrom /etc/auto.cdrom --timeout 2
/mnt/floppy /etc/auto.floppy --timeout 1
/mnt/usbdrive /etc/auto.usbdrive --timeout 2

Quoted 5 lines

My auto.cdrom looks like this.

cdrom -fstype=iso9660,user,suid :/dev/cdrom

I did a lshal -monitor to make sure the physical devices were at least being detected when I inserted them to the USB.

And I suppose you've configured Gnome to not mount these removable devices for you when they are become available?

Fact is that GUI handling of removable devices is usually better than using autofs for these, but I guess you use autofs rather than the GUI for a reason.

Quoted 13 lines

I did a "/etc/rc.d/init.d/autofs status" under Fedora 8 and only got this.

automount (pid 1524) is running...

I did the same call under Fedora 5 and got this.

Configured Mount Points:
------------------------
/usr/sbin/automount --timeout=60 /mnt/cdrom file /etc/auto.cdrom /usr/sbin/automount --timeout=60 /mnt/floppy file /etc/auto.floppy /usr/sbin/automount --timeout=60 /mnt/usbdrive file /etc/auto.usbdrive

Quoted 7 lines

Active Mount Points:
--------------------
/usr/sbin/automount --timeout=60 /mnt/cdrom file /etc/auto.cdrom /usr/sbin/automount --timeout=60 /mnt/floppy file /etc/auto.floppy /usr/sbin/automount --timeout=60 /mnt/usbdrive file /etc/auto.usbdrive

This output leads me to believe the auto.master is not loading correctly under Fedora 8.

There isn't a simple way for the init script to get this information from version 5 yet. You can "cat /proc/mounts|grep autofs" if you want to see what autofs mounts have been made but there are no individual processes any more. Having the init script interrogate /proc/mounts was considered at one stage but that hasn't been done because we would rather get the information from the daemon.

Ian

author
#4 lore raw

Thank you for your reply. I'm using autofs because my system is stripped down. I'm not running any GUI's. It's all command lines for me. Only esseintial services and apps were installed. I did the same thing under Fedora 5 and didn't have any problems. Perhaps, I'm missing a service that autofs needs???

Quoted 74 lines · Ian Kent

From: Ian Kent <[email protected]>
Subject: Re: [autofs] Fedora 8 And Autofs
To: [email protected]
Cc: [email protected]
Date: Thursday, August 14, 2008, 1:00 AM

Quoted 8 lines · Thanh Tran

Thanks for the reply.

My auto.master file looks like this.

/mnt/cdrom /etc/auto.cdrom --timeout 2
/mnt/floppy /etc/auto.floppy --timeout 1
/mnt/usbdrive /etc/auto.usbdrive --timeout 2

Quoted 5 lines

My auto.cdrom looks like this.

cdrom -fstype=iso9660,user,suid :/dev/cdrom

I did a lshal -monitor to make sure the physical

devices were at least being detected when I inserted them to the USB.

And I suppose you've configured Gnome to not mount these removable
devices for you when they are become available?

Fact is that GUI handling of removable devices is usually better than
using autofs for these, but I guess you use autofs rather than the GUI
for a reason.

Quoted 2 lines

I did a "/etc/rc.d/init.d/autofs status"

under Fedora 8 and only got this.

Quoted 8 lines

automount (pid 1524) is running...

I did the same call under Fedora 5 and got this.

Configured Mount Points:
------------------------
/usr/sbin/automount --timeout=60 /mnt/cdrom file

/etc/auto.cdrom

Quoted 1 line

/usr/sbin/automount --timeout=60 /mnt/floppy file

/etc/auto.floppy

Quoted 1 line

/usr/sbin/automount --timeout=60 /mnt/usbdrive file

/etc/auto.usbdrive

Quoted 4 lines

Active Mount Points:
--------------------
/usr/sbin/automount --timeout=60 /mnt/cdrom file

/etc/auto.cdrom

Quoted 1 line

/usr/sbin/automount --timeout=60 /mnt/floppy file

/etc/auto.floppy

Quoted 1 line

/usr/sbin/automount --timeout=60 /mnt/usbdrive file

/etc/auto.usbdrive

Quoted 2 lines

This output leads me to believe the auto.master is not

loading correctly under Fedora 8.

There isn't a simple way for the init script to get this information
from version 5 yet. You can "cat /proc/mounts|grep autofs" if you want
to see what autofs mounts have been made but there are no individual
processes any more. Having the init script interrogate /proc/mounts was
considered at one stage but that hasn't been done because we would
rather get the information from the daemon.

Ian

author
#5 lore raw

I tried the "cat /proc/mounts | grep autofs." I got the following.

/etc/auto.misc /misc autofs rw,relatime,fd=6,pgrp=1525,timeout=300, minproto=5, maxproto=5, indirect 0 0

-hosts /net autofs rw,relatime,fd=12,pgrp=1496,timeout=300, minproto=5, maxproto=5, indirect 0 0

I don't see mention of auto.master or my other auto files (auto.cdrom, auto.usb etc). I still have no idea what's wrong.

Quoted 108 lines · Thanh Tran

From: Thanh Tran <[email protected]>
Subject: Re: [autofs] Fedora 8 And Autofs
To: "Ian Kent" <[email protected]>
Cc: [email protected]
Date: Thursday, August 14, 2008, 8:55 AM
Thank you for your reply. I'm using autofs because my system is stripped down. I'm not running any GUI's.
It's all command lines for me. Only esseintial
services and apps were installed. I did the same thing under Fedora 5 and didn't have any problems. Perhaps, I'm missing a service that autofs needs???

--- On Thu, 8/14/08, Ian Kent <[email protected]>

Quoted 14 lines · wrote:

From: Ian Kent <[email protected]>
Subject: Re: [autofs] Fedora 8 And Autofs
To: [email protected]
Cc: [email protected]
Date: Thursday, August 14, 2008, 1:00 AM

Quoted 8 lines · Thanh Tran

Thanks for the reply.

My auto.master file looks like this.

/mnt/cdrom /etc/auto.cdrom --timeout 2
/mnt/floppy /etc/auto.floppy --timeout 1
/mnt/usbdrive /etc/auto.usbdrive --timeout 2

Quoted 6 lines
Quoted 5 lines

My auto.cdrom looks like this.

cdrom -fstype=iso9660,user,suid :/dev/cdrom

I did a lshal -monitor to make sure the physical

devices were at least being detected when I inserted

them to

Quoted 7 lines

the USB.

And I suppose you've configured Gnome to not mount these removable
devices for you when they are become available?

Fact is that GUI handling of removable devices is

usually

Quoted 2 lines

better than
using autofs for these, but I guess you use autofs

rather

Quoted 5 lines

than the GUI
for a reason.

Quoted 2 lines

I did a "/etc/rc.d/init.d/autofs

status"

Quoted 4 lines

under Fedora 8 and only got this.

Quoted 3 lines

automount (pid 1524) is running...

Quoted 9 lines
Quoted 5 lines

I did the same call under Fedora 5 and got this.

Configured Mount Points:
------------------------
/usr/sbin/automount --timeout=60 /mnt/cdrom file

/etc/auto.cdrom

Quoted 1 line

/usr/sbin/automount --timeout=60 /mnt/floppy file

/etc/auto.floppy

Quoted 1 line

/usr/sbin/automount --timeout=60 /mnt/usbdrive

file

Quoted 9 lines

/etc/auto.usbdrive

Quoted 4 lines

Active Mount Points:
--------------------
/usr/sbin/automount --timeout=60 /mnt/cdrom file

/etc/auto.cdrom

Quoted 1 line

/usr/sbin/automount --timeout=60 /mnt/floppy file

/etc/auto.floppy

Quoted 1 line

/usr/sbin/automount --timeout=60 /mnt/usbdrive

file

Quoted 3 lines

/etc/auto.usbdrive

Quoted 2 lines

This output leads me to believe the auto.master

is not

Quoted 3 lines

loading correctly under Fedora 8.

There isn't a simple way for the init script to

get

Quoted 2 lines

this information
from version 5 yet. You can "cat

/proc/mounts|grep

Quoted 2 lines

autofs" if you want
to see what autofs mounts have been made but there are

no

Quoted 8 lines

individual
processes any more. Having the init script interrogate /proc/mounts was
considered at one stage but that hasn't been done because we would
rather get the information from the daemon.

Ian

_______________________________________________
autofs mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/autofs

maintainer
#6 lore raw
Quoted 8 lines · Thanh Tran

I tried the "cat /proc/mounts | grep autofs." I got the following.

/etc/auto.misc /misc autofs rw,relatime,fd=6,pgrp=1525,timeout=300, minproto=5, maxproto=5, indirect 0 0

-hosts /net autofs rw,relatime,fd=12,pgrp=1496,timeout=300, minproto=5, maxproto=5, indirect 0 0

I don't see mention of auto.master or my other auto files (auto.cdrom, auto.usb etc). I still have no idea what's wrong.

And where is the auto.master, that you believe should be used, located?

Quoted 118 lines
Quoted 104 lines · Thanh Tran

From: Thanh Tran <[email protected]>
Subject: Re: [autofs] Fedora 8 And Autofs
To: "Ian Kent" <[email protected]>
Cc: [email protected]
Date: Thursday, August 14, 2008, 8:55 AM
Thank you for your reply. I'm using autofs because my system is stripped down. I'm not running any GUI's.
It's all command lines for me. Only esseintial
services and apps were installed. I did the same thing under Fedora 5 and didn't have any problems. Perhaps, I'm missing a service that autofs needs???

--- On Thu, 8/14/08, Ian Kent <[email protected]>

Quoted 14 lines · wrote:

From: Ian Kent <[email protected]>
Subject: Re: [autofs] Fedora 8 And Autofs
To: [email protected]
Cc: [email protected]
Date: Thursday, August 14, 2008, 1:00 AM

Quoted 8 lines · Thanh Tran

Thanks for the reply.

My auto.master file looks like this.

/mnt/cdrom /etc/auto.cdrom --timeout 2
/mnt/floppy /etc/auto.floppy --timeout 1
/mnt/usbdrive /etc/auto.usbdrive --timeout 2

Quoted 6 lines
Quoted 5 lines

My auto.cdrom looks like this.

cdrom -fstype=iso9660,user,suid :/dev/cdrom

I did a lshal -monitor to make sure the physical

devices were at least being detected when I inserted

them to

Quoted 7 lines

the USB.

And I suppose you've configured Gnome to not mount these removable
devices for you when they are become available?

Fact is that GUI handling of removable devices is

usually

Quoted 2 lines

better than
using autofs for these, but I guess you use autofs

rather

Quoted 5 lines

than the GUI
for a reason.

Quoted 2 lines

I did a "/etc/rc.d/init.d/autofs

status"

Quoted 4 lines

under Fedora 8 and only got this.

Quoted 3 lines

automount (pid 1524) is running...

Quoted 9 lines
Quoted 5 lines

I did the same call under Fedora 5 and got this.

Configured Mount Points:
------------------------
/usr/sbin/automount --timeout=60 /mnt/cdrom file

/etc/auto.cdrom

Quoted 1 line

/usr/sbin/automount --timeout=60 /mnt/floppy file

/etc/auto.floppy

Quoted 1 line

/usr/sbin/automount --timeout=60 /mnt/usbdrive

file

Quoted 9 lines

/etc/auto.usbdrive

Quoted 4 lines

Active Mount Points:
--------------------
/usr/sbin/automount --timeout=60 /mnt/cdrom file

/etc/auto.cdrom

Quoted 1 line

/usr/sbin/automount --timeout=60 /mnt/floppy file

/etc/auto.floppy

Quoted 1 line

/usr/sbin/automount --timeout=60 /mnt/usbdrive

file

Quoted 3 lines

/etc/auto.usbdrive

Quoted 2 lines

This output leads me to believe the auto.master

is not

Quoted 3 lines

loading correctly under Fedora 8.

There isn't a simple way for the init script to

get

Quoted 2 lines

this information
from version 5 yet. You can "cat

/proc/mounts|grep

Quoted 2 lines

autofs" if you want
to see what autofs mounts have been made but there are

no

Quoted 8 lines

individual
processes any more. Having the init script interrogate /proc/mounts was
considered at one stage but that hasn't been done because we would
rather get the information from the daemon.

Ian

Quoted 4 lines

_______________________________________________
autofs mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/autofs

_______________________________________________
autofs mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/autofs

author
#7 lore raw
Quoted 3 lines

And where is the auto.master, that you believe should be used, located?

It's in /etc/auto.master

I'm expecting my cdrom to mount to /mnt/cdrom. I have the same rules for other drives. When mounted, the cdrom would be on /mnt/cdrom/cdrom. Kind of strange naming but should still work.

My /etc/nsswitch.conf file contains the following. I removed the comments.

passwd:     files
shadow:     files
group:      files
hosts:      files dns
bootparams: nisplus [NOTFOUND=return] files
ethers:     files
netmasks:   files
networks:   files
protocols:  files
rpc:        files
services:   files
netgroup:   nisplus
publickey:  nisplus
automount:  files nisplus
aliases:    files nisplus

My options for autofs contain the following.

MASTER_MAP_NAME="auto.master"
TIMEOUT=300
BROWSE_MODE="no"

Everything else was commented out.

Thanks for all the help. I'm still working on the jmoyer thing. Maybe, I'll see something there.

Quoted 147 lines
Quoted 1 line

--- On Thu, 8/14/08, Thanh Tran

Quoted 7 lines · <[email protected]> wrote:
Quoted 7 lines

From: Thanh Tran <[email protected]>
Subject: Re: [autofs] Fedora 8 And Autofs
To: "Ian Kent" <[email protected]>
Cc: [email protected]
Date: Thursday, August 14, 2008, 8:55 AM Thank you for your reply. I'm using autofs

because my

Quoted 1 line
Quoted 1 line

system is stripped down. I'm not running any

GUI's.

Quoted 1 line
Quoted 1 line

It's all command lines for me. Only

esseintial

Quoted 1 line
Quoted 1 line

services and apps were installed. I did the same

thing

Quoted 1 line
Quoted 1 line

under Fedora 5 and didn't have any problems.

Perhaps,

Quoted 4 lines
Quoted 4 lines

I'm missing a service that autofs needs???

--- On Thu, 8/14/08, Ian Kent

<[email protected]>

Quoted 8 lines
Quoted 8 lines
Quoted 6 lines · wrote:

From: Ian Kent <[email protected]>
Subject: Re: [autofs] Fedora 8 And Autofs
To: [email protected]
Cc: [email protected]
Date: Thursday, August 14, 2008, 1:00 AM On Wed, 2008-08-13 at 05:43 -0700, Thanh

Quoted 6 lines · Tran
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

Thanks for the reply.

My auto.master file looks like this.

/mnt/cdrom /etc/auto.cdrom --timeout 2
/mnt/floppy /etc/auto.floppy --timeout

1

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

/mnt/usbdrive /etc/auto.usbdrive

--timeout 2

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

My auto.cdrom looks like this.

cdrom -fstype=iso9660,user,suid

:/dev/cdrom

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

I did a lshal -monitor to make sure the

physical

Quoted 1 line
Quoted 1 line
Quoted 1 line

devices were at least being detected when I

inserted

Quoted 4 lines
Quoted 4 lines

them to

Quoted 3 lines

the USB.

And I suppose you've configured Gnome to

not mount

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

these removable
devices for you when they are become

available?

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

Fact is that GUI handling of removable

devices is

Quoted 3 lines
Quoted 3 lines

usually

Quoted 2 lines

better than
using autofs for these, but I guess you use

autofs

Quoted 5 lines
Quoted 5 lines

rather

Quoted 4 lines

than the GUI
for a reason.

Quoted 1 line
Quoted 7 lines
Quoted 7 lines
Quoted 1 line
Quoted 1 line

I did a "/etc/rc.d/init.d/autofs

status"

Quoted 5 lines

under Fedora 8 and only got this.

Quoted 4 lines

automount (pid 1524) is running...

I did the same call under Fedora 5 and

got this.

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

Configured Mount Points:
------------------------
/usr/sbin/automount --timeout=60

/mnt/cdrom file

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

/etc/auto.cdrom

Quoted 1 line

/usr/sbin/automount --timeout=60

/mnt/floppy file

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

/etc/auto.floppy

Quoted 1 line

/usr/sbin/automount --timeout=60

/mnt/usbdrive

Quoted 6 lines
Quoted 6 lines

file

Quoted 5 lines

/etc/auto.usbdrive

Quoted 4 lines

Active Mount Points:
--------------------
/usr/sbin/automount --timeout=60

/mnt/cdrom file

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

/etc/auto.cdrom

Quoted 1 line

/usr/sbin/automount --timeout=60

/mnt/floppy file

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

/etc/auto.floppy

Quoted 1 line

/usr/sbin/automount --timeout=60

/mnt/usbdrive

Quoted 4 lines
Quoted 4 lines

file

Quoted 3 lines

/etc/auto.usbdrive

Quoted 2 lines

This output leads me to believe the

auto.master

Quoted 4 lines
Quoted 4 lines

is not

Quoted 3 lines

loading correctly under Fedora 8.

There isn't a simple way for the init

script to

Quoted 6 lines
Quoted 6 lines

get

Quoted 2 lines

this information
from version 5 yet. You can "cat

/proc/mounts|grep

Quoted 2 lines

autofs" if you want
to see what autofs mounts have been made but

there are

Quoted 3 lines
Quoted 3 lines

no

Quoted 2 lines

individual
processes any more. Having the init script

interrogate

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

/proc/mounts was
considered at one stage but that hasn't

been done

Quoted 20 lines
Quoted 8 lines
Quoted 4 lines

because we would
rather get the information from the daemon.

Ian

Quoted 4 lines

_______________________________________________
autofs mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/autofs

_______________________________________________
autofs mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/autofs

maintainer
#8 lore raw
Quoted 4 lines · Thanh Tran
Quoted 2 lines

And where is the auto.master, that you believe should be used, located?

It's in /etc/auto.master

So you say but it it's not being parsed and mounted. Anything in the system log?
And, what about the debug log I asked for.

Quoted 185 lines

I'm expecting my cdrom to mount to /mnt/cdrom. I have the same rules for other drives. When mounted, the cdrom would be
on /mnt/cdrom/cdrom. Kind of strange naming but should still work.

My /etc/nsswitch.conf file contains the following. I removed the comments.

passwd:     files
shadow:     files
group:      files
hosts:      files dns
bootparams: nisplus [NOTFOUND=return] files
ethers:     files
netmasks:   files
networks:   files
protocols:  files
rpc:        files
services:   files
netgroup:   nisplus
publickey:  nisplus
automount:  files nisplus
aliases:    files nisplus

My options for autofs contain the following.

MASTER_MAP_NAME="auto.master"
TIMEOUT=300
BROWSE_MODE="no"

Everything else was commented out.

Thanks for all the help. I'm still working on the jmoyer thing. Maybe, I'll see something there.

Quoted 147 lines
Quoted 1 line

--- On Thu, 8/14/08, Thanh Tran

Quoted 7 lines · <[email protected]> wrote:
Quoted 7 lines

From: Thanh Tran <[email protected]>
Subject: Re: [autofs] Fedora 8 And Autofs
To: "Ian Kent" <[email protected]>
Cc: [email protected]
Date: Thursday, August 14, 2008, 8:55 AM Thank you for your reply. I'm using autofs

because my

Quoted 1 line
Quoted 1 line

system is stripped down. I'm not running any

GUI's.

Quoted 1 line
Quoted 1 line

It's all command lines for me. Only

esseintial

Quoted 1 line
Quoted 1 line

services and apps were installed. I did the same

thing

Quoted 1 line
Quoted 1 line

under Fedora 5 and didn't have any problems.

Perhaps,

Quoted 4 lines
Quoted 4 lines

I'm missing a service that autofs needs???

--- On Thu, 8/14/08, Ian Kent

<[email protected]>

Quoted 8 lines
Quoted 8 lines
Quoted 6 lines · wrote:

From: Ian Kent <[email protected]>
Subject: Re: [autofs] Fedora 8 And Autofs
To: [email protected]
Cc: [email protected]
Date: Thursday, August 14, 2008, 1:00 AM On Wed, 2008-08-13 at 05:43 -0700, Thanh

Quoted 6 lines · Tran
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

Thanks for the reply.

My auto.master file looks like this.

/mnt/cdrom /etc/auto.cdrom --timeout 2
/mnt/floppy /etc/auto.floppy --timeout

1

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

/mnt/usbdrive /etc/auto.usbdrive

--timeout 2

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

My auto.cdrom looks like this.

cdrom -fstype=iso9660,user,suid

:/dev/cdrom

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

I did a lshal -monitor to make sure the

physical

Quoted 1 line
Quoted 1 line
Quoted 1 line

devices were at least being detected when I

inserted

Quoted 4 lines
Quoted 4 lines

them to

Quoted 3 lines

the USB.

And I suppose you've configured Gnome to

not mount

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

these removable
devices for you when they are become

available?

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

Fact is that GUI handling of removable

devices is

Quoted 3 lines
Quoted 3 lines

usually

Quoted 2 lines

better than
using autofs for these, but I guess you use

autofs

Quoted 5 lines
Quoted 5 lines

rather

Quoted 4 lines

than the GUI
for a reason.

Quoted 1 line
Quoted 7 lines
Quoted 7 lines
Quoted 1 line
Quoted 1 line

I did a "/etc/rc.d/init.d/autofs

status"

Quoted 5 lines

under Fedora 8 and only got this.

Quoted 4 lines

automount (pid 1524) is running...

I did the same call under Fedora 5 and

got this.

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

Configured Mount Points:
------------------------
/usr/sbin/automount --timeout=60

/mnt/cdrom file

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

/etc/auto.cdrom

Quoted 1 line

/usr/sbin/automount --timeout=60

/mnt/floppy file

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

/etc/auto.floppy

Quoted 1 line

/usr/sbin/automount --timeout=60

/mnt/usbdrive

Quoted 6 lines
Quoted 6 lines

file

Quoted 5 lines

/etc/auto.usbdrive

Quoted 4 lines

Active Mount Points:
--------------------
/usr/sbin/automount --timeout=60

/mnt/cdrom file

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

/etc/auto.cdrom

Quoted 1 line

/usr/sbin/automount --timeout=60

/mnt/floppy file

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

/etc/auto.floppy

Quoted 1 line

/usr/sbin/automount --timeout=60

/mnt/usbdrive

Quoted 4 lines
Quoted 4 lines

file

Quoted 3 lines

/etc/auto.usbdrive

Quoted 2 lines

This output leads me to believe the

auto.master

Quoted 4 lines
Quoted 4 lines

is not

Quoted 3 lines

loading correctly under Fedora 8.

There isn't a simple way for the init

script to

Quoted 6 lines
Quoted 6 lines

get

Quoted 2 lines

this information
from version 5 yet. You can "cat

/proc/mounts|grep

Quoted 2 lines

autofs" if you want
to see what autofs mounts have been made but

there are

Quoted 3 lines
Quoted 3 lines

no

Quoted 2 lines

individual
processes any more. Having the init script

interrogate

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

/proc/mounts was
considered at one stage but that hasn't

been done

Quoted 20 lines
Quoted 8 lines
Quoted 4 lines

because we would
rather get the information from the daemon.

Ian

Quoted 4 lines

_______________________________________________
autofs mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/autofs

_______________________________________________
autofs mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/autofs

#9 lore raw
In reply to Thanh Tran

Thanh Tran wrote, On 08/14/2008 12:07 PM:

Quoted 9 lines
Quoted 2 lines

And where is the auto.master, that you believe should be used, located?

It's in /etc/auto.master

I'm expecting my cdrom to mount to /mnt/cdrom. I have the same rules for other drives. When mounted, the cdrom would be on /mnt/cdrom/cdrom. Kind of strange naming but should still work.

My /etc/nsswitch.conf file contains the following. I removed the comments.

<SNIP>

Quoted 6 lines

Everything else was commented out.

Thanks for all the help. I'm still working on the jmoyer thing. Maybe, I'll see something there.

extra question/observation/suggestion:
Do you have SELinux installed on your box, and in enforcing mode?

I have been seeing messages on the fedora list indicating that SELinux is a lot more anal now about 'tags' on files, and if you copied the auto.master (or any of the others) instead of editing them in place, then they now have the wrong 'tag'. Not sure if the extra anal SEL came in F8 or F9.

while running tail -f /var/log/messages issue service autofs restart, and see if you get any SELinux messages. If you do, then we have to remember the incantation to get the 'tag's back to right.

Signature · 3 lines
Todd Denniston
Crane Division, Naval Surface Warfare Center (NSWC Crane)
Harnessing the Power of Technology for the Warfighter
#10 lore raw
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"TD" == Todd Denniston <[email protected]> writes:

TD> If you do, then we have to remember the incantation to get the TD> 'tag's back to right.

restorecon -v <name of file>

- J<

author
#11 lore raw

Re: Fedora 8 And Autofs SOLVED!!

In reply to Todd Denniston

After a lot of digging and lot of help from Ian, I have solved the problem. It might not be the best answer, but it works good enough for now. In my auto.master file I reference several map files (one for cdrom's, one for usb HD/solid state memory, and one for floopy). After examining the debug output from the service, I noticed only one of the map files was being read. My solution was to combine the contents of all the map files into one file. I also had an error when referencing a usb device. I didn't realize Fedora 8 maps usb drives to /dev/sdb1. I always used sda1 under Fedora 5. I'm not sure why autofs version 5 didn't let me reference more than one map file in my auto.master. Thanks for all the help.

maintainer
#12 lore raw

Re: Fedora 8 And Autofs SOLVED!!

Quoted 11 lines · Thanh Tran

After a lot of digging and lot of help from Ian, I have solved the problem. It might not be the best answer, but it works good enough for now. In my auto.master file I reference several map files (one for cdrom's, one for usb HD/solid state memory, and one for floopy). After examining the debug output from the service, I noticed only one of the map files was being read. My solution was to combine the contents of all the map files into one file. I also had an error when referencing a usb device. I didn't realize Fedora 8 maps usb drives to /dev/sdb1. I always used sda1 under Fedora 5. I'm not sure why autofs version 5 didn't let me reference more than one map file in my auto.master. Thanks for all the help.

You can't have multiple entries for the same mount point in the master map but that's also the case in version 4.

Direct maps in version 5 are an exception to this.

That's just the way it is.

You could do something like:

/- auto.cdrom
/- auto.floppy

And then auto.cdrom:
/mnt/cdrom :/dev/cdrom

etc.

or just:

/- auto.removable

and auto.removable as
/mnt/cdrom :/dev/cdrom
/mnt/floppy :/dev/fd0

maintainer
#13 lore raw
In reply to Thanh Tran
Quoted 5 lines · Thanh Tran

Thank you for your reply. I'm using autofs because my system is stripped down. I'm not running any GUI's. It's all command lines for me. Only esseintial services and apps were installed. I did the same thing under Fedora 5 and didn't have any problems. Perhaps, I'm missing a service that autofs needs???

OK, then get a debug log by following the instructions at
http://people.redhat.com/jmoyer and we'll see if we can see what's going on.

Quoted 81 lines
Quoted 74 lines · Ian Kent

From: Ian Kent <[email protected]>
Subject: Re: [autofs] Fedora 8 And Autofs
To: [email protected]
Cc: [email protected]
Date: Thursday, August 14, 2008, 1:00 AM

Quoted 8 lines · Thanh Tran

Thanks for the reply.

My auto.master file looks like this.

/mnt/cdrom /etc/auto.cdrom --timeout 2
/mnt/floppy /etc/auto.floppy --timeout 1
/mnt/usbdrive /etc/auto.usbdrive --timeout 2

Quoted 5 lines

My auto.cdrom looks like this.

cdrom -fstype=iso9660,user,suid :/dev/cdrom

I did a lshal -monitor to make sure the physical

devices were at least being detected when I inserted them to the USB.

And I suppose you've configured Gnome to not mount these removable
devices for you when they are become available?

Fact is that GUI handling of removable devices is usually better than
using autofs for these, but I guess you use autofs rather than the GUI
for a reason.

Quoted 2 lines

I did a "/etc/rc.d/init.d/autofs status"

under Fedora 8 and only got this.

Quoted 8 lines

automount (pid 1524) is running...

I did the same call under Fedora 5 and got this.

Configured Mount Points:
------------------------
/usr/sbin/automount --timeout=60 /mnt/cdrom file

/etc/auto.cdrom

Quoted 1 line

/usr/sbin/automount --timeout=60 /mnt/floppy file

/etc/auto.floppy

Quoted 1 line

/usr/sbin/automount --timeout=60 /mnt/usbdrive file

/etc/auto.usbdrive

Quoted 4 lines

Active Mount Points:
--------------------
/usr/sbin/automount --timeout=60 /mnt/cdrom file

/etc/auto.cdrom

Quoted 1 line

/usr/sbin/automount --timeout=60 /mnt/floppy file

/etc/auto.floppy

Quoted 1 line

/usr/sbin/automount --timeout=60 /mnt/usbdrive file

/etc/auto.usbdrive

Quoted 2 lines

This output leads me to believe the auto.master is not

loading correctly under Fedora 8.

There isn't a simple way for the init script to get this information
from version 5 yet. You can "cat /proc/mounts|grep autofs" if you want
to see what autofs mounts have been made but there are no individual
processes any more. Having the init script interrogate /proc/mounts was
considered at one stage but that hasn't been done because we would
rather get the information from the daemon.

Ian

maintainer
#14 lore raw
In reply to Thanh Tran
Quoted 18 lines · Thanh Tran

Thank you for your reply. I'm using autofs because my system is stripped down. I'm not running any GUI's. It's all command lines for me. Only esseintial services and apps were installed. I did the same thing under Fedora 5 and didn't have any problems. Perhaps, I'm missing a service that autofs needs???

Quoted 13 lines · Ian Kent

From: Ian Kent <[email protected]>
Subject: Re: [autofs] Fedora 8 And Autofs
To: [email protected]
Cc: [email protected]
Date: Thursday, August 14, 2008, 1:00 AM

Quoted 7 lines · Thanh Tran

Thanks for the reply.

My auto.master file looks like this.

/mnt/cdrom /etc/auto.cdrom --timeout 2
/mnt/floppy /etc/auto.floppy --timeout 1
/mnt/usbdrive /etc/auto.usbdrive --timeout 2

Hang on.
So you expect to access the cdrom as directory /mnt/cdrom/cdrom? And so on for the other devices, right.

Quoted 64 lines
Quoted 61 lines
Quoted 6 lines

My auto.cdrom looks like this.

cdrom -fstype=iso9660,user,suid :/dev/cdrom

I did a lshal -monitor to make sure the physical

devices were at least being detected when I inserted them to the USB.

And I suppose you've configured Gnome to not mount these removable
devices for you when they are become available?

Fact is that GUI handling of removable devices is usually better than
using autofs for these, but I guess you use autofs rather than the GUI
for a reason.

Quoted 2 lines

I did a "/etc/rc.d/init.d/autofs status"

under Fedora 8 and only got this.

Quoted 8 lines

automount (pid 1524) is running...

I did the same call under Fedora 5 and got this.

Configured Mount Points:
------------------------
/usr/sbin/automount --timeout=60 /mnt/cdrom file

/etc/auto.cdrom

Quoted 1 line

/usr/sbin/automount --timeout=60 /mnt/floppy file

/etc/auto.floppy

Quoted 1 line

/usr/sbin/automount --timeout=60 /mnt/usbdrive file

/etc/auto.usbdrive

Quoted 4 lines

Active Mount Points:
--------------------
/usr/sbin/automount --timeout=60 /mnt/cdrom file

/etc/auto.cdrom

Quoted 1 line

/usr/sbin/automount --timeout=60 /mnt/floppy file

/etc/auto.floppy

Quoted 1 line

/usr/sbin/automount --timeout=60 /mnt/usbdrive file

/etc/auto.usbdrive

Quoted 2 lines

This output leads me to believe the auto.master is not

loading correctly under Fedora 8.

There isn't a simple way for the init script to get this information
from version 5 yet. You can "cat /proc/mounts|grep autofs" if you want
to see what autofs mounts have been made but there are no individual
processes any more. Having the init script interrogate /proc/mounts was
considered at one stage but that hasn't been done because we would
rather get the information from the daemon.

Ian