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

Source: Internet
Author: User

Install freedos for bochs, copy files for host and guest systems, install freedos for bochs, and download freedos images for copy files for host and guest systems (freedos. iso) install bochs (2.4.5) to create a disk image bximage-q-hd-mode = flat-size = 200Mfreedos. the sample file for img to edit the bochs configuration file is modified in the sample file under the/user/share/doc/bochs/sample directory, and then renamed to bochsrc-freedosmemory: guest = 32 M, host = 32 M # Do not 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: 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 and installs freedos. This is not detailed. The first entry is because it is a blank disk, so we need to partition it first. I only divided it into one partition, 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 and select the first security item Install freedos (because it was just partition, now formally installed) after the installation is complete, modify bochsrc-freedos # installation is complete, no longer need to drive # ata0-slave: type = cdrom, path =/xxx/freedos1.0.iso, status = inserted # boot: cdrom # boot from the hard disk: Copy files from disk HOST and GUEST first stop bochs (it seems that when bochs is on, when the file is copied, the size value is 0) sudo losetup/dev/loop0/xxx/freedos. 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, you can see the files under freedos, and then you can copy the files, but copy the files. Sudo is required, because it is the root permission.) After the copy is completed, unmount sudo umount/mnt/loopsudo losetup-d/dev/loop0 and restart bochs to view the copied files.

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.