Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

记录一下 lab2 实操过程出现的问题及其解决办法 #2

Closed
rust17 opened this issue Oct 11, 2021 · 0 comments
Closed

记录一下 lab2 实操过程出现的问题及其解决办法 #2

rust17 opened this issue Oct 11, 2021 · 0 comments

Comments

@rust17
Copy link

rust17 commented Oct 11, 2021

环境:ubuntu 16.04

  1. 编写 MBR
  • 现象:输入
qemu-system-i386 -hda hd.img -serial null -parallel stdio 

无法启动 qemu,提示

WARNING: Image format was not specified for 'hd.img' and probing guessed raw.
         Automatically detecting the format is dangerous for raw images, write operations on block 0 will be restricted.
         Specify the 'raw' format explicitly to remove the restrictions.
Could not initialize SDL(No available video device) - exiting

原因:提示已经很清楚了,需要换一种指明格式的写法输入命令:

qemu-system-i386 -drive file=hd.img,format=raw,index=0,media=disk -serial null -parallel stdio -curses

-drive 那一串跟 -hda 是一个意思,只是写法形式不一样,后面加的 -curses 是为了解决 Could not initialize SDL(No available video device) - exiting,但是不知道如何在 mac 下退出 -curses 模式,只能 kill 掉 qemu 进程

@rust17 rust17 closed this as completed Oct 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant