LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   autofs does not mount removable disk (https://www.linuxquestions.org/questions/linux-software-2/autofs-does-not-mount-removable-disk-357603/)

sohmc 08-27-2005 04:41 PM

autofs does not mount removable disk
 
I've been trying to mount a removable disk via automount and can't get it to work right. here's my auto.master:
Code:

sohmc@bart:~$ cat /etc/auto.master
#
# $Id: auto.master,v 1.4 2005/01/04 14:36:54 raven Exp $
#
# Sample auto.master file
# This is an automounter map and it has the following format
# key [ -mount-options-separated-by-comma ] location
# For details of the format look at autofs(5).
#/misc  /etc/auto.misc --timeout=60
#/smb  /etc/auto.smb

/misc          /etc/auto.misc
/net          /etc/auto.net
/media        /etc/auto.media    --verbose --debug

I have a SD card, who's address is /dev/sdc1. A normal mount will work fine. However, I want to be able to automount it as /media/kodak

my /etc/auto.media is as follows:
Code:

sohmc@bart:~$ cat /etc/auto.media
#
# $Id: auto.misc,v 1.2 2003/09/29 08:22:35 raven Exp $
#
# 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

kodak          -fstype=vfat,rw,nosuid          :/dev/sdc1

# the following entries are samples to pique your imagination
#linux          -ro,soft,intr          ftp.example.org:/pub/linux
#boot          -fstype=ext2            :/dev/hda1
#floppy        -fstype=auto            :/dev/fd0
#floppy        -fstype=ext2            :/dev/fd0
#e2floppy      -fstype=ext2            :/dev/fd0
#jaz            -fstype=ext2            :/dev/sdc1
#removable      -fstype=ext2            :/dev/hdd

When I insert the card, I get this in my messages:
Code:

Aug 27 17:14:16 bart kernel: SCSI device sdc: 125440 512-byte hdwr sectors (64 MB)
Aug 27 17:14:16 bart kernel: sdc: Write Protect is off
Aug 27 17:14:16 bart kernel: sdc: assuming drive cache: write through
Aug 27 17:14:16 bart kernel: SCSI device sdc: 125440 512-byte hdwr sectors (64 MB)
Aug 27 17:14:16 bart kernel: sdc: Write Protect is off
Aug 27 17:14:16 bart kernel: sdc: assuming drive cache: write through
Aug 27 17:14:16 bart kernel:  sdc: sdc1

automount doesn't do anything. it isn't until I pull the card out that automount reports back:
Code:

Aug 27 17:24:31 bart kernel: Device not ready. Make sure there is a disc in the drive.
Aug 27 17:24:31 bart kernel: Device not ready. Make sure there is a disc in the drive.
Aug 27 17:24:31 bart automount[12152]: attempting to mount entry /media/KODAK1
Aug 27 17:24:31 bart automount[12347]: failed to mount /media/KODAK1
Aug 27 17:24:31 bart automount[12347]: umount_multi: no mounts found under /media/KODAK1

This really doesn't make a lot of sense since KODAK1 is never mentioned anywhere. Does automount have some other default config file that I've missed somewhere?

If you have any clues, let me know. :-)


All times are GMT -5. The time now is 07:24 PM.