Usage of mcopy in bochs + linux0.12

Source: Internet
Author: User

In bochs + linux0.12, some tool software such as winimage and mtools are required for file exchange with the virtual system. The file exchange method is described below.

1. Use the winimage tool to create an image file for the boot disk. The procedure is as follows:

1. Run winimage, select "options"> "Settings", select the "image" Settings page, and set the compression rate to none (that is, drag the indicator to the leftmost ).

2. Create an image file. Choose "file"> "new" from the menu ". In the displayed dialog box, select the format of Capacity Question 1.44mb.

3. Select the image-> enable Sector properties menu and click the MS-DOS button in the dialog box.

4. Save the file. Select the "file"> "save" menu, select the Save type as "so file (*. *)", and set the file name to. IMG.

Note:The size of the standard 1474560 MB Floppy disk should be bytes (you can view the file attributes). You can follow the above steps strictly; otherwiseParts may be larger than 1474560 bytes.

 

2. Use mtools to Extract files from a virtual system

1. Enter the linux0.12 system, click the icon in the toolbar, click "Browse..." after path, and select the imgfile created in step 1. Click OK. 2. in Linux 0.12, enter the command: # mcopy hello. c B:

You can write the file hello. c into the file imgfile. Command:

# Mcopy B: Hello. C.

Copy hello. C to the current directory from the imgfile. Note: If the "reset-floppy called" error occurs when you use the preceding command, Run "mdir A:" first, then "mdir B:", and then run "mcopy.

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.