![]() |
China DOS Union-- Unite DOS · Advance DOS · Grow DOS --Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum |
| Guest | Log in | Register | Members | Search | China DOS Union |
|
中国DOS联盟论坛 The time now is 2026-10-27 11:03 |
47,815 topics / 349,928 posts / today 0 new / 48,289 members |
| DOS启动盘 & LOGO技术 (启动盘室) » Suggestions for windrv, bean123 please come in |
| Printable Version 818 / 3 |
| Floor1 不点 | Posted 2004-05-02 00:00 |
| 银牌会员 Posts 1,115 Credits 2,491 | |
| Floor2 不点 | Posted 2004-05-05 00:00 |
| 银牌会员 Posts 1,115 Credits 2,491 | |
|
windrv: private messages only have space for 500 characters, so I'll reply here.
> Hello! > How is your help? Mm, I'm still under treatment. It's really a pleasant surprise — I may basically recover my health. But the overall principle won't change: I'll only do some small things, and I won't get involved in difficult development work. Thank you and bean for the help you gave me during that grim period. Your help played a decisive role (the illness was caused by both physical and psychological factors). > You did a great job on GRUB For DOS. > It can map a particular hd to a virtual image and boot it. > > Could I know whether it can be done under DOS to prevent the access of a particular HD by DOS > completely and restore its access by running a DOS program? Grub.exe seems needing rebooting. If you want to emulate a certain disk under a running (active) DOS, unexpected things may happen (for example, a crash). But if it's only a matter of blocking a certain disk, it may be possible. However, you should consider that the C: drive is also in an active state — for example, the resident part of Command.com is in memory, while the transient part is on the hard disk. This situation must be taken into account. Perhaps it can be dealt with by changing the COMSPEC environment variable. Of course, if a disk is not being accessed by any process in memory, then such a disk can be disabled 【this is my preliminary view】. GRUB's emulation code can be used for the kind of dynamic emulation mentioned above 【including even seemingly dangerous operations such as adding a virtual hard disk, etc.】. Disabling a hard disk is just a special case of emulation. map --disable-chs-mode --disable-lba-mode (hd1) (hd1) disables (hd1) You can even leave GRUB entirely and operate directly under DOS. What GRUB does is nothing more than use 2K of space at the top of conventional memory as the int13 code. The map command-line parameters 【also placed in the above 2K area】 can all be modified transparently under DOS. So if you want to disable or enable it, both are very simple. Roughly, these are the issues that may need attention: 1。The BIOS data area contains the total number of hard disks and the total number of floppy drives, and it would be best if it reflected the real changes. 2。When adding the 2K GRUB emulation code, the values at 0x040e and 0x0413 in conventional memory need to be changed. Removing the code also requires changing these two values. Of course, if you are only modifying the map command-line parameters at the end of the 2K code, then there is no need to change the values at these two places. 3。When copying the 2K GRUB code to the top of conventional memory, take care not to overwrite any TSR there, and also not to damage the extended BIOS data area. Besides that, you also have to modify the memory allocation chain (that is, the arena structure) to ensure the integrity of the memory chain allocation, otherwise the system will die or become unstable. That's about all I can think of. |
|
| Floor3 windrv | Posted 2004-05-06 00:00 |
| 中级用户 Posts 118 Credits 385 | |
| Floor4 windrv | Posted 2004-05-06 00:00 |
| 中级用户 Posts 118 Credits 385 | |
The following is quoted from 不点 at 2004-5-2 10:44:06: Thank you very much for your suggestions and advice. For the second question first, WINDRV can be used on a standalone computer, running disklessly, starting up with a removeable MO or USB hard disk or a CD. So virus infection is never a problem. For the first question about RAM requirement, using running win9x normally with a hard disk, you need at least 32M RAM, on this forum, there is much discussion of Mini9x. WINDRV helps implementing it with the Build List Manager and also taking it to run in RAM with the help of our 16bit ramdisk driver. So the RAM requirement depends on how large in size your win9x and the applications you want to put into RAM to run with it . With win98, we can even compress the image, about doubling the size. So if your Win9x plus applications have a size of 150M, then it is compressed to about 80 to 90M, 128M of RAM is possible. Also, the more ram you have, the more you gain because of compression. The best implementation is for 640M or something like that. WINDRV has been tested to run with 2G RAM. WINDRV at present will utilize up to 1.2G RAM and you can compress it; so it can hold a 2.4G image. The rest of RAM, 2G-1.2G=0.8G is to be used by Windows. About the documentation, it will be written up in the coming weeks. And translation into Chinese will be done immediately afterwards. IE can of course be removed. 98lite helps you to do this. |
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |