In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article mainly introduces the linux how to mount the CD-ROM drive, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let the editor take you to understand it.
Linux's hardware devices are in the / dev directory, and the CD-ROM drive is also one of them.
/ dev/cdrom represents the CD-ROM drive. The method of mounting the CD-ROM drive is as follows (as root):
The code is as follows:
Mkdir / mnt/cdrom
Mount-t auto-o ro / dev/cdrom / mnt/cdrom # can be hung automatically without adding parameters.
The following is the screen copy of the operation:
The code is as follows:
Linux@cdyemail:/$ ls / mnt # check to see if there is a cdrom directory under mnt. This is a random directory.
Cdrom iso usb winc wind
Linux@cdyemail:/$ mount / dev/cdrom / mnt/cdrom # mount found no permissions
Mount: only root can do this
Linux@cdyemail:/$ su # switches to the root user, or you can use sudo to get root permissions.
Password:
Root@cdyemail:/# mount-t auto-o ro / dev/cdrom / mnt/cdrom #-t auto type automatic,-o ro read-only mode
Root@cdyemail:/# ls-l / mnt/cdrom # View the contents of the CD
The total dosage is 3464
-root 2010-09-28 19:27 autorun.inf
Dr-xr-xr-x 3 root root 2048 2010-09-28 19:28 boot
Dr-xr-xr-x 2 root root 2048 2010-09-28 19:28 casper
Dr-xr-xr-x 3 root root 2048 2010-09-28 19:28 dists
Dr-xr-xr-x 2 root root 2048 2010-09-28 19:28 install
Dr-xr-xr-x 2 root root 16384 2010-09-28 19:28 isolinux
1 root root 4880 2010-09-28 19:28 md5sum.txt
Dr-xr-xr-x 2 root root 2048 2010-09-28 19:28 pics
Dr-xr-xr-x 4 root root 2048 2010-09-28 19:28 pool
Dr-xr-xr-x 2 root root 2048 2010-09-28 19:28 preseed
-root 237 2010-09-28 19:28 README.diskdefines
Lr-xr-xr-x 1 root root 1 2010-09-28 19:28 ubuntu->.
2 root root 2037229 2010-06-04 19:27 usb-creator.exe
1 root root 1472825 2010-09-01 20:04 wubi.exe
Root@cdyemail:/# umount / mnt/cdrom # remove the mounted CD-ROM drive
Root@cdyemail:/# eject / dev/cdrom # eject CD-ROM drive
Root@cdyemail:/#
Attached:
Iso image files can be mounted
The code is as follows:
Mount-t iso9660-o loop iso file / mnt/iso
Thank you for reading this article carefully. I hope the article "how to mount a CD-ROM drive on linux" shared by the editor will be helpful to you. At the same time, I also hope you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!
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.