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 > Servers >
Share
Shulou(Shulou.com)06/01 Report--
Today, I will talk to you about how to complete the Linux production of floppy disks and CD mirrors. many people may not know much about it. In order to make you understand better, the editor has summarized the following contents for you. I hope you can get something according to this article.
The Linux operating system, which has not been around for a long time, is more and more loved by many computer users, mainly because of its powerful practicability. His rapid development surprised Microsoft. So many people began to learn Linux. Learn Linux, you may encounter how to Linux floppy disk and CD mirror problem, here will introduce how to Linux floppy disk and CD mirror problem solution.
When sharing files with virtual machines under Linux, I found that not all virtual machines support (or are well supported) sharing files between hosts and virtual machine operating systems, so there are a lot of problems when file sharing is needed. However, because almost all operating systems support read-write floppy disks and CDs, there is a more circuitous way to solve this problem: create a floppy disk or CD-ROM image file, the virtual machine opens it with a read-write floppy / CD drive, and the Linux host mounts it directly, so that the file can be used as a shared directory. However, when the operating system of the virtual machine is strong enough, it is possible to use virtual network transmission.
This involves how to create a soft / CD image of the data. The CD image we usually mount is basically for read-only purposes and has been set up by others. How to use the Linux command to create a soft / CD image of data?
It is easy to create a CD image, just use the following command:
Genisoimage-o data.iso / data/yourdir/*
This can directly create a CD image of all the files under / data/yourdir/. But one drawback to using CD mirroring is that it is read-only, so files can only be shared from one direction (if the system on the virtual machine does not support burning CD ^ _ ^).
Create a floppy disk image:
In Writing x86 PC Bootloader With Free Software, I mentioned how to create a boot floppy disk image, but this floppy disk image can only be used to boot the computer, not to store data. Because it is not formatted, it cannot be mounted, so the main task is to format it.
First, generate a blank floppy disk image:
Dd if=/dev/zero of=data.img bs=512 count=2880
Use the losetup command to use data.img as a loop device:
Sudo losetup / dev/loop0 data.img
Then, format the loop device:
Sudo mkfs.msdos / dev/loop0
Check the file system:
Sudo fsck.msdos / dev/loop0
Delete loop device:
Sudo losetup-d / dev/loop0
At this point, data.img has been formatted and can be used as a floppy disk image, such as mounting to mountdir with sudo mount-o loop data.img mountdir/. After setting certain permissions, use the virtual machine to open the floppy disk image, and you can use the image as a shared directory. Although the file is only 1.44m in size, it can meet the needs at some point.
In this way, you have successfully completed the Linux production of floppy disks and CD images.
After reading the above, do you have any further understanding of how to make floppy disks and CD images with Linux? If you want to know more knowledge or related content, please follow the industry information channel, thank you for your support.
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.