Implement AutoMount for optical drive and soft Drive in LINUX
Source: Internet
Author: User
Article title: implements AutoMount for optical drive and soft Drive in LINUX. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
Implementation method:
1. after installing Redhat Linux 6.0, run ntsysv and select the two configuration files of autofs. autofs in/etc/auto. misc and/etc/auto. master.
2./etc/auto. master defines the mount directory and the configuration file name required for the mount and the automatic umount time when the mount is idle. The following is the default configuration.
Note:
A. Make sure that/dev/cdrom points to the partition where your optical drive is located as a symbolic link:
[Jephe @ sh3/dev] $ ls cdrom-l
Lrwxrwxrwx 1 root 3 Aug 26 08:44 cdrom-> hdd
B. When the floppy disk is a windows 95-formatted vfat partition type, the installation directory/misc/floppy is set.
C. When the floppy disk is a Linux formatted ext2 partition type, the installation directory/misc/e2floppy is set.
4. if autofs has not been started, run/etc/rc. d/init. d/autofs start. if you have made any changes to the above two files, run/etc/rc. d/init. d/autofs restart.
5. after a disk is placed into the optical drive, you do not need to take any action to directly enter the directory/misc/cdrom. autofs will automatically mount the optical drive for you first. if you put a vfat-format floppy disk, you can
Cd/misc/floppy,
For a floppy disk in ext2 format, cd/misc/e2floppy. if they are not used for more than one minute, and the current directory is not automatically mounted/misc/cdrom,/misc/floppy,/misc/e2floppy, the system will automatically umount them.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service