bochs 运行时不识别硬盘镜像的问题原因==PANIC could not open har...

bochs 运行时不识别硬盘镜像的问题原因==PANIC could not open hard disk

今天用 macports 安装了 bochs 2.4.5 , 然后制作了一个10M的硬盘镜像, 结果在配置好之后启动 bochs 却出现无法打开的错误: PANIC could not open hard disk

开始百思不得其解, 最后终于想到: 很可能是因为忘记加读写权限, 如下:

Air:bochs admin$ sudo chmod 777 hd10c.img
Password:
Air:bochs admin$ ls -al
total 234392
drwxr-xr-x  19 root   admin        646  6 19 11:44 .
drwxr-xr-x  62 root   admin       2108  6 19 10:35 ..
-rw-r--r--   1 root   admin     131072  6 19 10:35 BIOS-bochs-latest
-rw-r--r--   1 root   admin      65536  6 19 10:35 BIOS-bochs-legacy
-rwxr-xr-x@  1 admin  admin    1474560  4  5  2004 DOS71_1.IMG
-rwxr-xr-x@  1 admin  admin    1474560  4  5  2004 DOS71_2.IMG
-rw-r--r--   1 root   admin      32768  6 19 10:35 VGABIOS-elpin-2.40
-rw-r--r--   1 root   admin        454  6 19 10:35 VGABIOS-elpin-LICENSE
-rw-r--r--   1 root   admin       8227  6 19 10:35 VGABIOS-lgpl-README
-rw-r--r--   1 root   admin      40448  6 19 10:35 VGABIOS-lgpl-latest
-rw-r--r--   1 root   admin      35840  6 19 10:35 VGABIOS-lgpl-latest-cirrus
-rw-r--r--   1 root   admin      35840  6 19 10:35 VGABIOS-lgpl-latest-cirrus-debug
-rw-r--r--   1 root   admin      41472  6 19 10:35 VGABIOS-lgpl-latest-debug
-rw-r--r--   1 root   admin      43727  6 19 11:24 bochsrc.org.txt
-rw-r--r--   1 root   admin      44032  6 19 12:42 bochsrc.txt
-rw-r--r--   1 root   admin  104767488  6 19 11:42 hd100c.img
-rwxrwxrwx   1 root   admin   10321920  6 19 11:44 hd10c.img
drwxr-xr-x  15 root   admin        510  6 19 10:35 keymaps
-rwxrwxrwx   1 root   admin    1474560  6 19 10:43 os-a.img
Air:bochs admin$ sudo chmod 777 hd100c.img
Air:bochs admin$ ls -al
total 234392
drwxr-xr-x  19 root   admin        646  6 19 11:44 .
drwxr-xr-x  62 root   admin       2108  6 19 10:35 ..
-rw-r--r--   1 root   admin     131072  6 19 10:35 BIOS-bochs-latest
-rw-r--r--   1 root   admin      65536  6 19 10:35 BIOS-bochs-legacy
-rwxr-xr-x@  1 admin  admin    1474560  4  5  2004 DOS71_1.IMG
-rwxr-xr-x@  1 admin  admin    1474560  4  5  2004 DOS71_2.IMG
-rw-r--r--   1 root   admin      32768  6 19 10:35 VGABIOS-elpin-2.40
-rw-r--r--   1 root   admin        454  6 19 10:35 VGABIOS-elpin-LICENSE
-rw-r--r--   1 root   admin       8227  6 19 10:35 VGABIOS-lgpl-README
-rw-r--r--   1 root   admin      40448  6 19 10:35 VGABIOS-lgpl-latest
-rw-r--r--   1 root   admin      35840  6 19 10:35 VGABIOS-lgpl-latest-cirrus
-rw-r--r--   1 root   admin      35840  6 19 10:35 VGABIOS-lgpl-latest-cirrus-debug
-rw-r--r--   1 root   admin      41472  6 19 10:35 VGABIOS-lgpl-latest-debug
-rw-r--r--   1 root   admin      43727  6 19 11:24 bochsrc.org.txt
-rw-r--r--   1 root   admin      44032  6 19 12:42 bochsrc.txt
-rwxrwxrwx   1 root   admin  104767488  6 19 11:42 hd100c.img
-rwxrwxrwx   1 root   admin   10321920  6 19 11:44 hd10c.img
drwxr-xr-x  15 root   admin        510  6 19 10:35 keymaps
-rwxrwxrwx   1 root   admin    1474560  6 19 10:43 os-a.img
Air:
加了读写权限后, 果然一切 OK

你可能感兴趣的:(HD,panic,无法打开,bochs)