如何在vmware中启动?
我在 osdev wiki 中遇到了这两行。
nasm kernel.asm -f bin -o kernel.bin
dd if=kernel.bin of=/dev/fd0
它将内核二进制文件复制到软盘。这是否意味着软盘可以启动?我不想创建可启动软盘,而是想创建一个可以在 vmware 中启动的 iso 映像。是否可以?如果可以的话,该怎么做呢?请用描述来解释。提前致谢。
I came across these two lines in osdev wiki.
nasm kernel.asm -f bin -o kernel.bin
dd if=kernel.bin of=/dev/fd0
It copies the kernel binary to a flopy. Does this means the flopy becomes bootable? I don't want to create a bootable flopy , instead of that I want to create a iso image by which I can boot in vmware. is it possible? If possible , how to do it? Kindly explain with description. Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Kernel.bin是引导加载程序,1.44mb软盘的第一个扇区是引导扇区。
因此,当您写入时(在本例中使用 dd),它会将数据连续写入第一个扇区。
根据我的经验,查找 qEmu。我手边没有它,但是您可以使用它完美地引导引导加载程序,而无需转换为 img 或 iso。
Kernel.bin is a bootloader, and the first sector of a 1.44mb floppy disk is the boot sector.
So when you write (using dd in this case) it serially writes the data to the first sector onwards.
From my experience, look up qEmu. I don't have it to hand, but you can boot bootloaders using that perfectly without converting to img or iso.
运行上面的代码后,您可以简单地使用下面的命令来创建软盘的映像
(以 root 身份执行)
您应该能够使用虚拟机从 Image.img 启动。
After you've run the above code, you can simply use the command below to create an image of your floppy disk,
(do it as root)
You should be able to boot from the Image.img using a virtual machine.