LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   auto mount dvd (http://www.linuxquestions.org/questions/slackware-14/auto-mount-dvd-4175435173/)

detpenguin 11-01-2012 09:33 PM

auto mount dvd
 
i have been struggling with this for 2 days now. i know in the past i edited the fstab file to automatically mount my dvd drive, but i cannot figure out what i did. i can mount it as root using mount /dev/cdrom, but i know it's easier than that. can anyone guide in the right direction? i would be sincerely grateful!

Jeff

/dev/random 11-02-2012 02:06 PM

Add the option 'auto' to the entry.

acummings 11-03-2012 04:46 PM

In mine, a user can (easily) mount but it is not auto mount.

So maybe the noauto gets replaced with auto to make it auto mount?

Code:

al@ep451337_32:~$ cat /etc/fstab
/dev/sda6        swap            swap        defaults        0  0
/dev/sda8        /                ext4        defaults        1  1
/dev/sda1        /boot            ext2        defaults        1  2
/dev/sda9        /mnt/sda_9      ext4        noauto,users    0  0
/dev/sdb1        /mnt/sdb_1      ext4        noauto,users    0  0
/dev/cdrom      /mnt/cdrom      auto        noauto,users,ro  0  0
/dev/fd0        /mnt/floppy      auto        noauto,users    0  0
devpts          /dev/pts        devpts      gid=5,mode=620  0  0
proc            /proc            proc        defaults        0  0
tmpfs            /dev/shm        tmpfs      defaults        0  0
al@ep451337_32:~$


GazL 11-04-2012 02:28 AM

"auto" in fstab simply means that the system will attempt to mount it when you issue a 'mount -a' (which gets done for you during boot). It has nothing to do with automatically mounting of removable media on insertion. That is usually done by the desktop environment/file-manager though udev,udisks, dbus tend to be involved.


All times are GMT -5. The time now is 10:19 AM.