I recently started to read the book "write your own operating system", and I found that the boot disk for the system is a floppy disk! That sweat in my heart!
Today, they are all USB flash drives. So we are considering using a USB flash drive.
Start the following steps:
1. Since the book says that the floppy disk should be used as the boot disk, I will similarly make the USB disk as the boot disk. After finding usboot for half a day on the internet, I used it to create a boot disk for my USB flash drive.
2. Write the compiled boot. binfile to the USB flash drive using the absolute sector tool. Similarly, winhex is found on the Internet (there is also ultraiso, this is useless), but this key step is that you do not know how to use winhex to write binfiles into the USB flash disk. You can try it out...
After two hours, I still failed. So I thought, could I use a virtual floppy disk?
Well, let's start looking for ideas again.
Finally, I found someone in the same predicament as me. His solution was to use a virtual floppy disk to write the BIND file to the image file. in IMG, And then mount the most Startup file to a virtual floppy disk, you can achieve your first operating system in name ---- hello, OS world!
The detailed method is as follows:
1. Write the BIND file to the tinix. imgfile provided by the author using floppy writer.
2. Create a virtual machine in VMware (Virtual PC can also be used). Be sure to select other for both the operating system and version.
3. Edit VM settings in VMware. For details, see:
Note the floppy disk settings:
If you have two virtual systems, you need to change the settings of the virtual Optical Drive.
Start your system.
The following is the connection between two similar articles, and I have also taken the exam.
Virtual Machine VMware: http://wenku.baidu.com/view/48383d1614791711cc79172f.html
Virtualbox: http://student.csdn.net/space.php? Uid = 97077 & Do = Blog & id = 26069
Writing the operating system by yourself-personal practices