|
ql1307096
初级用户
 
积分 66
发帖 26
注册 2006-2-9
状态 离线
|
     『楼 主』:
获取磁盘镜像文件的c/h/s参数好东西!与大家分享
[已使用 LLM 解释]
DParam 2005
1. 这个工具可以方便得获取 PC 虚拟启动当中所需要的磁盘镜像文件的
c/h/s 参数。比如 Grub+memdisk, Bochs 的磁盘配置参数。
2. 使用方法
这个是 Windows GUI 程序,你需要的是双击我们的绿色十字图标即可。
然后使用界面上的“获取”按钮即可。
在随后的操作中你会被要求指定一个 .img, .ima 文件。当然,某些虚拟机
的磁盘镜像文件,比如 .vhd 也是可以被访问的。
最好,你会得知这是一个 hdd, 或者是一个 fdd 的磁盘镜像(当然也可
能是无效的磁盘镜像文件),以及它的 C/H/S 参数。
当我们用GRUB来引导IMG文件时,通常使用MEMDISK,但是如果这个IMG文件超过2.88M,就会出错,提示找不到文件,这是就需要指定CHS参数了!而这个工具正是为了取得IMG文件的CHS参数
为了找这样的软件,在一个论坛上被删了ID<img src="images/smilies/face-sad.png" align="absmiddle" border="0"> !希望有人用 得上
Last edited by ql1307096 on 2006-3-5 at 13:30 ]
DParam 2005
1. This tool can conveniently obtain the C/H/S parameters of the disk image file required for PC virtual boot. For example, the disk configuration parameters of Grub+memdisk, Bochs, etc.
2. Usage method
This is a Windows GUI program. You need to double-click our green cross icon. Then use the "Get" button on the interface.
In the subsequent operation, you will be asked to specify a .img, .ima file. Of course, some virtual machine disk image files, such as .vhd, can also be accessed.
Finally, you will know whether this is a hdd or a fdd disk image (it may also be an invalid disk image file), as well as its C/H/S parameters.
When we use GRUB to boot the IMG file, we usually use MEMDISK, but if this IMG file exceeds 2.88M, an error will occur, prompting that the file is not found. At this time, it is necessary to specify the CHS parameters! And this tool is exactly to obtain the CHS parameters of the IMG file
In order to find such software, an ID was deleted in a forum :(! I hope someone can use it.
Last edited by ql1307096 on 2006-3-5 at 13:30 ]
LLM 解释
原帖内容的技术补充与澄清
1. MEMDISK 对大镜像报错的真实原因
原帖提到“IMG文件超过2.88M时MEMDISK出错”,这一表述不准确:MEMDISK 本身支持大于2.88MB的镜像(如硬盘镜像或大容量软盘镜像),但错误通常源于镜像未包含正确的引导扇区或BIOS 对“超大软盘”的模拟限制。
2. DParam 工具的核心逻辑
DParam 获取 C/H/S 参数的原理是解析镜像的引导扇区(第0扇区):
- 软盘镜像的引导扇区偏移
0x0B-0x0D 固定存储 每扇区字节数(Bytes per Sector)、每磁道扇区数(Sectors per Track)、磁头数(Heads),C(柱面数)由 总大小 ÷ (每磁道扇区数 × 磁头数 × 每扇区字节数) 计算得出。
- 硬盘镜像的引导扇区偏移
0x1BE 开始的分区表中,每个分区项的 0x0C-0x0F 存储该分区的 C/H/S 结束地址,但需注意:硬盘镜像若未分区(如 raw 镜像),DParam 可能无法直接读取参数,需依赖镜像的“隐含扇区数”或工具内置的参数库推断。
3. 当年常见的误解与局限
-
“C/H/S 参数唯一”的误区:同一容量的镜像可能对应多组 C/H/S(如 10MB 镜像可设为 20柱面×10磁头×100扇区,或 40柱面×5磁头×100扇区),只要
柱面数×磁头数×每磁道扇区数×每扇区字节数 = 总容量 即可。DParam 给出的是引导扇区中记录的参数,而非唯一解。
-
虚拟机镜像的兼容性问题:原帖提到“.vhd 也可访问”,但 VHD 是微软的虚拟硬盘格式(包含元数据和压缩结构),早期 DParam 可能仅能解析未压缩的 raw 格式 VHD,对动态扩展或差异 VHD 会失效——这也是 Post #7 中用户反馈“部分镜像参数未知”的原因。
4. 后续讨论的补充价值
Post #5 推荐的 Avlgomgr 工具(新一代磁盘镜像启动工具),其优势在于自动适配镜像类型并生成 GRUB 配置,无需用户手动输入 C/H/S 参数,本质是封装了 MEMDISK 的参数逻辑与镜像解析规则,降低了操作门槛。
附件
1: GDParam.rar (2006-3-4 11:29, 93.48 KiB, 下载附件所需积分 1 点
,下载次数: 681)
|
|
2006-3-4 11:29 |
|
|
JonePeng
金牌会员
      D◎$ Fαп
积分 4562
发帖 1883
注册 2004-1-19 来自 广东广州
状态 离线
|
『第 2 楼』:
使用 LLM 解释/回答一下
原来还要这个好东西!建议楼主修改标题。
Oh, there's actually this great thing! It is suggested that the thread starter modify the title.
|

----====≡≡≡≡ 我的至爱,永远是MSDOS!≡≡≡≡====----
|
|
2006-3-4 17:08 |
|
|
雨露
管理员
          DOS非常爱好者
积分 6215
发帖 2601
注册 2006-1-20
状态 离线
|
|
2006-3-11 16:03 |
|
|
store88
中级用户
  
积分 416
发帖 125
注册 2005-6-9
状态 离线
|
|
2006-3-11 22:37 |
|
|
Gandalf
中级用户
   CPU
积分 362
发帖 96
注册 2004-7-8 来自 北京
状态 离线
|
|
2006-3-14 11:28 |
|
|
store88
中级用户
  
积分 416
发帖 125
注册 2005-6-9
状态 离线
|
『第 6 楼』:
使用 LLM 解释/回答一下
楼上的 不要谦虚了 呵呵
还是喜欢楼上做的
这个可以获取c/h/s 参数
貌似很有用
不知道可不可以把参数加到U盘里面呀
使U盘使用不同的启动方式
自己可是很不懂的
The person upstairs, don't be modest, hehe. Still like what the person upstairs made. This can obtain the c/h/s parameters. It seems quite useful. I don't know if the parameters can be added to the USB flash drive. Make the USB flash drive use different boot methods. I really don't understand.
|
|
2006-3-14 20:08 |
|
|
xugaohui
高级用户
   
积分 774
发帖 293
注册 2003-4-16 来自 湖北仙桃
状态 离线
|
『第 7 楼』:
使用 LLM 解释/回答一下
Originally posted by Gandalf at 2006-3-14 11:28 AM:
^_^,看到这个软件了。但是推荐大家尝试使用 Avlgomgr 来体验更完美的方案。
东西是很不错。可惜很多镜像的c/h/s参数都不能正确获得,显示为未知
Originally posted by Gandalf at 2006-3-14 11:28 AM:
^_^, saw this software. But I recommend everyone to try using Avlgomgr to experience a more perfect solution.
The thing is very good. Unfortunately, the c/h/s parameters of many images cannot be correctly obtained and are displayed as unknown
|
|
2006-3-16 11:21 |
|
|
cj000
新手上路

积分 10
发帖 9
注册 2006-3-21
状态 离线
|
『第 8 楼』:
使用 LLM 解释/回答一下
好东东,谢谢楼主的提供.
Good stuff, thanks to the LZ for providing.
|
|
2006-3-21 23:16 |
|
|
不得不爱
超级版主
         我爱DOS
积分 5310
发帖 2044
注册 2005-9-26 来自 四川南充
状态 离线
|
|
2006-4-18 19:20 |
|
|
jianxiao
初级用户
 
积分 33
发帖 9
注册 2005-11-12
状态 离线
|
|
2006-4-18 21:11 |
|
|
lishaomin
新手上路

积分 10
发帖 3
注册 2005-12-20
状态 离线
|
『第 11 楼』:
使用 LLM 解释/回答一下
好东西,我弄了半天的东西,用这个一下子就好了,谢谢!
Good stuff, the thing I worked on for a long time was fixed with this in a flash, thanks!
|
|
2006-4-22 14:44 |
|
|
michael007
新手上路

积分 6
发帖 3
注册 2006-4-17
状态 离线
|
|
2006-4-26 20:56 |
|
|
GONGXP
初级用户
 
积分 184
发帖 31
注册 2005-3-13
状态 离线
|
|
2006-4-26 23:18 |
|
|
chengf999
新手上路

积分 6
发帖 3
注册 2006-4-26
状态 离线
|
|
2006-4-26 23:24 |
|
|
不得不爱
超级版主
         我爱DOS
积分 5310
发帖 2044
注册 2005-9-26 来自 四川南充
状态 离线
|
|
2006-4-27 19:57 |
|