In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly introduces how to use linux virtual optical drive, which has certain reference value and can be used for reference by friends who need it. I hope you will learn a lot after reading this article. Next, let the editor take you to learn about it.
To use a virtual optical drive under Linux, you don't need any virtual optical drive software at all. You can do it with the mount command.
1. Make the CD into an iso file
Cp / dev/cdrom XXXXX.iso
XXXXX.iso is the image file you named. After executing this command, the entire CD can be made into an iso file. XXXXX.iso
You can add the path before.
two。 Load the iso file on your hard drive to the CD (or virtual optical drive).
Mount-t iso9660-o loop / * / XXXXX.iso / mnt/iso
3. If you install the files provided by the system disk, such as adding and deleting programs, you may be prompted to insert the CD, but we do not have a CD, only a mirror image, what should we do?
For Redhat, mount iso first and then execute
Redhat-install-packages-isodir=/mnt/iso
4. General situation virtual optical drive
Use losetup to check the usage of loop devices, and use losetup-f to find the first available device.
Rm-rf / dev/cdrom # remove the optical drive ln / dev/loop7 / dev/cdromlosetup / dev/loop7 / * / XXXXX.isomount / dev/cdrom / mnt/cdrom
Then you look at the iso file, has it become a virtual optical drive?
Cancel this CD-ROM drive:
Losetup-d / dev/loop7
If you change the disk:
Just transfer the iso association to / dev/loop
Losetup / dev/loop7 / * / XXXXX.iso Thank you for reading this article carefully. I hope it will be helpful for everyone to share the contents of linux virtual optical drive. At the same time, I also hope you will support us, pay attention to the industry information channel, and find out if you encounter problems. Detailed solutions are waiting for you!
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.