Mount: can & #39; t find cdrom in/etc/fstab or/etc/mtab, fstabmtab

Source: Internet
Author: User

Mount: can't find cdrom in/etc/fstab or/etc/mtab, fstabmtab

My linux OS class is CentOS-6.5
First, set the CD/DVD option in the Virtual Machine option settings, and check the Connect at power on option.
Select Use ISO image file in connection: select the directory address of the image file.
Then enter the command: mount/mnt/cdrom output error in the/root directory: mount: you can't find cdrom in/etc/fstab or/etc/mtab. There are two solutions:
1. Run the following command: mount-t iso9660/dev/cdrom/mnt/cdrom./dev/cdrom indicates that hdc is the mount disk of the image file.
At this time, enter the command: ls-l/mnt/cdrom and press enter to display all the files in the iso file you want to mount. Now, the image is mounted successfully.
2. Modify the/etc/fstab file
First, edit the file fstab command: vi/etc/fstab and append a line of content in the file:/dev/cdrom/mnt/cdrom iso9660 defaluts 0 0
Then create the/mnt/cdrom command in the/root directory: mkdir/mnt/cdrom. Run the command: mount/mnt/cdrom and then enter the command: ls-l/mnt/cdrom: Press enter to display all the files in the iso file you want to mount. Now, the image is mounted successfully.
You must select the image file to be mounted...

Related Article

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.