Install freedos in bochs and copy files from host and guest systems.

Source: Internet
Author: User
Install freedos in bochs, copy files in host and guest systems, Install freedos in bochs, and download freedos images (freedosiso) in host and guest systems to install bochs (245) to create a disk image bximage & amp; ndash; q & amp; ndash; hd & amp; ndash; modef bochs Install freedos, and Install freedos by copying files from host and guest systems, and the host and guest systems copy files to download the freedos image (freedos. iso) install bochs (2.4.5) to create a disk image bximage-q-hd-mode = flat-size = 200Mfreedos. img edits the bochs configuration file bochs sample file. in the/user/share/doc/bochs/sample directory, modify the following items in the sample file and rename it bochsrc- Freedosmemory: guest = 32 M, host = 32 M # Do not soft Drive # floppya: drawing 44 =/dev/fd0, status = inserted # optical drive, iso file path ata0-slave: type = cdrom, path =/xxx/freedos1.0.iso, status = inserted # ata0-master of the hard disk image file just created with bximage: type = disk, mode = flat, path =/xxx/freedos. img # Do not use serial ports # com1: enabled = 1, mode = term, dev =/dev/ttyS0 # Do not use parallel ports # parport1: enabled = 1, file = "/dev/lp0" start bochs, bochs-q-f. /bochsrc-freedos then enters the freedos installation interface to Install freedos. To create a blank disk, we need to partition it first. I only divided it into one partition, because in the bochs manual, there is a sentence about the host and guest copy files: the hard disk image access doesn 'twork if the image contains more than one partition. then restart, still select the first Install freedos (because the partition is just now, now formally installed) after the installation is complete, modify the # installation in bochsrc-freedos complete, no longer need the optical drive # ata0-slave: type = cdrom, path =/xxx/freedos1.0.iso, status = inserted # boot: cdrom # boot from hard disk: disk HOST and GUEST copy files to each other first stop bochs (it seems that bochs is on, the file is copied in the past, size is 0) sudo losetup/dev/loop0/xxx/f Reedos. img-o 32256 is a hard drive image file, therefore, you must add-o 32256 sudo mkdir/mnt/loopsudo mount-o rw-t vfat/dev/loop0/mnt/loopcd/mnt/loop, we can see the files under freedos, and then we can copy the files. However, sudo is required when copying the files, because it is the root permission.) the copy is complete, uninstall sudo umount/mnt/loopsudo losetup-d/dev/loop0 and restart bochs to view the copied files.
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.