找回密码
 立即注册
搜索
热搜: 活动 通知
查看: 1006|回复: 6

按照步骤启动BOCHS时遇到的问题~

[复制链接]

2

主题

5

回帖

152

积分

至尊会员

积分
152

至尊会员

发表于 2024-1-23 00:34:12 | 显示全部楼层 |阅读模式


ata0-0: could not open hard drive image file 'E:\disk\NewVirtualDisk.vhd'




我在网上查了一下,说让我把修改硬盘类型为flat模式,但我已经是flat模式,所以这个问题可能出在哪儿啊

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×

344

主题

255

回帖

2666

积分

管理员

积分
2666
发表于 2024-1-23 08:39:46 | 显示全部楼层
你检查虚拟硬盘所在的目录,应该有一个同名文件,但是是以.lock为后缀。删掉就好了。
如果你非正常退出Bochs,会产生这个文件。

2

主题

5

回帖

152

积分

至尊会员

积分
152

至尊会员

 楼主| 发表于 2024-1-23 16:35:09 | 显示全部楼层
站长 发表于 2024-1-23 08:39
你检查虚拟硬盘所在的目录,应该有一个同名文件,但是是以.lock为后缀。删掉就好了。
如果你非正常退出Boch ...

老师,我发现这个问题所在了,但是还是解决不了。具体情况如下:
当我删掉lock文件后,重新start打开,又会回到最初的那个步骤,并且会自动在文件夹里面又生成Lock文件。我把启动后的代码复制如下:
00000000000i[      ] reading configuration from bochsrc.bxrc
00000000000i[      ] Ignoring magic break points
libpng warning: iCCP: cHRM chunk does not match sRGB
00000000000i[      ] installing win32 module as the Bochs GUI
00000000000i[      ] Bochs x86 Emulator 2.7
00000000000i[      ]   Built from SVN snapshot on August  1, 2021
00000000000i[      ]   Timestamp: Sun Aug  1 10:07:00 CEST 2021
00000000000i[      ] System configuration
00000000000i[      ]   processors: 1 (cores=1, HT threads=1)
00000000000i[      ]   A20 line support: yes
00000000000i[      ] IPS is set to 4000000
00000000000i[      ] CPU configuration
00000000000i[      ]   SMP support: no
00000000000i[      ]   level: 6
00000000000i[      ]   APIC support: xapic
00000000000i[      ]   FPU support: yes
00000000000i[      ]   MMX support: yes
00000000000i[      ]   3dnow! support: no
00000000000i[      ]   SEP support: yes
00000000000i[      ]   SIMD support: sse2
00000000000i[      ]   XSAVE support: no
00000000000i[      ]   AES support: no
00000000000i[      ]   SHA support: no
00000000000i[      ]   MOVBE support: no
00000000000i[      ]   ADX support: no
00000000000i[      ]   x86-64 support: yes
00000000000i[      ]   1G paging support: no
00000000000i[      ]   MWAIT support: yes
00000000000i[      ]   VMX support: 1
00000000000i[      ] Optimization configuration
00000000000i[      ]   RepeatSpeedups support: yes
00000000000i[      ]   Fast function calls: yes
00000000000i[      ]   Handlers Chaining speedups: no
00000000000i[      ] Devices configuration
00000000000i[      ]   PCI support: i440FX i430FX i440BX
00000000000i[      ]   Network devices support: NE2000 E1000
00000000000i[      ]   Sound support: SB16 ES1370
00000000000i[      ]   USB support: UHCI OHCI EHCI xHCI
00000000000i[      ]   VGA extension support: vbe cirrus voodoo
00000000000i[IMG   ] Disk image modules
00000000000i[IMG   ]   flat concat sparse dll growing undoable volatile vmware3
00000000000i[IMG   ]   vmware4 vbox vpc vvfat
00000000000i[NETCTL] Networking modules
00000000000i[NETCTL]   null vnet slirp socket win32
00000000000i[SNDCTL] Sound drivers
00000000000i[SNDCTL]   dummy file win
00000000000i[USBCTL] Pluggable USB devices
00000000000i[USBCTL]   floppy mouse tablet keypad keyboard hub disk cdrom
00000000000i[USBCTL]   printer
00000000000i[MEM0  ] allocated memory at 000002401B00D040. after alignment, vector=000002401B00E000
00000000000i[MEM0  ] 32.00MB
00000000000i[MEM0  ] mem block size = 0x00020000, blocks=256
00000000000i[MEM0  ] rom at 0xfffe0000/131072 ('C:\Program Files\Bochs-2.7/BIOS-bochs-latest')
00000000000i[DEV   ] will paste characters every 100 iodev timer ticks
00000000000i[PLUGIN] init_dev of 'pci' plugin device by virtual method
00000000000i[DEV   ] i440FX PMC present at device 0, function 0
00000000000i[PLUGIN] init_dev of 'pci2isa' plugin device by virtual method
00000000000i[DEV   ] PIIX3 PCI-to-ISA bridge present at device 1, function 0
00000000000i[PLUGIN] init_dev of 'cmos' plugin device by virtual method
00000000000i[CMOS  ] Using local time for initial clock
00000000000i[CMOS  ] Setting initial clock to: Tue Jan 23 16:34:02 2024 (time0=1705998842)
00000000000i[PLUGIN] init_dev of 'dma' plugin device by virtual method
00000000000i[DMA   ] channel 4 used by cascade
00000000000i[PLUGIN] init_dev of 'pic' plugin device by virtual method
00000000000i[PLUGIN] init_dev of 'pit' plugin device by virtual method
00000000000i[PLUGIN] init_dev of 'vga' plugin device by virtual method
00000000000i[MEM0  ] Register memory access handlers: 0x0000000a0000 - 0x0000000bffff
00000000000i[VGA   ] interval=200000, mode=realtime
00000000000i[VGA   ] VSYNC using standard mode
00000000000i[MEM0  ] Register memory access handlers: 0x0000e0000000 - 0x0000e0ffffff
00000000000i[BXVGA ] VBE Bochs Display Extension Enabled
00000000000i[WINGUI] Desktop window dimensions: 2560 x 1440
00000000000i[WINGUI] Number of Mouse Buttons = 5
00000000000i[WINGUI] IME disabled
libpng warning: iCCP: cHRM chunk does not match sRGB
00000000000i[MEM0  ] rom at 0xc0000/38400 ('C:\Program Files\Bochs-2.7/VGABIOS-lgpl-latest')
00000000000i[PLUGIN] init_dev of 'floppy' plugin device by virtual method
00000000000i[DMA   ] channel 2 used by Floppy Drive
00000000000i[FLOPPY] Using boot sequence disk, cdrom, none
00000000000i[FLOPPY] Floppy boot signature check is enabled
00000000000i[PLUGIN] init_dev of 'acpi' plugin device by virtual method
00000000000i[DEV   ] ACPI Controller present at device 1, function 3
00000000000i[PLUGIN] init_dev of 'hpet' plugin device by virtual method
00000000000i[HPET  ] initializing HPET
00000000000i[MEM0  ] Register memory access handlers: 0x0000fed00000 - 0x0000fed003ff
00000000000i[PLUGIN] init_dev of 'ioapic' plugin device by virtual method
00000000000i[IOAPIC] initializing I/O APIC
00000000000i[MEM0  ] Register memory access handlers: 0x0000fec00000 - 0x0000fec00fff
00000000000i[IOAPIC] IOAPIC enabled (base address = 0xfec00000)
00000000000i[PLUGIN] init_dev of 'keyboard' plugin device by virtual method
00000000000i[PLUGIN] init_dev of 'harddrv' plugin device by virtual method
00000000000i[HD    ] HD on ata0-0: 'E:\disk\NewVirtualDisk.vhd', 'flat' mode
00000000000i[IMG   ] hd_size: 6144
00000000000i[HD    ] ata0-0: using specified geometry: CHS=4161/16/63 (sector size=512)
00000000000p[HD    ] >>PANIC<< ata0-0: specified geometry doesn't fit on disk image
libpng warning: iCCP: cHRM chunk does not match sRGB

344

主题

255

回帖

2666

积分

管理员

积分
2666
发表于 2024-1-23 17:54:21 | 显示全部楼层
ata0-0: using specified geometry: CHS=4161/16/63 (sector size=512)


--------------------------------
从错误信息上来看,你指定的硬盘参数与实际不符。
建议你重新生成VHD并指定正确的参数。

2

主题

5

回帖

152

积分

至尊会员

积分
152

至尊会员

 楼主| 发表于 2024-1-23 18:18:34 | 显示全部楼层
我重新创建了VHD,参数还是一样的,然后下面会跟上fixvhdw64.exe检测出来的信息。


本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×

344

主题

255

回帖

2666

积分

管理员

积分
2666
发表于 2024-1-23 19:29:52 | 显示全部楼层
x49383383 发表于 2024-1-23 18:18
我重新创建了VHD,参数还是一样的,然后下面会跟上fixvhdw64.exe检测出来的信息。




果不出吾之所料。

我在书上说过,在视频里也说过,磁盘映像类型选择flat。这个选择意味着,只能使用固定尺寸的vhd,不能使用动态vhd。

你创建的是动态vhd。这是不行的。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×

2

主题

5

回帖

152

积分

至尊会员

积分
152

至尊会员

 楼主| 发表于 2024-1-23 19:54:45 | 显示全部楼层
本帖最后由 x49383383 于 2024-1-23 19:58 编辑
站长 发表于 2024-1-23 19:29果不出吾之所料。

我在书上说过,在视频里也说过,磁盘映像类型选择flat。这个选择意味着,只能使用 ...

新版 VirtualBox 7.0 管理器里面没有提供这样的固定的选项,我截图两张来看,当时创建的时候就觉得有点奇怪为什么没有这个选项,但也没在意就直接创建了。我也去找找看新版的怎么去创建固定大小,会不会那个预先分配好空间就是固定~
经测试:那个预先分配全部空间就是固定大小……哎,这翻译变了个花样害死人。谢谢老师了~

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|鼠侠网 ( 吉ICP备19001332号 )

GMT+8, 2024-7-27 16:10 , Processed in 0.227476 second(s), 20 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表