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.