|
windrv
中级用户
  
积分 385
发帖 118
注册 2003-11-11
状态 离线
|
『第 16 楼』:
使用 LLM 解释/回答一下
以下是引用不点在2004-9-4 18:25:37的发言:
我还没有碰到仿真 C: 驱动器失败的情况.
要仿真 (hd0), 所用的 img 文件必须包含一个 MBR 作为第一扇区, 没有 MBR 的 IMG 是无法仿真的.
其实没有 MBR 也可以, 比如一个全部为 00 字节的 img 文件, 也可以用来仿真硬盘:
map --unsafe-boot --sectors-per-track=63 --heads-per-cylinder=255 HD.IMG (hd0)
但你用 chainloader (fd0)+1 和 boot 命令进入操作系统之后, 操作系统将认为该盘未经过分区, 于是不承认该逻辑盘的存在.
你用软盘进入 DOS 后, 运行 FDISK 和 FORMAT 可以对 HD.IMG 进行分区和格式化操作.
Dear Tinybit,
Contrary to what you have said about mapping a disk file as C:, we have been able to boot from such disk file as C: and use it both under DOS and Win9x. And the disk file is bootable and formatted beforehand.
The following is a quote from Budian at 18:25:37 on September 4, 2004:
I haven't encountered a situation where the simulation of the C: drive failed.
To simulate (hd0), the img file used must contain an MBR as the first sector. An IMG without an MBR cannot be simulated.
In fact, it's also possible without an MBR. For example, an img file with all 00 bytes can also be used to simulate a hard disk:
map --unsafe-boot --sectors-per-track=63 --heads-per-cylinder=255 HD.IMG (hd0)
But after you use chainloader (fd0)+1 and the boot command to enter the operating system, the operating system will think that the disk is not partitioned, so it will not recognize the existence of the logical disk.
After you enter DOS with a floppy disk, you can run FDISK and FORMAT to partition and format HD.IMG.
Dear Tinybit,
Contrary to what you have said about mapping a disk file as C:, we have been able to boot from such disk file as C: and use it both under DOS and Win9x. And the disk file is bootable and formatted beforehand.
|
|
2004-9-8 00:00 |
|
|
不点
银牌会员
     不甘寂寞的人
积分 2491
发帖 1115
注册 2003-9-24
状态 离线
|
『第 17 楼』:
使用 LLM 解释/回答一下
We have been successful in some occasions of using the 'map' command on NTFS partition. But there are errors sometimes.
Could
you tell us in which source file and where therein the 'map' command
can be found as well as the NTFS support module so that we understand
more about how the bug comes about?
map 命令在 builtins.c 文件中,但该命令和 NTFS 无关(没有直接关系),所以,可能无需修改它。
NTFS 支持模块是 fsys_ntfs.c 文件,我猜想,如果有 BUG 的话,很可能就是在这个文件里面了。
Contrary to what you have said about mapping a disk file as C:, we have
been able to boot from such disk file as C: and use it both under DOS
and Win9x. And the disk file is bootable and formatted beforehand.
是的,只要 img 文件中有 MBR,你确实可以顺利地用它来仿真硬盘。
We have been successful in some occasions of using the 'map' command on NTFS partition. But there are errors sometimes.
Could
you tell us in which source file and where therein the 'map' command
can be found as well as the NTFS support module so that we understand
more about how the bug comes about?
The 'map' command is in the builtins.c file, but this command has no direct relation to NTFS, so there may be no need to modify it.
The NTFS support module is the fsys_ntfs.c file. I guess that if there is a BUG, it is very likely in this file.
Contrary to what you have said about mapping a disk file as C:, we have
been able to boot from such disk file as C: and use it both under DOS
and Win9x. And the disk file is bootable and formatted beforehand.
Yes, as long as there is an MBR in the img file, you can indeed use it smoothly to simulate a hard disk.
|

因为我们亲手创建,这个世界更加美丽。 |
|
2004-9-10 00:00 |
|
|
windrv
中级用户
  
积分 385
发帖 118
注册 2003-11-11
状态 离线
|
『第 18 楼』:
使用 LLM 解释/回答一下
以下是引用不点在2004-9-10 17:35:50的发言:
We have been successful in some occasions of using the 'map' command on NTFS partition. But there are errors sometimes.
Could
you tell us in which source file and where therein the 'map' command
can be found as well as the NTFS support module so that we understand
more about how the bug comes about?
map 命令在 builtins.c 文件中,但该命令和 NTFS 无关(没有直接关系),所以,可能无需修改它。
NTFS 支持模块是 fsys_ntfs.c 文件,我猜想,如果有 BUG 的话,很可能就是在这个文件里面了。
Contrary to what you have said about mapping a disk file as C:, we have
been able to boot from such disk file as C: and use it both under DOS
and Win9x. And the disk file is bootable and formatted beforehand.
是的,只要 img 文件中有 MBR,你确实可以顺利地用它来仿真硬盘。
Dear Tinybit,
Thank you for your advice.
Is it possible that the routine of checking contiguous file for the 'map' command cannot handle big numbers when the partition size of the hard disk is too large?
We are in fact able to boot up such contiguous files on partitions of several gigabytes.
The following is a quote from Budian at 17:35:50 on September 10, 2004:
We have been successful in some occasions of using the 'map' command on NTFS partition. But there are errors sometimes.
Could
you tell us in which source file and where therein the 'map' command
can be found as well as the NTFS support module so that we understand
more about how the bug comes about?
The 'map' command is in the builtins.c file, but this command is not related to NTFS (no direct relationship), so there may be no need to modify it.
The NTFS support module is the fsys_ntfs.c file. I conjecture that if there is a BUG, it is very likely in this file.
Contrary to what you have said about mapping a disk file as C:, we have
been able to boot from such disk file as C: and use it both under DOS
and Win9x. And the disk file is bootable and formatted beforehand.
Yes, as long as there is an MBR in the img file, you can indeed use it smoothly to simulate a hard disk.
Dear Tinybit,
Thank you for your advice.
Is it possible that the routine of checking contiguous file for the 'map' command cannot handle big numbers when the partition size of the hard disk is too large?
We are in fact able to boot up such contiguous files on partitions of several gigabytes.
|
|
2004-9-10 00:00 |
|
|
不点
银牌会员
     不甘寂寞的人
积分 2491
发帖 1115
注册 2003-9-24
状态 离线
|
『第 19 楼』:
使用 LLM 解释/回答一下
是的, 确实存在 BIG NUMBER 问题.
GRUB 曾经把扇区总数定义为 int 也就是有符号的整数. 新近的版本中已经更正为 unsigned int 了.
然而 GRUB 总是使用 4 字节来表示整数, 所以, 如果你的扇区号码超过 4 字节的表示范围的话, 那么就会出现各种错误.
这是 GNU GRUB 的问题, 我不曾修正过它. 所有与此有关的 BUG 都是有 GNU 的管理者来修正的.
Yes, there is indeed a BIG NUMBER problem.
GRUB once defined the total number of sectors as int, which is a signed integer. In recent versions, it has been corrected to unsigned int.
However, GRUB always uses 4 bytes to represent integers. So, if your sector number exceeds the representation range of 4 bytes, various errors will occur.
This is a problem of GNU GRUB, and I haven't fixed it. All related BUGs are to be fixed by the managers of GNU.
|

因为我们亲手创建,这个世界更加美丽。 |
|
2004-9-11 00:00 |
|
|
windrv
中级用户
  
积分 385
发帖 118
注册 2003-11-11
状态 离线
|
『第 20 楼』:
使用 LLM 解释/回答一下
以下是引用不点在2004-9-11 19:20:34的发言:
是的, 确实存在 BIG NUMBER 问题.
GRUB 曾经把扇区总数定义为 int 也就是有符号的整数. 新近的版本中已经更正为 unsigned int 了.
然而 GRUB 总是使用 4 字节来表示整数, 所以, 如果你的扇区号码超过 4 字节的表示范围的话, 那么就会出现各种错误.
这是 GNU GRUB 的问题, 我不曾修正过它. 所有与此有关的 BUG 都是有 GNU 的管理者来修正的.
Dear Tinybit,
According to your advice, I have used the 'blocklist' command to check that file which fails to be 'mapped', the result is:
blocklist (hd0,0)/part.img
(hd0,0)24810224+11671
The 'blocklist' commands seems to implement correctly and indicates that the image file is in one contiguous block. But the 'map' command fails to load the file.
Is it related to the GNU GRUB problem you referred to above?
Could the 'map' command handle this issue just like the 'blocklist' command does?
The following is the statement by Budian at 19:20:34 on September 11, 2004:
Yes, there is indeed a BIG NUMBER problem.
GRUB once defined the total number of sectors as int, which is a signed integer. In recent versions, it has been corrected to unsigned int.
However, GRUB always uses 4 bytes to represent integers. So, if your sector number exceeds the representation range of 4 bytes, various errors will occur.
This is a problem of GNU GRUB, and I haven't corrected it. All BUGs related to this are to be corrected by the managers of GNU.
Dear Tinybit,
According to your advice, I have used the 'blocklist' command to check that file which fails to be'mapped', the result is:
blocklist (hd0,0)/part.img
(hd0,0)24810224+11671
The 'blocklist' commands seems to implement correctly and indicates that the image file is in one contiguous block. But the'map' command fails to load the file.
Is it related to the GNU GRUB problem you referred to above?
Could the'map' command handle this issue just like the 'blocklist' command does?
|
|
2004-9-13 00:00 |
|
|
不点
银牌会员
     不甘寂寞的人
积分 2491
发帖 1115
注册 2003-9-24
状态 离线
|
『第 21 楼』:
使用 LLM 解释/回答一下
Oh! I got the answer: There should only be letters within the filename and no numerals are allowed!
是这样吗? 太令人吃惊了!
只允许字母, 不允许数字作文件名, 我还从未注意过, 首次听说呢. 准备试试看. 我想, 数字应当是允许的, 但空格却可能不行.
----------------------
关于 map 命令处理连续性, 由于你的不断报告, 我也在研究问题的根源. 我刚刚发现了一处毛病, 或许修改了就好了, 但还不能肯定. 这可能是我改进算法之后的一个疏忽的地方. 谢谢.
Oh! I got the answer: There should only be letters within the filename and no numerals are allowed!
Is that so? So surprising!
Only letters are allowed, no numerals for filenames. I've never noticed this before, first time hearing about it. Going to try it out. I thought numerals might be allowed, but spaces might not be.
----------------------
Regarding the continuity processing of the map command, due to your continuous reporting, I'm also researching the root cause of the problem. I just discovered a flaw, maybe it will be fixed after modification, but I'm not sure yet. This might be an oversight after I improved the algorithm. Thanks.
|

因为我们亲手创建,这个世界更加美丽。 |
|
2004-9-13 00:00 |
|
|
windrv
中级用户
  
积分 385
发帖 118
注册 2003-11-11
状态 离线
|
『第 22 楼』:
使用 LLM 解释/回答一下
以下是引用不点在2004-9-13 15:02:17的发言:
Oh! I got the answer: There should only be letters within the filename and no numerals are allowed!
是这样吗? 太令人吃惊了!
只允许字母, 不允许数字作文件名, 我还从未注意过, 首次听说呢. 准备试试看. 我想, 数字应当是允许的, 但空格却可能不行.
----------------------
关于 map 命令处理连续性, 由于你的不断报告, 我也在研究问题的根源. 我刚刚发现了一处毛病, 或许修改了就好了, 但还不能肯定. 这可能是我改进算法之后的一个疏忽的地方. 谢谢.
Dear Tinybit,
Thank you for your effort!
I hope that your improvement will bring us great convenience of launching various disk-file based operating systems using boot.ini on NTFS partition. Please give us the update when it is ready.
By the way, we have put up a new webpage on the homepage link of sourceforge.net for the project of GRUB4DOS & WINGRUB. The webpage has pointings to our webpage on our website therein with links to the webpages for GRUB4DOS on linuxeden.com & Wengier's previous link as site 1 and site 2. If you want to put up more links for GRUB4DOS, please email to bean. His address is bean@windrv.net
Also if you have any other ideas about how to design your weblinks or want to have a separate webpage on our site or have a new icon or logo for GRUB4DOS, you are welcome to give us your opinions so that we can serve you.
The following is a quote from Budian's post on September 13, 2004, at 15:02:17:
Oh! I got the answer: There should only be letters within the filename and no numerals are allowed!
Is that so? So surprising!
Only letters are allowed, no numerals for file names. I've never noticed this before, first time hearing it. Going to try it out. I think numerals should be allowed, but spaces might not be.
----------------------
Regarding the continuity of the map command, due to your continuous reports, I'm also researching the root cause of the problem. I just discovered a flaw, maybe it can be fixed, but I'm not sure yet. This might be an oversight after I improved the algorithm. Thanks.
Dear Tinybit,
Thank you for your effort!
I hope that your improvement will bring us great convenience of launching various disk-file based operating systems using boot.ini on NTFS partition. Please give us the update when it is ready.
By the way, we have put up a new webpage on the homepage link of sourceforge.net for the project of GRUB4DOS & WINGRUB. The webpage has pointings to our webpage on our website therein with links to the webpages for GRUB4DOS on linuxeden.com & Wengier's previous link as site 1 and site 2. If you want to put up more links for GRUB4DOS, please email to bean. His address is bean@windrv.net
Also if you have any other ideas about how to design your weblinks or want to have a separate webpage on our site or have a new icon or logo for GRUB4DOS, you are welcome to give us your opinions so that we can serve you.
|
|
2004-9-14 00:00 |
|
|
不点
银牌会员
     不甘寂寞的人
积分 2491
发帖 1115
注册 2003-9-24
状态 离线
|
『第 23 楼』:
使用 LLM 解释/回答一下
我没有进一步的建议,只是觉得 sourceforge 的网页上似乎还没有释放出文件来。
I have no further suggestions, just feel that the files do not seem to have been released on the SourceForge webpage yet.
|

因为我们亲手创建,这个世界更加美丽。 |
|
2004-9-14 00:00 |
|
|
windrv
中级用户
  
积分 385
发帖 118
注册 2003-11-11
状态 离线
|
『第 24 楼』:
使用 LLM 解释/回答一下
以下是引用不点在2004-9-14 10:05:49的发言:
我没有进一步的建议,只是觉得 sourceforge 的网页上似乎还没有释放出文件来。
Dear Tinybit,
Bean is writing up the help file for WINGRUB and there may also be some examples of how to use GRUB. As it is ready, files can be uploaded to sourceforge.net or people can download from our site.
The following is a quote from Budian at 10:05:49 on September 14, 2004:
I have no further suggestions, just feel that the files do not seem to have been released on the SourceForge website.
Dear Tinybit,
Bean is writing up the help file for WINGRUB and there may also be some examples of how to use GRUB. As it is ready, files can be uploaded to sourceforge.net or people can download from our site.
|
|
2004-9-14 00:00 |
|
|
不点
银牌会员
     不甘寂寞的人
积分 2491
发帖 1115
注册 2003-9-24
状态 离线
|
『第 25 楼』:
使用 LLM 解释/回答一下
0.3 系列的第三个试验版. 这可以看作是 alpha 测试, 没有版本号, 只是用日期来表示不同的版本. 更正了上次版本不能启动 CDROM 的一个很顽固的 BUG.
这个版本中的 CDROM 相关命令仍然只能用于某些华硕的机器型号. 对于华硕机器, 可以报告 BUG 了. 下载:
http://grub.linuxeden.com/wakka.php?wakka=UploadFile/files.xml&action=download&file=grub-2004-09-17.tar.gz
ftp://ftp.linuxeden.com/tinybit/grldr
ftp://ftp2.linuxeden.com/tools/grldr
ftp://ftp.linuxeden.com/tinybit/grub.exe
ftp://ftp2.linuxeden.com/tools/grub.exe
用法:
map --cdrom=9 这条命令直接引导光驱中可引导的 CDROM 盘片. 如果成功, 光盘中的操作系统将被引导, 因而不可能返回到当前的 GRUB 环境. 如果失败, 将返回到当前的 GRUB 环境.
map --cdrom=8 类似于上面的 map --cdrom=9, 但只是做好启动 CDROM 的准备工作, 需要再敲入一条 boot 命令才真正开始启动 CDROM.
map --cdrom=4 这条命令挂接光驱, 使它成为 BIOS 硬盘 0x80. 机器中原来的硬盘号码相应的都增加 1, 变成 0x81,0x82 等等. 如果成功, 你可以用 root (hd0)/ (此处表示按 Tab 键)来列出光盘上的文件了. 也就是说, 此时,(hd0) 就是光盘介质, 而 (hd1) 是你原来的硬盘 C: 了.
map --cdrom=-1 这条命令卸载由 map --cdrom=4 所建立的挂接, 恢复 BIOS 各磁盘号码为原始的值.
在微软的 win98 安装盘的情形, 由于 1.44M 的软盘映像的位置是在光盘绝对扇区 0x15, 这个采用的单位是 2048 字节的扇区,翻译成 512 字节的扇区, 则是在光盘绝对扇区 0x54, 也就是十进制的 84, 所以,可以这样来仿真软盘(注意是用光盘上的扇区序列来仿真软盘):
map (hd0)84+2880 (fd0)
map --hook
现在你用 root (fd0)/ 就可以列出虚拟软盘里的文件了.
另外, 用 blocklist 命令还可以验证, 光盘上的任何文件都是连续的, 没有碎片. 因此, 光盘上的 img 文件总是可以用作磁盘仿真的.
----------------------------------
windrv 可以试试看, 是否已经纠正了 map 判断连续性的错误.
0.3 series third test version. This can be regarded as alpha testing, with no version number, just using dates to represent different versions. Corrected a very stubborn BUG that the previous version couldn't boot the CDROM.
The CDROM-related commands in this version can still only be used for some ASUS machine models. For ASUS machines, you can report BUGs. Download:
http://grub.linuxeden.com/wakka.php?wakka=UploadFile/files.xml&action=download&file=grub-2004-09-17.tar.gz
ftp://ftp.linuxeden.com/tinybit/grldr
ftp://ftp2.linuxeden.com/tools/grldr
ftp://ftp.linuxeden.com/tinybit/grub.exe
ftp://ftp2.linuxeden.com/tools/grub.exe
Usage:
map --cdrom=9 This command directly boots the bootable CDROM disc in the optical drive. If successful, the operating system on the disc will be booted, so it is impossible to return to the current GRUB environment. If it fails, it will return to the current GRUB environment.
map --cdrom=8 Similar to the above map --cdrom=9, but just prepares to boot the CDROM, and you need to type a boot command to really start booting the CDROM.
map --cdrom=4 This command mounts the optical drive and makes it BIOS hard disk 0x80. The original hard disk numbers in the machine are correspondingly increased by 1, becoming 0x81, 0x82, etc. If successful, you can use root (hd0)/ (here it means pressing the Tab key) to list the files on the disc. That is, at this time, (hd0) is the optical disc medium, and (hd1) is your original hard disk C:.
map --cdrom=-1 This command unmounts the mount established by map --cdrom=4 and restores the BIOS disk numbers to the original values.
In the case of the Microsoft win98 installation disc, since the position of the 1.44M floppy disk image is at optical disc absolute sector 0x15, and this uses a sector of 2048 bytes, translated into a sector of 512 bytes, it is at optical disc absolute sector 0x54, which is 84 in decimal, so you can simulate the floppy disk like this (note that it is using the sector sequence on the disc to simulate the floppy disk):
map (hd0)84+2880 (fd0)
map --hook
Now you can use root (fd0)/ to list the files in the virtual floppy disk.
In addition, the blocklist command can also be used to verify that any file on the disc is continuous and has no fragmentation. Therefore, the img file on the disc can always be used for disk simulation.
----------------------------------
Try windrv to see if the error in map judging continuity has been corrected.
|

因为我们亲手创建,这个世界更加美丽。 |
|
2004-9-17 00:00 |
|
|
windrv
中级用户
  
积分 385
发帖 118
注册 2003-11-11
状态 离线
|
『第 26 楼』:
使用 LLM 解释/回答一下
Dear Tinybit,
Initial testing shows that the updated version of grldr in relation to the 'map' command does not yet work.
Dear Tinybit,
Initial testing shows that the updated version of grldr in relation to the 'map' command does not yet work.
|
|
2004-9-20 00:00 |
|
|
不点
银牌会员
     不甘寂寞的人
积分 2491
发帖 1115
注册 2003-9-24
状态 离线
|
『第 27 楼』:
使用 LLM 解释/回答一下
旧版本确定文件连续性的方法是: 读出整个文件, 核对每一个读出的扇区, 看看是否连续. 这种方法能够成功, 但是很慢.
新版本确定文件连续性的方法是: 读第一个扇区, 确定起始扇区的位置, 再读最末一个扇区, 确定终止扇区的位置. 有了起始和终止扇区的物理位置,再和文件的长度进行比较, 就可以得出该文件中全部扇区是否连续的结论.
今天晚上准备发布一个调试版本, 专门针对 map 连续性检查的. 仍旧是上述的下载地址, 不过文件的日期会变化,请 windrv 注意查收.
The method for determining the continuity of files in the old version is: read the entire file, check each read sector to see if they are continuous. This method can succeed but is very slow.
The method for determining the continuity of files in the new version is: read the first sector, determine the position of the starting sector, then read the last sector, determine the position of the ending sector. With the physical positions of the starting and ending sectors, and comparing with the length of the file, the conclusion whether all sectors in the file are continuous can be drawn.
I am going to release a debug version tonight, specifically for map continuity check. It is still the above download address, but the file date will change. Please, windrv, pay attention to check and receive.
|

因为我们亲手创建,这个世界更加美丽。 |
|
2004-9-20 00:00 |
|
|
windrv
中级用户
  
积分 385
发帖 118
注册 2003-11-11
状态 离线
|
『第 28 楼』:
使用 LLM 解释/回答一下
以下是引用不点在2004-9-20 15:42:30的发言:
旧版本确定文件连续性的方法是: 读出整个文件, 核对每一个读出的扇区, 看看是否连续. 这种方法能够成功, 但是很慢.
新版本确定文件连续性的方法是: 读第一个扇区, 确定起始扇区的位置, 再读最末一个扇区, 确定终止扇区的位置. 有了起始和终止扇区的物理位置,再和文件的长度进行比较, 就可以得出该文件中全部扇区是否连续的结论.
今天晚上准备发布一个调试版本, 专门针对 map 连续性检查的. 仍旧是上述的下载地址, 不过文件的日期会变化,请 windrv 注意查收.
Thanks a lot!
The following is the speech by Budian on 2004-9-20 15:42:30:
The method for the old version to determine the file continuity is: read the entire file, check each sector that is read, and see if they are continuous. This method can be successful, but it is very slow.
The method for the new version to determine the file continuity is: read the first sector, determine the position of the starting sector, then read the last sector, determine the position of the ending sector. With the physical positions of the starting and ending sectors, and then comparing with the length of the file, the conclusion whether all sectors in the file are continuous can be drawn.
I am going to release a debugging version tonight, specifically for the map continuity check. It is still the above download address, but the file date will change, please windrv pay attention to check and receive.
Thanks a lot!
|
|
2004-9-20 00:00 |
|
|