|
windrv
中级用户
  
积分 385
发帖 118
注册 2003-11-11
状态 离线
|
『楼 主』:
TinyBit 请进,about GRUB for DOS virtualization
使用 LLM 解释/回答一下
Dear TinyBit,
About using the "map" command for virtualizing a disk file into a virtual disk, we find out that the "map" command seems to check also whether the disk file is in ONE continuous block.
Is there any command-line option for the "map" command that we can use to disable this checking? Since if the disk file has already been confirmed to be in one continuous block, checking it every time seems to be a waste of time. So it is more convenient that we can disable such checking if the user is sure that such disk file is already in one continous block.
Dear TinyBit,
Regarding using the "map" command to virtualize a disk file into a virtual disk, we have discovered that the "map" command also seems to check whether the disk file is in one continuous block.
Is there any command-line option for the "map" command that we can use to disable this check? Since if the disk file has already been confirmed to be in one continuous block, checking it every time seems to be a waste of time. Therefore, it would be more convenient if we could disable such checking when the user is certain that the disk file is already in one continuous block.
|
|
2004-8-30 00:00 |
|
|
不点
银牌会员
     不甘寂寞的人
积分 2491
发帖 1115
注册 2003-9-24
状态 离线
|
『第 2 楼』:
使用 LLM 解释/回答一下
使用 map 本来就危险, 如果不检查 img 文件的连续性, 则更是危险了!
因此, map 总是检查 img 文件的连续性.
没有选项可以禁止该功能. 但下一个 0.3.0 的版本可以增加一个选项以避免检查连续性. 还可能重写仿真代码部分, 把 CDROM 的仿真和启动增加上.
Using a map is inherently dangerous. If you don't check the continuity of the img file, it's even more dangerous!
Therefore, the map always checks the continuity of the img file.
There are no options to disable this function. But the next version 0.3.0 can add an option to avoid checking continuity. It may also rewrite the simulation code part to add the simulation and booting of the CDROM.
|

因为我们亲手创建,这个世界更加美丽。 |
|
2004-8-30 00:00 |
|
|
windrv
中级用户
  
积分 385
发帖 118
注册 2003-11-11
状态 离线
|
『第 3 楼』:
使用 LLM 解释/回答一下
以下是引用不点在2004-8-30 12:04:27的发言:
使用 map 本来就危险, 如果不检查 img 文件的连续性, 则更是危险了!
因此, map 总是检查 img 文件的连续性.
没有选项可以禁止该功能. 但下一个 0.3.0 的版本可以增加一个选项以避免检查连续性. 还可能重写仿真代码部分, 把 CDROM 的仿真和启动增加上.
Dear TinyBit,
We are about to release a new version of WinGRUB for GRUB For DOS, so could you put up or release a quick patch so that users can disable the checking of continous disk file image of the "map" command so that users can avoid such checking?
The following is the speech of Budian in 2004-8-30 12:04:27:
Using map is inherently dangerous, and if the continuity of the img file is not checked, it is even more dangerous!
Therefore, map always checks the continuity of the img file.
There is no option to disable this function. But the next version 0.3.0 can add an option to avoid checking continuity. It may also rewrite the simulation code part, add the simulation and startup of CDROM.
Dear TinyBit,
We are about to release a new version of WinGRUB for GRUB For DOS, so could you put up or release a quick patch so that users can disable the checking of continous disk file image of the "map" command so that users can avoid such checking?
|
|
2004-8-30 00:00 |
|
|
不点
银牌会员
     不甘寂寞的人
积分 2491
发帖 1115
注册 2003-9-24
状态 离线
|
『第 4 楼』:
使用 LLM 解释/回答一下
也行吧. 不过, 等待一段时间, 应当在一两个礼拜之内完成. 我不甘心彻底取消check, 只想让 check 更快一些, 不至于影响大的 img 文件的使用.
Well, fire-ships成,不过,等待一段时间,应当在一两个礼拜之内完成。我不甘心彻底取消check,只想让 check 更快一些,不至于影响大的 img 文件的使用.
(注:原句中“也行吧”可能是口语化表达,按要求直接翻译,“Well”对应;后面内容按字面翻译,其中“fire-ships成”可能是特定表述,保留原样。)
|

因为我们亲手创建,这个世界更加美丽。 |
|
2004-8-30 00:00 |
|
|
windrv
中级用户
  
积分 385
发帖 118
注册 2003-11-11
状态 离线
|
『第 5 楼』:
使用 LLM 解释/回答一下
以下是引用不点在2004-8-30 15:19:40的发言:
也行吧. 不过, 等待一段时间, 应当在一两个礼拜之内完成. 我不甘心彻底取消check, 只想让 check 更快一些, 不至于影响大的 img 文件的使用.
Dear TinyBit,
Thank you very much!
We do not suggest to disable checking entirely. We hope that users can choose to check or skip checking when using the "map" command.
When using the "map" command for a particular disk file for the first time, it is good to have checking, but when a particular disk file has been checked and the user is sure that the disk file is already in a continuous block, he or she may want to disable the checking so that the system can be up and running fast.
The following is the speech by Budian on 2004-8-30 15:19:40:
Well, maybe. However, after waiting for a period of time, it should be completed within one or two weeks. I am not willing to completely cancel the check, I just want to make the check faster, so as not to affect the use of large img files.
Dear TinyBit,
Thank you very much!
We do not suggest to disable checking entirely. We hope that users can choose to check or skip checking when using the "map" command.
When using the "map" command for a particular disk file for the first time, it is good to have checking, but when a particular disk file has been checked and the user is sure that the disk file is already in a continuous block, he or she may want to disable the checking so that the system can be up and running fast.
|
|
2004-8-30 00:00 |
|
|
不点
银牌会员
     不甘寂寞的人
积分 2491
发帖 1115
注册 2003-9-24
状态 离线
|
『第 6 楼』:
使用 LLM 解释/回答一下
pre12 发布, 下载:
http://grub.linuxeden.com/
ftp://ftp.linuxeden.com/tinybit/
ftp://ftp2.linuxeden.com/tools/
更动: 修复两个 BUG:1,GRLDR 从 1024 柱面之后的分区启动;2,快速检查 img 文件的连续性。
改进算法, 迅速检查, 一眨眼就完成, 因此无须提供禁止检查的选项了.
pre12 released, download:
http://grub.linuxeden.com/
ftp://ftp.linuxeden.com/tinybit/
ftp://ftp2.linuxeden.com/tools/
Changes: Fixed two bugs: 1. GRLDR boots from partitions beyond cylinder 1024; 2. Quickly check the continuity of img files.
Improved algorithm, quickly check, done in a flash, so no need to provide an option to disable checking.
|

因为我们亲手创建,这个世界更加美丽。 |
|
2004-8-31 00:00 |
|
|
windrv
中级用户
  
积分 385
发帖 118
注册 2003-11-11
状态 离线
|
『第 7 楼』:
使用 LLM 解释/回答一下
以下是引用不点在2004-8-31 2:05:56的发言:
pre12 发布, 下载:
http://grub.linuxeden.com/
ftp://ftp.linuxeden.com/tinybit/
ftp://ftp2.linuxeden.com/tools/
更动: 修复两个 BUG:1,GRLDR 从 1024 柱面之后的分区启动;2,快速检查 img 文件的连续性。
改进算法, 迅速检查, 一眨眼就完成, 因此无须提供禁止检查的选项了.
Dear Tinybit,
We shall test it before we release the new version of WINGRUB incorporating GRUB for DOS.
Bean promised to write the HELP file for WINGRUB.
A new homepage will be posted to sourceforge.net which will have url points to our own homepage for WINGRUB and the homepage/download sites of GRUB for DOS in addition to sourceforge.net
The following is a post by Budian at 2004-8-31 2:05:56:
pre12 released, download:
http://grub.linuxeden.com/
ftp://ftp.linuxeden.com/tinybit/
ftp://ftp2.linuxeden.com/tools/
Changes: Fixed two bugs: 1. GRLDR boots from partitions beyond cylinder 1024; 2. Quickly check the continuity of img files.
Improved algorithm, quickly check, done in a blink of an eye, so there is no need to provide an option to disable the check.
Dear Tinybit,
We shall test it before we release the new version of WINGRUB incorporating GRUB for DOS.
Bean promised to write the HELP file for WINGRUB.
A new homepage will be posted to sourceforge.net which will have url points to our own homepage for WINGRUB and the homepage/download sites of GRUB for DOS in addition to sourceforge.net
|
|
2004-8-31 00:00 |
|
|
windrv
中级用户
  
积分 385
发帖 118
注册 2003-11-11
状态 离线
|
『第 8 楼』:
使用 LLM 解释/回答一下
Dear Tinybit,
By the way, have you found out why sometimes some continuous disk files mapped or virtualized as a drive cannot be written under DOS or Windows? This is a problem you posted in this forum previously.
亲爱的Tinybit,
顺便问一下,你有没有找出为什么有时一些连续的磁盘文件映射或虚拟化为驱动器后在DOS或Windows下无法写入的原因?这是你之前在这个论坛上发布的一个问题。
|
|
2004-8-31 00:00 |
|
|
不点
银牌会员
     不甘寂寞的人
积分 2491
发帖 1115
注册 2003-9-24
状态 离线
|
『第 9 楼』:
使用 LLM 解释/回答一下
DOS 下从未出现任何已知的问题.
windows 下不讨论, 因为 windows 有时使用 BIOS, 有时不使用 BIOS. 对 windows 的支持仅仅是"试验性"的.
There are no known issues under DOS at all.
Windows is not discussed because Windows sometimes uses BIOS and sometimes doesn't. Support for Windows is only "experimental".
|

因为我们亲手创建,这个世界更加美丽。 |
|
2004-8-31 00:00 |
|
|
windrv
中级用户
  
积分 385
发帖 118
注册 2003-11-11
状态 离线
|
『第 10 楼』:
使用 LLM 解释/回答一下
以下是引用不点在2004-8-31 18:31:31的发言:
DOS 下从未出现任何已知的问题.
windows 下不讨论, 因为 windows 有时使用 BIOS, 有时不使用 BIOS. 对 windows 的支持仅仅是"试验性"的.
Dear Tinybit,
We have found that it is not feasible to use "map" command to map a disk file into c: drive for booting. It is possible for mapping disk file as a: drive for booting.
Are you successful in mapping disk file as bootable c: drive under DOS?
We have released a new version of WINGRUB. Please see bean123's posting for download.
In our testing for mapping disk file, we found that disk file of the right size and format can be mapped as bootable a: drive. And this a: drive can be written under DOS and Win9x as well.
Disk file of the right size and format means that not any image disk file can be used, but the image file should be of a size calculated with right Cylinder/Head/Sector parameters and with the corresponding signature. Our WINDRV helps to generate these image files.
We are writing the help files for WINGRUB & WINDRV. They will soon be ready for formal release.
Meanwhile, for testing WINGRUB, please give comments or findings under bean123's posting.
The following is a quote from Budian's post on August 31, 2004 at 18:31:31:
No known issues have ever occurred under DOS.
Discussions under Windows are not relevant because Windows sometimes uses BIOS and sometimes doesn't. Support for Windows is only "experimental".
Dear Tinybit,
We have found that it is not feasible to use the "map" command to map a disk file into the c: drive for booting. It is possible to map a disk file as the a: drive for booting.
Have you succeeded in mapping a disk file as a bootable c: drive under DOS?
We have released a new version of WINGRUB. Please refer to bean123's post for download.
In our testing of mapping disk files, we found that a disk file of the correct size and format can be mapped as a bootable a: drive. And this a: drive can also be written to under DOS and Win9x.
A disk file of the correct size and format means that not any image disk file can be used, but the image file should be of a size calculated with the correct Cylinder/Head/Sector parameters and with the corresponding signature. Our WINDRV helps to generate these image files.
We are writing the help files for WINGRUB & WINDRV. They will soon be ready for formal release.
In the meantime, for testing WINGRUB, please leave comments or findings under bean123's post.
|
|
2004-9-3 00:00 |
|
|
不点
银牌会员
     不甘寂寞的人
积分 2491
发帖 1115
注册 2003-9-24
状态 离线
|
『第 11 楼』:
使用 LLM 解释/回答一下
我还没有碰到仿真 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 进行分区和格式化操作.
I haven't encountered the situation where the emulation of the C: drive fails.
To emulate (hd0), the img file used must contain an MBR as the first sector. An IMG without an MBR cannot be emulated.
In fact, it's also possible without an MBR. For example, an img file that is all 00 bytes can also be used to emulate 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, run FDISK and FORMAT to partition and format the HD.IMG.
|

因为我们亲手创建,这个世界更加美丽。 |
|
2004-9-4 00:00 |
|
|
windrv
中级用户
  
积分 385
发帖 118
注册 2003-11-11
状态 离线
|
『第 12 楼』:
使用 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,
Let's follow your advice above and see if C: drive virtualization can be done.
Another good news for using GRUB4DOS is that we have tested using grldr within boot.ini on NTFS partition.
Win2K/XP can be run as usual. Besides, we are able to run other ramdisk-based OSes, including Win9x, Freebsd and Linux directly through grldr. May be bean123 will illustrate how that can be done in WINGRUB's help file.
The following is a statement from Budian at 18:25:37 on September 4, 2004:
I haven't encountered a situation where the emulation of the C: drive failed.
To emulate (hd0), the img file used must contain an MBR as the first sector. An IMG without an MBR cannot be emulated.
In fact, it's also possible without an MBR. For example, an img file filled with all 00 bytes can also be used to emulate 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 drive.
After you enter DOS with a floppy disk, you can use FDISK and FORMAT to partition and format HD.IMG.
Dear Tinybit,
Let's follow your advice above and see if C: drive virtualization can be done.
Another good news for using GRUB4DOS is that we have tested using grldr within boot.ini on NTFS partition.
Win2K/XP can be run as usual. Besides, we are able to run other ramdisk-based OSes, including Win9x, Freebsd and Linux directly through grldr. May be bean123 will illustrate how that can be done in WINGRUB's help file.
|
|
2004-9-6 00:00 |
|
|
windrv
中级用户
  
积分 385
发帖 118
注册 2003-11-11
状态 离线
|
『第 13 楼』:
使用 LLM 解释/回答一下
以下是引用不点在2004-8-31 2:05:56的发言:
pre12 发布, 下载:
http://grub.linuxeden.com/
ftp://ftp.linuxeden.com/tinybit/
ftp://ftp2.linuxeden.com/tools/
更动: 修复两个 BUG:1,GRLDR 从 1024 柱面之后的分区启动;2,快速检查 img 文件的连续性。
改进算法, 迅速检查, 一眨眼就完成, 因此无须提供禁止检查的选项了.
Dear Tinybit,
Today I experienced a strange problem with the 'map' command.
On a disk with only one bootable C: NTFS partition, I created a contiguous disk file. But your map command reports that the file is not contiguous.
I have checked it twice with 2 different defrag programmes; both of the programmes report that the file is contiguous; but your map command insists that the file is not contiguous.
These two free utilities are at:
http://www.defragmentor.com/dml/en/download2.asp
http://www.geocities.com/andreigaceff/DefragNT.html
Another finding is when I copied the disk file to another hard disk with FAT primary partition and the disk file was again detected as contiguous by DefragNT, I could run the same 'map' command successfully when booting up from this hard disk with FAT primary partition using grub.exe under DOS.
So could you give us at least an option for people to bypass the checking of contiguousness of a file when using your 'map' command in case there is a need?
I have also just found another problem with the 'map' command. When I used the 'map' command to mount up a disk file, it returns Error 16: file not found on a computer which has only one disk with only one FAT32 partition installed with XP. That is I booted up grldr within boot.ini on a FAT32 primary partition. Do you experience this problem?
The following is a quote from Budian's post on 2004-8-31 2:05:56:
pre12 released, download:
http://grub.linuxeden.com/
ftp://ftp.linuxeden.com/tinybit/
ftp://ftp2.linuxeden.com/tools/
Changes: Fixed two BUGs: 1. GRLDR boots from partitions after cylinder 1024; 2. Quickly check the continuity of img files.
Improved algorithm, quickly check, done in a blink, so there is no need to provide an option to prohibit checking anymore.
Dear Tinybit,
Today I experienced a strange problem with the 'map' command.
On a disk with only one bootable C: NTFS partition, I created a contiguous disk file. But your map command reports that the file is not contiguous.
I have checked it twice with 2 different defrag programmes; both of the programmes report that the file is contiguous; but your map command insists that the file is not contiguous.
These two free utilities are at:
http://www.defragmentor.com/dml/en/download2.asp
http://www.geocities.com/andreigaceff/DefragNT.html
Another finding is when I copied the disk file to another hard disk with FAT primary partition and the disk file was again detected as contiguous by DefragNT, I could run the same 'map' command successfully when booting up from this hard disk with FAT primary partition using grub.exe under DOS.
So could you give us at least an option for people to bypass the checking of contiguousness of a file when using your 'map' command in case there is a need?
I have also just found another problem with the 'map' command. When I used the 'map' command to mount up a disk file, it returns Error 16: file not found on a computer which has only one disk with only one FAT32 partition installed with XP. That is I booted up grldr within boot.ini on a FAT32 primary partition. Do you experience this problem?
|
|
2004-9-7 00:00 |
|
|
不点
银牌会员
     不甘寂寞的人
积分 2491
发帖 1115
注册 2003-9-24
状态 离线
|
『第 14 楼』:
使用 LLM 解释/回答一下
关于map在NTFS上的问题, 我猜可能有两种情况:
1. GRUB for DOS 的 NTFS 模块存在BUG
2. 你所用的两个工具有问题, 或者它所报告的连续性, 从概念上不同于 GRUB 所说的连续性.
无论上述哪种情况, 都不适合去掉 map 对于连续性的检查.
对于1. 这表明 GRUB 不能恰当确定一个文件的物理扇区位置, 因此用 map 命令于该 img 文件, 将可能带来灾难, 所以, 不可以去掉这个检查.
对于2. 既然那两个工具不适合我们的用途, 我们也就没有必要参考它了. 我们首先相信 GRUB 的 blocklist 命令的结果. 只有 blocklist 列出碎片的文件,才是不连续的文件.
既然不可以去掉检查, 也就没有必要添加这个选项了.
----------------
关于 FAT32 下找不到文件的问题, 那应当不是 GRUB for DOS 的问题, 而应当是 GNU GRUB 的问题, 向 GNU GRUB 报告 BUG 吧.
GRUB 并不能找到一个文件名中含有空格的文件. 以下文件都不行:
(hd0,0)/Program Files/test.txt
(hd0,0)/my file.txt
Regarding the issue with map on NTFS, I guess there might be two situations:
1. There is a bug in the NTFS module of GRUB for DOS
2. The two tools you are using are problematic, or the continuity it reports conceptually differs from what GRUB refers to.
In either case, it is not appropriate to remove the check for continuity in map.
For 1. This indicates that GRUB cannot properly determine the physical sector location of a file. Therefore, using the map command on this img file may bring disasters, so this check cannot be removed.
For 2. Since those two tools are not suitable for our purpose, we have no need to refer to them. We first trust the result of GRUB's blocklist command. Only files listed by blocklist as fragmented are discontinuous files.
Since the check cannot be removed, there is no need to add this option.
----------------
Regarding the issue of not finding files under FAT32, that should not be an issue with GRUB for DOS but rather an issue with GNU GRUB. Report the bug to GNU GRUB.
GRUB cannot find a file with a space in its filename. The following files are all not okay:
(hd0,0)/Program Files/test.txt
(hd0,0)/my file.txt
|

因为我们亲手创建,这个世界更加美丽。 |
|
2004-9-8 00:00 |
|
|
windrv
中级用户
  
积分 385
发帖 118
注册 2003-11-11
状态 离线
|
『第 15 楼』:
使用 LLM 解释/回答一下
以下是引用不点在2004-9-8 12:09:34的发言:
关于map在NTFS上的问题, 我猜可能有两种情况:
1. GRUB for DOS 的 NTFS 模块存在BUG
2. 你所用的两个工具有问题, 或者它所报告的连续性, 从概念上不同于 GRUB 所说的连续性.
无论上述哪种情况, 都不适合去掉 map 对于连续性的检查.
对于1. 这表明 GRUB 不能恰当确定一个文件的物理扇区位置, 因此用 map 命令于该 img 文件, 将可能带来灾难, 所以, 不可以去掉这个检查.
对于2. 既然那两个工具不适合我们的用途, 我们也就没有必要参考它了. 我们首先相信 GRUB 的 blocklist 命令的结果. 只有 blocklist 列出碎片的文件,才是不连续的文件.
既然不可以去掉检查, 也就没有必要添加这个选项了.
----------------
关于 FAT32 下找不到文件的问题, 那应当不是 GRUB for DOS 的问题, 而应当是 GNU GRUB 的问题, 向 GNU GRUB 报告 BUG 吧.
GRUB 并不能找到一个文件名中含有空格的文件. 以下文件都不行:
(hd0,0)/Program Files/test.txt
(hd0,0)/my file.txt
Dear Tinybit,
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 following is the speech of Budian in 2004-9-8 12:09:34:
Regarding the problem of map on NTFS, I guess there may be two situations:
1. There is a bug in the NTFS module of GRUB for DOS
2. The two tools you use are problematic, or the continuity it reports is conceptually different from what GRUB says.
In either case above, it is not suitable to remove the check of continuity by map.
For 1. This shows that GRUB cannot properly determine the physical sector position of a file, so using the map command on this img file may bring disaster, so the check cannot be removed.
For 2. Since those two tools are not suitable for our purpose, we have no need to refer to it. We first believe the result of GRUB's blocklist command. Only the files listed by blocklist are discontinuous files.
Since the check cannot be removed, there is no need to add this option.
----------------
Regarding the problem of not finding the file under FAT32, that should not be a problem of GRUB for DOS, but should be a problem of GNU GRUB, report a BUG to GNU GRUB.
GRUB cannot find a file with a space in the file name. The following files are all not okay:
(hd0,0)/Program Files/test.txt
(hd0,0)/my file.txt
Dear Tinybit,
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?
|
|
2004-9-8 00:00 |
|
|