rblythe wrote: > I am having some trouble with autofs that isn't making much sense to me. > > Current Situation: > Kernel = 2.6.23.9 > LFS Version = SVN-20071223 > BLFS Version = SVN-20071217 (not sure how this is earlier than LFS) > AutoFS Version = 4.1.4 (this was the version at the time of my build) > UDEV Version = 113 (this was the version at the time of my build) > I am *not* running KDE, GNOME, XFCE, FluxBox, etc. (I use ude as my > window manager) > > > UDEV rules (specific to my situation) (devices are properly created in /dev) > 10-cardreader.rules: > SUBSYSTEMS=="scsi", ATTRS{model}=="IC1210 CF", > NAME{all_partitions}="CompactFlash" > SUBSYSTEMS=="scsi", ATTRS{model}=="IC1210 MS", > NAME{all_partitions}="MemoryStick" > SUBSYSTEMS=="scsi", ATTRS{model}=="IC1210 MMC/SD", > NAME{all_partitions}="MMC_SD_Card" > SUBSYSTEMS=="scsi", ATTRS{model}=="IC1210 SM", > NAME{all_partitions}="SmartMedia" > SUBSYSTEMS=="scsi", ATTRS{model}=="Cruzer Micro|JUMPDRIVE", > NAME{all_partitions}="JumpDrive" > > /etc/auto.master: > # Begin /etc/auto.master > /media /etc/auto.misc > # End /etc/auto.master > > /etc/auto.misc: > # $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 > > # cd -fstype=iso9660,ro,nosuid,nodev :/dev/cdrom > > # The following reference devices created in > # /etc/udev/rules.d/10-cardreader.rules > # Review 'man mount' for proper fstype options # This must match UDEV > rules > CompactFlash --fstype=vfat,rw,gid=disk,umask=002 > :/dev/CompactFlash1 --ghost > MMC_SD_Card --fstype=vfat,rw,gid=disk,umask=002 > :/dev/MMC_SD_Card1 --ghost > SmartMedia --fstype=vfat,rw,gid=disk,umask=002 > :/dev/SmartMedia1 --ghost > MemoryStick --fstype=vfat,rw,gid=disk,umask=002 > :/dev/MemoryStick1 --ghost > JumpDrive --fstype=vfat,rw,gid=disk,umask=002 > :/dev/JumpDrive1 --ghost > > # All devices have '1' at the end on purpose. I could not manually mount to > # /dev/CompactFlash, but I can manually mount to /dev/CompactFlash1 > > When checking my kernel for proper configuration, I get the following > output: > grep AUTOFS /boot/config-2.6.23.9 > CONFIG_AUTOFS_FS=y > CONFIG_AUTOFS4_FS=y > > grep NFS /boot/config-2.6.23.9 > CONFIG_NFS_FS=y > CONFIG_NFS_V3=y > # CONFIG_NFS_V3_ACL is not set > # CONFIG_NFS_V4 is not set > # CONFIG_NFS_DIRECTIO is not set > CONFIG_NFSD=y > CONFIG_NFSD_V3=y > # CONFIG_NFSD_V3_ACL is not set > # CONFIG_NFSD_V4 is not set > CONFIG_NFSD_TCP=y > CONFIG_ROOT_NFS=y > CONFIG_NFS_COMMON=y > > grep SMB /boot/config-2.6.23.9 > # CONFIG_SMB_FS is not set > > UDEV does create the devices *before* autofs starts > > What could possibly be wrong with autofs? When I plug in my usb pen > drive, autofs does not create the mount point /media/JumpDrive, but I > can manually mount the drive (as root) with the following command: > mount -t vfat -o uid=disk /dev/JumpDrive1 /media/JumpDrive > so I believe udev is working properly. > > Any help or direction you can provide would be greatly appreciated. > > rblythe > > > It turns out this was a simple syntax error in my /etc/auto.misc file. I had to change all "--fstype=*" to "-fstype=*" and completely remove the "--ghost" syntax from each line in the file. Lastly, I changed my /etc/auto.master file to read: /var/atuofs /etc/auto.master --ghost
After completing those two steps, I created symlinks in /media like this: ln -sf /var/autofs/CompactFlash1 /media/CompactFlash Once done, I rebooted the system and now everything works perfectly. rblythe -- http://linuxfromscratch.org/mailman/listinfo/blfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page