In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article shows you how to solve the CentOS system automatically mount optical drive, the content is concise and easy to understand, absolutely can make your eyes bright, through the detailed introduction of this article, I hope you can get something.
I don't know if you have encountered this problem, that is, when you install the test database under the CentOS system, the CD-ROM drive can not be found. It can be found automatically before. The server is also a CentOS system, and the development library is also in the CentOS system. This problem has not occurred, although I know that linux has this problem all the time. Manual mount instead, the following error is reported: mount:can'tfindcdromin/etc/fstabor/etc/mtab
The solution to this problem in CentOS system is as follows:
1. By custom, the root user, set up the directory cdrom--mkdir/media/cdrom under the / media directory
two。 Modify the / etc/fstab file. Add the following content in the file * in order:
/ dev/cdrom/media/cdromautoro,noauto,user,exec00
3. Restart the CentOS system
4. Execute command: mount-tiso9660/dev/cdrom/media/cdrom finishes mounting the CD-ROM drive
5. CD-ROM contents can already be seen in CDRAMAGRAPHER CDRMX ls
LABEL=//ext3defaults11 LABEL=/boot1/bootext3defaults12 tmpfs/dev/shmtmpfsdefaults00 devpts/dev/ptsdevptsgid=5,mode=62000 sysfs/syssysfsdefaults00 proc/procprocdefaults00 LABEL=SWAP-sda11swapswapdefaults00 / dev/sda6/mnt/winEvfatdefaults00 / dev/sda8/mnt/winGntfsdefaults00
You can see that this file has six columns. The following is explained by a list of examples. It is assumed that you are familiar with the mount command:
1. The first column is the file system or storage device that needs to be mounted. Here is the G disk on my Windows with partition / dev/sda8.
two。 Column 2 is the mount point, which I choose to be / mnt/winG.
3. The third column specifies the type of file system or partition. My G disk is of NTFS type and is represented as ntfs under Linux.
Filetypes: Linuxfilesystems:ext2,ext3,jfs,reiserfs,reiser4,xfs,swap. Windows: vfat=FAT32,FAT16 ntfs=NTFS Note:ForNTFSrwntfs-3g CD/DVD/iso:iso9660 Networkfilesystems: nfs:server:/shared_directory/mnt/nfsnfs00 smb://win_box/shared_folder/mnt/sambasmbfsrw,credentials=/home/user_name/winbox-credentials.txt00 auto:Thefilesystemtype (ext3,iso9660,etc) itdetectedautomatically.Usuallyworks.Usedforremovabledevices (CD/DVD,Floppydrives,orUSB/Flashdrives) asthefilesystemmayvaryonthesedevices.
4. The fourth column is the mount option. Refer to manmount for details. Here are some common options:
Auto: the system mounts automatically. This is the default option for fstab.
Ro:read-only
Rw:read-write
Defaults:rw,suid,dev,exec,auto,nouser,andasync.
5. The fifth column is the dump option, which sets whether to allow the backup program dump to back up the file system. 0 is ignored and 1 is backup.
6. The sixth column is the fsck option, which tells the fsck program in what order to check the file system, and 0 is ignored.
Change noauto to auto
The above content is how to solve the problem of automatically mounting the optical drive in the CentOS system. Have you learned the knowledge or skills? If you want to learn more skills or enrich your knowledge reserve, you are welcome to follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.