From IT Mission Linux Tips, Hacks, Tutorials, Howtos - Itmission.org

Main: Auto-Mount-CDROM-with-autofs



@virtual, load: 2.40] (Sun Oct 12 - 03:14:23)

/misc $ head /etc/auto.master 
#
# 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
#
# NOTE: mounts done from a hosts map will be mounted with the
#	"nosuid" and "nodev" options unless the "suid" and "dev"

virtual, load: 2.40] (Sun Oct 12 - 03:14:42)
/misc $ cat /etc/auto.misc 
#
# 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 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

@virtual, load: 2.40] (Sun Oct 12 - 03:14:51)
/misc $ cat /etc/yum.repos.d/rhel.repo 
[cdrepo]
name="repo on cd"
baseurl=file:///misc/cd
gpgcheck=0
enable=1
@virtual, load: 2.40] (Sun Oct 12 - 03:15:22)
/misc $ 



Retrieved from http://www.itmission.org/Main/Auto-Mount-CDROM-with-autofs
Page last modified on October 12, 2014, at 10:19 AM