|
georgema
初级用户
 
积分 37
发帖 20
注册 2006-3-31
状态 离线
|
|
2008-9-25 12:18 |
|
|
willing
中级用户
  
积分 256
发帖 133
注册 2008-9-29
状态 离线
|
『第 377 楼』:
使用 LLM 解释/回答一下
很有用的工具,谢了楼主。
A very useful tool, thanks to the楼主.
|
|
2008-10-2 19:24 |
|
|
leejong
新手上路

积分 2
发帖 1
注册 2008-9-7
状态 离线
|
|
2008-10-3 18:14 |
|
|
x58397313
新手上路

积分 7
发帖 7
注册 2008-9-27
状态 离线
|
|
2008-10-7 00:51 |
|
|
gmy
版主
        操作系统爱好者
积分 1113
发帖 392
注册 2002-11-11
状态 离线
|
『第 380 楼』:
建议:关于HDD1作为BIOS首选项引导的问题
使用 LLM 解释/回答一下
当有两块硬盘时,有的BIOS设置为 HDD0 作为第一启动驱动器,有的设置为HDD1 作为 First BOOT 的,前者没有问题,后者就会出问题:
Windows 与 GHOST 显示硬盘号不一致,举个例子:假如硬盘0 和 硬盘1 都有两个分区:
Windows下显示(带 GhostStyle 参数):
1:1 E:
1:2 F:
2:2 C:
2:2 D:
DOS下的GHOST里显示为:
1:1 C:
1:2 D:
2:1 E:
2:2 F:
也就是说,DOS认为,谁引导谁就是老大,不考虑IDE接口顺序。
所以,请楼主增加一层判断,C盘所在的硬盘号如果不是首硬盘则强制显示其为首硬盘。
编辑思路:
这里仅可以考虑最多4块硬盘(因为很少有5块以上的):
当C盘在第1块硬盘时,正常显示。
当C盘在第2块硬盘时,原第1块显示为第2块,原第2块显示为第1块。
当C盘在第3块硬盘时,原第1块显示为第2块,原第2块显示为第3块,原第3块显示为第1块。
当C盘在第4块硬盘时,原第1块显示为第2块,原第2块显示为第3块,原第3块显示为第4块,原第4块显示为第1块。
这样的好处是,1:1 这样的参数 可以在DOS下被直接引用,而不必把2:1转成1:1了。
Last edited by gmy on 2008-10-10 at 11:40 ]
When there are two hard drives, some BIOS sets HDD0 as the first boot drive, and some sets HDD1 as the first boot. The former has no problem, but the latter will have problems:
Windows and GHOST show inconsistent hard drive numbers. For example, if both hard drive 0 and hard drive 1 have two partitions:
Under Windows (with GhostStyle parameter):
1:1 E:
1:2 F:
2:2 C:
2:2 D:
In DOS's GHOST, it shows as:
1:1 C:
1:2 D:
2:1 E:
2:2 F:
That is to say, DOS thinks that whoever boots is the boss, and does not consider the order of the IDE interface.
So, please ask the landlord to add a layer of judgment. If the hard drive number where the C drive is located is not the first hard drive, force it to be displayed as the first hard drive.
Editing idea:
Here, only up to 4 hard drives can be considered (because there are rarely more than 5):
When the C drive is on the first hard drive, it is displayed normally.
When the C drive is on the second hard drive, the original first one is displayed as the second one, and the original second one is displayed as the first one.
When the C drive is on the third hard drive, the original first one is displayed as the second one, the original second one is displayed as the third one, and the original third one is displayed as the first one.
When the C drive is on the fourth hard drive, the original first one is displayed as the second one, the original second one is displayed as the third one, the original third one is displayed as the fourth one, and the original fourth one is displayed as the first one.
The advantage of this is that parameters like 1:1 can be directly referenced in DOS without converting 2:1 to 1:1.
Last edited by gmy on 2008-10-10 at 11:40 ]
|

DOS之家 http://doshome.com 站长 葛明阳 |
|
2008-10-10 11:20 |
|
|
netwinxp
高级用户
   
积分 741
发帖 366
注册 2007-7-25
状态 离线
|
『第 381 楼』:
使用 LLM 解释/回答一下
启动的硬盘会被BIOS赋予硬盘号80H,所以DOS把它挂接到盘符C:,而WINDOWS则直接按扫描到的顺序分配盘符。从BIOS的角度来看,DOS才是正确的,启动的硬盘安排的硬盘号确实是第一的(尽管它可能是Second Channel Slave)。
另,DELL的隐藏分区好像就DE比较规范,DB就别用了,会和CT DOS冲突。其他隐藏分区有A0:IBM Thinkpad隐藏分区,84:OS/2隐藏C:,93:linux隐藏,1E:VFAT(LBA)隐藏分区,11:FAT12隐藏分区。
Last edited by netwinxp on 2008-10-10 at 16:36 ]
The hard disk that is booted will be assigned the hard disk number 80H by the BIOS, so DOS mounts it to the drive letter C:. While WINDOWS directly assigns drive letters according to the scanning order. From the perspective of the BIOS, DOS is correct, and the hard disk number assigned to the booted hard disk is indeed the first one (although it may be the Second Channel Slave).
In addition, Dell's hidden partitions seem to be relatively standardized for DE, and DB should not be used as it will conflict with CT DOS. Other hidden partitions are A0: IBM Thinkpad hidden partition, 84: OS/2 hidden C:, 93: linux hidden, 1E: VFAT (LBA) hidden partition, 11: FAT12 hidden partition.
Last edited by netwinxp on 2008-10-10 at 16:36 ]
|
|
2008-10-10 16:15 |
|
|
19951001
高级用户
    流落街头
积分 570
发帖 272
注册 2005-10-17 来自 北京
状态 离线
|
『第 382 楼』:
使用 LLM 解释/回答一下
Originally posted by gmy at 2008-10-10 11:20:
当有两块硬盘时,有的BIOS设置为 HDD0 作为第一启动驱动器,有的设置为HDD1 作为 First BOOT 的,前者没有问题,后者就会出问题:
Windows 与 GHOST 显示硬盘号不一致,举个例子:假如硬盘0 和 硬盘1 都有两个分区:
Windows下显示(带 GhostStyle 参数):
1:1 E:
1:2 F:
2:2 C:
2:2 D:
DOS下的GHOST里显示为:
1:1 C:
1:2 D:
2:1 E:
2:2 F:
也就是说,DOS认为,谁引导谁就是老大,不考虑IDE接口顺序。
这是由于Windows操作系统自身造成,并不是我的程序所造成,我提供一个补丁程序使之能够满足你的要求。
本程序专门用来处理如下命令产生的结果:
dsptw /a /pdr
dsptw /a /pdr /reverse
经处理后结果与Dos下ghost相一致。
用法:
todosghs result.txt
result.txt 来源:
dsptw /a /pdr >result.txt
或者
dsptw /a /pdr /reverse >result.txt
下载地址:
http://upload.cn-dos.net/img/918.rar
Originally posted by gmy at 2008-10-10 11:20:
When there are two hard drives, some BIOS sets HDD0 as the first boot drive, and some set HDD1 as the First BOOT. The former has no problem, but the latter will have problems:
Windows and GHOST show inconsistent hard drive numbers. For example: Suppose both hard drive 0 and hard drive 1 have two partitions:
Under Windows (with GhostStyle parameter):
1:1 E:
1:2 F:
2:2 C:
2:2 D:
In DOS's GHOST, it shows:
1:1 C:
1:2 D:
2:1 E:
2:2 F:
That is to say, DOS thinks that whoever boots is the boss, regardless of the IDE interface order.
This is caused by the Windows operating system itself, not by my program. I provide a patch program to meet your requirements.
This program is specially used to process the results generated by the following commands:
dsptw /a /pdr
dsptw /a /pdr /reverse
After processing, the result is consistent with Dos's ghost.
Usage:
todosghs result.txt
Source of result.txt:
dsptw /a /pdr >result.txt
or
dsptw /a /pdr /reverse >result.txt
Download address:
http://upload.cn-dos.net/img/918.rar
|
|
2008-10-11 08:01 |
|
|
lianjiang2004
金牌会员
     
积分 3946
发帖 1884
注册 2006-1-20
状态 离线
|
『第 383 楼』:
使用 LLM 解释/回答一下
部分杀软(如avast等)会报dsptw含木马,望解决。
不知是否是原因加了壳的缘故。
Some antivirus software (such as avast, etc.) will report that dsptw contains a trojan, hope to solve it. I don't know if it is because of the reason that it is packed with a shell.
|

Windows 一键还原
http://www.yjhy.com |
|
2008-10-16 15:17 |
|
|
19951001
高级用户
    流落街头
积分 570
发帖 272
注册 2005-10-17 来自 北京
状态 离线
|
『第 384 楼』:
使用 LLM 解释/回答一下
Originally posted by lianjiang2004 at 2008-10-16 15:17:
部分杀软(如avast等)会报dsptw含木马,望解决。
不知是否是原因加了壳的缘故。
你试一下这个版本,我重新编译了一下
http://upload.cn-dos.net/img/954.rar
Originally posted by lianjiang2004 at 2008-10-16 15:17:
Some antivirus software (such as avast, etc.) will detect dsptw as a trojan horse. Hope to solve this.
I wonder if it is because of the added shell.
Try this version, I recompiled it
http://upload.cn-dos.net/img/954.rar
|
|
2008-10-17 20:32 |
|
|
lianjiang2004
金牌会员
     
积分 3946
发帖 1884
注册 2006-1-20
状态 离线
|
|
2008-10-18 07:52 |
|
|
lianjiang2004
金牌会员
     
积分 3946
发帖 1884
注册 2006-1-20
状态 离线
|
『第 386 楼』:
使用 LLM 解释/回答一下
有人反馈,原报毒的杀软avast,对新版已不报毒,谢谢。
Some people reported that the antivirus software avast that originally detected viruses no longer detects viruses for the new version. Thanks.
|

Windows 一键还原
http://www.yjhy.com |
|
2008-10-18 11:22 |
|
|
19951001
高级用户
    流落街头
积分 570
发帖 272
注册 2005-10-17 来自 北京
状态 离线
|
『第 387 楼』:
Diskrw for Dos最新测试版本
使用 LLM 解释/回答一下
与原来版本改变
1、增加参数 Offset
此参数用来指定文件内部的偏移位置,默认值为0(文件的开始)
如果给出了Offset的值,但是文件不存在,则给出的Offset值被忽略。
例子:
Diskrw C: 0 10 /S sector.bin 10
将磁盘C:从起始位置开始的10个扇区,写入文件sector.bin。如果文件不存在,则sector.bin的大小为5120个字节,
如果文件存在,如文件大小小于10字节程序会给出错误信息,如果文件大小大于等于10字节,则程序会将扇区内
容写入文件的偏移位置10开始的5120字节中,文件中的原来信息会被覆盖(如文件长度小于5130字节则文件长度
增加)。
DISKRW
Disk: 0-First Hard Disk, 1-Second Hard Disk, ...
A:, B:, C:, D: ...
Start: Disk Absolute Sector Number
Sectors: Total Sectors to be Processed
/S: Save Disk Sector Info to File
/R: Restore Disk Sector Info from File
/C: Compare Disk Sector Info with File
FileName: Disk Sector Info File
/Offset: The Offset In FileName
2、增加功能 /M
这个功能在win32版本中早已实现,将磁盘Disk中从位置Start开始的Sectors个扇区内容移动到磁盘DstDisk中Offset
的位置,移动后Disk中相应位置的扇区信息会被清除,如移出扇区和移入扇区位置叠加,程序会智能选择要清除的
扇区部分。
DISKRW
/D: Duplicate Disk Sector Info from Disk to DstDisk
/O: cOmpare Disk Sector Info with DstDisk
/M: Move Disk Sector Info from Disk to DstDisk
DstDisk: 0-First Hard Disk, 1-Second Hard Disk, ...
A:, B:, C:, D: ...
Offset: Disk Absolute Sector Number
3、增加参数 /Asc
编辑磁盘可以直接使用 ASCII 码,长度不超过16字符。
DISKRW :
SectorNo: Disk Absolute Secotor Number
Offset: Offset in Specified Sector (0..511)
/E: Edit Disk Sector Info
/Hex: Hex Style
/Asc: ASCII Style
Value: Hex_Digital/ASCII String (32/16 Characters Maximum)
4、扇区内部处理命令(只处理单个扇区)
如果Bytes输入0或者输入数据较大(超出扇区边界),则程序处理从Offset开始到扇区结束的字节数
例子:
Diskrw 0 0 446 /b 64 mbr.dat 备份第一硬盘(磁盘0)第一扇区(0扇区)中偏移位置446开始 的64个字节到文件 mbr.dat。(这里备份的就是磁盘MBR中的分区表信息)
DISKRW
/B: Backup Disk Sector Info to File
/V: Vertify Disk Sector Info with File
/U: Update Disk Sector Info from File
Bytes: Bytes to Process (0..512)
Last edited by 19951001 on 2008-10-29 at 21:02 ]
Changes from the original version
1. Add parameter Offset
This parameter is used to specify the offset position inside the file, with a default value of 0 (the start of the file)
If the value of Offset is given but the file does not exist, the given Offset value is ignored.
Example:
Diskrw C: 0 10 /S sector.bin 10
Write 10 sectors from the starting position of disk C: to file sector.bin. If the file does not exist, the size of sector.bin is 5120 bytes.
If the file exists, if the file size is less than 10 bytes, the program will give an error message. If the file size is greater than or equal to 10 bytes, the program will write the sector content into the 5120 bytes starting from offset 10 in the file. The original information in the file will be overwritten (if the file length is less than 5130 bytes, the file length will increase).
DISKRW
Disk: 0-First Hard Disk, 1-Second Hard Disk, ...
A:, B:, C:, D: ...
Start: Disk Absolute Sector Number
Sectors: Total Sectors to be Processed
/S: Save Disk Sector Info to File
/R: Restore Disk Sector Info from File
/C: Compare Disk Sector Info with File
FileName: Disk Sector Info File
/Offset: The Offset In FileName
2. Add function /M
This function has long been implemented in the win32 version. Move the content of Sectors sectors starting from position Start on disk Disk to the position of Offset on disk DstDisk. After moving, the sector information at the corresponding position on Disk will be cleared. If the positions of the moved-out sectors and the moved-in sectors overlap, the program will intelligently select the part of the sector to be cleared.
DISKRW
/D: Duplicate Disk Sector Info from Disk to DstDisk
/O: cOmpare Disk Sector Info with DstDisk
/M: Move Disk Sector Info from Disk to DstDisk
DstDisk: 0-First Hard Disk, 1-Second Hard Disk, ...
A:, B:, C:, D: ...
Offset: Disk Absolute Sector Number
3. Add parameter /Asc
Editing the disk can directly use ASCII code, with a length not exceeding 16 characters.
DISKRW :
SectorNo: Disk Absolute Secotor Number
Offset: Offset in Specified Sector (0..511)
/E: Edit Disk Sector Info
/Hex: Hex Style
/Asc: ASCII Style
Value: Hex_Digital/ASCII String (32/16 Characters Maximum)
4. Sector internal processing command (only process a single sector)
If Bytes input is 0 or the input data is relatively large (exceeds the sector boundary), the program will process the number of bytes from Offset to the end of the sector
Example:
Diskrw 0 0 446 /b 64 mbr.dat Backup 64 bytes starting from offset position 446 in the first sector (sector 0) of the first hard disk (disk 0) to file mbr.dat. (Here, the partition table information in the disk MBR is backed up)
DISKRW
/B: Backup Disk Sector Info to File
/V: Vertify Disk Sector Info with File
/U: Update Disk Sector Info from File
Bytes: Bytes to Process (0..512)
Last edited by 19951001 on 2008-10-29 at 21:02 ]
|
|
2008-10-25 12:36 |
|
|
19951001
高级用户
    流落街头
积分 570
发帖 272
注册 2005-10-17 来自 北京
状态 离线
|
『第 388 楼』:
使用 LLM 解释/回答一下
2008.11.11 diskrw程序更新
Last edited by 19951001 on 2008-11-11 at 23:31 ]
2008.11.11 Diskrw program update
Last edited by 19951001 on 2008-11-11 at 23:31 ]
附件
1: diskrw.rar (2008-11-11 23:31, 25.37 KiB,下载次数: 317)
|
|
2008-11-1 16:50 |
|
|
19951001
高级用户
    流落街头
积分 570
发帖 272
注册 2005-10-17 来自 北京
状态 离线
|
『第 389 楼』:
diskrw for dos 终结版本
使用 LLM 解释/回答一下
这一版本是 Diskrw for Dos的终结版, 如果没有Bug被发现,以后将不在更新。
和上一版本的变化如下
增加命令:
1 扇区内部充填命令
DISKRW
/I: Fill Disk Sector Data with Value
例子:
diskrw 0 10 2 /i 10 5
将磁盘0的第10号扇区的偏移位置2开始的10个字节使用5充填。
如果Value值不输入,默认为0.
如果Bytes输入0, 则Bytes=512-Offset;
2 扇区内部数据复制、移动、比较命令
DISKRW
SectNo: Disk Absolute Sector Number
/T: duplicaTe Disk Sector Data from Disk to dstDisk
/A: Move Disk Sector Data from Disk to dstDisk
/P: comPare Disk Sector Data with dstDisk
例子:
diskrw 0 0 446 /T 0 1 446 64
将磁盘0的第0号扇区的偏移位置446 开始的64个字节复制到
磁盘0的第1号扇区的偏移位置446
如果Bytes输入为0, 则 Bytes取源盘和目的盘中Offset到扇区结束的字节数的小值;
如果Bytes的输入值满足 Bytes+Offset >512 即超出一个扇区后,则Bytes=512-Offset,
也就是在任何情况下都不会超出扇区处理。
This version is the final version of Diskrw for Dos. If no bugs are found, there will be no more updates in the future.
The changes from the previous version are as follows:
Add commands:
1. Sector internal filling command
DISKRW
/I: Fill Disk Sector Data with Value
Example:
diskrw 0 10 2 /i 10 5
Fill 10 bytes starting from offset position 2 of sector 10 on disk 0 with 5.
If the Value is not entered, the default is 0.
If Bytes is entered as 0, then Bytes = 512 - Offset;
2. Sector internal data copy, move, compare command
DISKRW
SectNo: Disk Absolute Sector Number
/T: duplicaTe Disk Sector Data from Disk to dstDisk
/A: Move Disk Sector Data from Disk to dstDisk
/P: comPare Disk Sector Data with dstDisk
Example:
diskrw 0 0 446 /T 0 1 446 64
Copy 64 bytes starting from offset position 446 of sector 0 on disk 0 to offset position 446 of sector 1 on disk 0
If Bytes is entered as 0, then Bytes takes the smaller value of the number of bytes from Offset to the end of the sector in the source disk and the destination disk;
If the entered value of Bytes satisfies Bytes + Offset > 512, that is, exceeding one sector, then Bytes = 512 - Offset, that is, in any case, it will not exceed the sector processing.
附件
1: DISKRW.rar (2008-11-13 14:20, 18.42 KiB,下载次数: 647)
|
|
2008-11-13 14:20 |
|
|
lianjiang2004
金牌会员
     
积分 3946
发帖 1884
注册 2006-1-20
状态 离线
|
|
2008-11-13 17:56 |
|