View the posts on Oldlinux, see some netizens asking how to create file systems and file operations in the IMG file. One of the solutions is to simulate a C disk IMG with Bochs, which has an operating system in this IMG. Then hang a D disk img (empty) and then format the D disk with the operating system of the C drive. Then create a file system. In fact, this method is simple.
Then I am just looking for the experience of rich my Linux development, I intend to write a software that can perform file operations and sector operations for IMG.