LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   can't get autofs to automount CD Drives (https://www.linuxquestions.org/questions/linux-newbie-8/cant-get-autofs-to-automount-cd-drives-776975/)

bret381 12-19-2009 10:30 PM

can't get autofs to automount CD Drives
 
I have searched the forums and tried several gentoo autofs howtos. Still, I cannot get a cd to automount.

I can manually mount the drives, but autofs is just not picking my dvd-rom or dvd-rw drive on it's own.

Any suggestions on where to start with something that could help determine the problem?

/etc/fstab:
Code:

# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/sda1      /boot      ext2      defaults,noatime  1 2
/dev/sda3      /      ext3      noatime      0 1
/dev/sda4      /home      ext3      noatime
/dev/sda2      none      swap      sw      0 0
/dev/cdrom      /mnt/cdrom  auto      noauto,ro,user  0 0
/dev/dvdrw      /mnt/dvd  auto      noauto,user  0 0
#/dev/FLOPPY      /mnt/floppy  auto      noauto      0 0

# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
#  use almost no memory if not populated with files)
shm        /dev/shm  tmpfs      nodev,nosuid,noexec  0

/etc/auto.auto:
Code:

#directory name      options for mount      device to mount
boot        -fstype=ext3        /dev/sda1
cdrom        -fstype=iso9660,ro      /dev/cdrom

/etc/auto.master:
Code:


#directory name      options for mount      device to mount
boot        -fstype=ext3        /dev/sda1
cdrom        -fstype=iso9660,ro      /dev/cdrom

/etc/auto.misc:
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

cd      -fstype=auto,ro      :/dev/cdrom
dvd      -fstype=auto      :/dev/dvdrw


AwesomeMachine 12-19-2009 10:57 PM

take the noauto option out of the /etc/fstab lines for cdrom and dvdrw.

bret381 12-20-2009 07:12 AM

ok, well it is now Automounting.... Now for the next part, I'm not even sure what to call it. But in every other distro I've used, ubuntu, suse, fedora, slackware etc. When you put the cd in, it automounts and pulls the folder up automatically, so you don't have to navigate to the mounted location. My wife is not gonna have this, going to the file browser->mnt->auto->cdrom. Any ideas what makes this work?


All times are GMT -5. The time now is 01:40 PM.