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
開始百思不得其解, 最後終於想到: 很可能是因為忘記加讀寫權限, 如下:
01
Air:bochs admin$ sudo chmod 777 hd10c.img
02
Password:
03
Air:bochs admin$ ls -al
04
total 234392
05
drwxr-xr-x 19 root admin 646 6 19 11:44 .
06
drwxr-xr-x 62 root admin 2108 6 19 10:35 ..
07
-rw-r--r-- 1 root admin 131072 6 19 10:35 BIOS-bochs-latest
08
-rw-r--r-- 1 root admin 65536 6 19 10:35 BIOS-bochs-legacy
09
-rwxr-xr-x@ 1 admin admin 1474560 4 5 2004 DOS71_1.IMG
10
-rwxr-xr-x@ 1 admin admin 1474560 4 5 2004 DOS71_2.IMG
11
-rw-r--r-- 1 root admin 32768 6 19 10:35 VGABIOS-elpin-2.40
12
-rw-r--r-- 1 root admin 454 6 19 10:35 VGABIOS-elpin-LICENSE
13
-rw-r--r-- 1 root admin 8227 6 19 10:35 VGABIOS-lgpl-README
14
-rw-r--r-- 1 root admin 40448 6 19 10:35 VGABIOS-lgpl-latest
15
-rw-r--r-- 1 root admin 35840 6 19 10:35 VGABIOS-lgpl-latest-cirrus
16
-rw-r--r-- 1 root admin 35840 6 19 10:35 VGABIOS-lgpl-latest-cirrus-debug
17
-rw-r--r-- 1 root admin 41472 6 19 10:35 VGABIOS-lgpl-latest-debug
18
-rw-r--r-- 1 root admin 43727 6 19 11:24 bochsrc.org.txt
19
-rw-r--r-- 1 root admin 44032 6 19 12:42 bochsrc.txt
20
-rw-r--r-- 1 root admin 104767488 6 19 11:42 hd100c.img
21
-rwxrwxrwx 1 root admin 10321920 6 19 11:44 hd10c.img
22
drwxr-xr-x 15 root admin 510 6 19 10:35 keymaps
23
-rwxrwxrwx 1 root admin 1474560 6 19 10:43 os-a.img
24
Air:bochs admin$ sudo chmod 777 hd100c.img
25
Air:bochs admin$ ls -al
26
total 234392
27
drwxr-xr-x 19 root admin 646 6 19 11:44 .
28
drwxr-xr-x 62 root admin 2108 6 19 10:35 ..
29
-rw-r--r-- 1 root admin 131072 6 19 10:35 BIOS-bochs-latest
30
-rw-r--r-- 1 root admin 65536 6 19 10:35 BIOS-bochs-legacy
31
-rwxr-xr-x@ 1 admin admin 1474560 4 5 2004 DOS71_1.IMG
32
-rwxr-xr-x@ 1 admin admin 1474560 4 5 2004 DOS71_2.IMG
33
-rw-r--r-- 1 root admin 32768 6 19 10:35 VGABIOS-elpin-2.40
34
-rw-r--r-- 1 root admin 454 6 19 10:35 VGABIOS-elpin-LICENSE
35
-rw-r--r-- 1 root admin 8227 6 19 10:35 VGABIOS-lgpl-README
36
-rw-r--r-- 1 root admin 40448 6 19 10:35 VGABIOS-lgpl-latest
37
-rw-r--r-- 1 root admin 35840 6 19 10:35 VGABIOS-lgpl-latest-cirrus
38
-rw-r--r-- 1 root admin 35840 6 19 10:35 VGABIOS-lgpl-latest-cirrus-debug
39
-rw-r--r-- 1 root admin 41472 6 19 10:35 VGABIOS-lgpl-latest-debug
40
-rw-r--r-- 1 root admin 43727 6 19 11:24 bochsrc.org.txt
41
-rw-r--r-- 1 root admin 44032 6 19 12:42 bochsrc.txt
42
-rwxrwxrwx 1 root admin 104767488 6 19 11:42 hd100c.img
43
-rwxrwxrwx 1 root admin 10321920 6 19 11:44 hd10c.img
44
drwxr-xr-x 15 root admin 510 6 19 10:35 keymaps
45
-rwxrwxrwx 1 root admin 1474560 6 19 10:43 os-a.img
46
Air:
加了讀寫權限後, 果然一切 OK