China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-06-30 07:55
中国DOS联盟论坛 » DOS开发编程 & 发展交流 (开发室) » Disk sector reading and writing, partition information management tool Dsptw (updated on 2008.11.29) View 112,584 Replies 565
Floor 481 Posted 2009-03-14 08:20 ·  中国 广东 广州 电信
新手上路
Credits 6
Posts 3
Joined 2006-11-21 22:53
19-year member
UID 71287
Gender Male
Status Offline
Support
Floor 482 Posted 2009-04-09 23:57 ·  中国 广东 深圳 电信
高级用户
★★
Credits 525
Posts 222
Joined 2006-08-28 21:07
19-year member
UID 61476
Status Offline
Upload a video of dspt error
Attachments
dspt出错录象.rar (58.08 KiB, Credits to download 1 pts, Downloads: 9)
Floor 483 Posted 2009-04-13 20:04 ·  中国 山东 青岛 阿里云
版主
★★★
操作系统爱好者
Credits 1,113
Posts 392
Joined 2002-11-11 00:00
23-year member
UID 228
Gender Male
Status Offline
Suggest to add the function of writing the standard DBR for DOS diskrw (of course, without destroying the BPB). It is similar to the functions of the built-in small tools bootsect /n52 and /n60 in Vista and Win7. Because Microsoft does not provide a pure DOS version of bootsect, and there are much fewer materials about DBR than about MBR (the existing ones are only n40 which is for WIN95 or DOS). Maybe we can get inspiration by using DISKGEN3.0 or the latest version of WINHEX as tools to experiment (using XP and Win7 as experimental environments) to obtain DBR.

[ Last edited by gmy on 2009-4-19 at 23:58 ]
DOS之家 http://doshome.com 站长 葛明阳
Floor 484 Posted 2009-04-15 00:43 ·  中国 河北 唐山 联通
版主
★★★
操作系统爱好者
Credits 1,113
Posts 392
Joined 2002-11-11 00:00
23-year member
UID 228
Gender Male
Status Offline
It is suggested that the partitions of Dynamic_Disk type should be included in the parameter /normal (conventional partition). (Because dynamic volumes are mostly basic disks and in NTFS format.)

In addition, it seems that /normal does not filter out Hide_FAT32?

[ Last edited by gmy on 2009-4-15 at 03:24 ]
DOS之家 http://doshome.com 站长 葛明阳
Floor 485 Posted 2009-04-17 00:48 ·  中国 江苏 苏州 电信
新手上路
Credits 4
Posts 2
Joined 2009-02-14 14:20
17-year member
UID 138842
Gender Male
Status Offline
Not bad, good stuff, download it down!!
Floor 486 Posted 2009-04-17 23:17 ·  中国 香港 环球全域电讯
新手上路
Credits 6
Posts 3
Joined 2009-04-17 04:38
17-year member
UID 143128
Gender Male
Status Offline
Come down and use it, good stuff.
Floor 487 Posted 2009-04-19 22:59 ·  中国 河北 唐山 联通
版主
★★★
操作系统爱好者
Credits 1,113
Posts 392
Joined 2002-11-11 00:00
23-year member
UID 228
Gender Male
Status Offline

The /M function has long been implemented in the win32 version. It moves the contents of Sectors sectors starting from position Start on disk Disk to the position Offset on disk DstDisk. After the move, the sector information in 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.


I understand the meaning of /M as: /M = conditionally /D + /F, that is, copy the specified sectors of the original disk to the target disk and then clear the specified sectors of the original disk with 0. If there is an overlap, the overlapping part will be retained. Is my explanation correct?

For example: diskrw c: 10 20 /M d: 15 copies 20 sectors starting from sector 10 of drive c: to the starting position of sector 15 of drive d: for 20 sectors, and then clears (filled with 0) 20 sectors starting from sector 10 of drive c:

Another example: diskrw c: 10 20 /M c: 29 copies 20 sectors starting from sector 10 of drive c: to the starting position of sector 29 of drive c: for 20 sectors, and then clears (filled with 0) 19 sectors starting from sector 10 of drive c: (note that it is not 20 sectors, because the 20th sector, that is, sector 29, is the overlapping part, so sector 29 will not be overwritten)

[ Last edited by gmy on 2009-4-19 at 23:08 ]
DOS之家 http://doshome.com 站长 葛明阳
Floor 488 Posted 2009-04-19 23:45 ·  中国 河北 唐山 联通
版主
★★★
操作系统爱好者
Credits 1,113
Posts 392
Joined 2002-11-11 00:00
23-year member
UID 228
Gender Male
Status Offline
Questions about /B and /U:

/B
diskrw 0 0 446 /b 64 mbr.dat Back up 64 bytes starting from the 446th sector of absolute sector 0, that is: only back up the HDPT (hard disk partition table), not the MBR (master boot record), and save the file as mbr.dat.
Is mbr.dat 64 bytes or 512 bytes?

/U
diskrw 0 0 446 /u 64 mbr.dat Restore 64 bytes starting from the 446th sector of absolute sector 0, that is: only restore the HDPT (hard disk partition table), not the MBR (master boot record), and the restoration file comes from mbr.dat.
If mbr.dat is greater than or equal to 512 characters, take 64 sectors starting from the 446th
If mbr.dat is less than 512 characters, take 64 sectors starting from the first byte of the file
Is the above understanding correct?
DOS之家 http://doshome.com 站长 葛明阳
Floor 489 Posted 2009-04-24 05:02 ·  中国 天津 联通
新手上路
Credits 2
Posts 1
Joined 2009-04-21 22:28
17-year member
UID 143476
Gender Male
Status Offline
Download and study it. There are too many functions.
Floor 490 Posted 2009-04-26 22:53 ·  中国 台湾 远传电信
新手上路
Credits 2
Posts 1
Joined 2009-04-24 04:33
17-year member
UID 143665
Gender Male
Status Offline
I'm looking for a hard disk partition management tool available for WinPE. Thanks to the great person for providing it. Hope this is what I'm looking for.
Floor 491 Posted 2009-04-27 05:40 ·  IANA 局域网IP(Private-Use)
新手上路
Credits 6
Posts 2
Joined 2009-04-06 03:13
17-year member
UID 142230
Gender Male
Status Offline
So powerful, thank you the LZ's dedication
There are two tough problems please LZ and all of you to help
1. Is there a ready-made tool or simple way to determine the sector where a file is located.
3. Is there a ready-made tool or simple way to put a file into the specified sector. For example, create a WORD file that is 4k. We can store it in disk C, D... Can we specify to store it in sector 100 in drive C? How to achieve it?
2. How to create a fragmented file which is a file occupies unconsecutive sectors.
Thanks a lot!
Floor 492 Posted 2009-04-30 09:02 ·  中国 广东 深圳 润迅通信集团有限公司
新手上路
Credits 4
Posts 2
Joined 2006-11-05 01:37
19-year member
UID 69613
Gender Male
Status Offline
Unable to read ATA hard disk information.

dspwt 0 /L
Prompt: open disk error!

The computer is an IBM T23 notebook, and WINPM also cannot find the hard disk. I don't know what's going on.

[ Last edited by penginfo on 2009-4-30 at 09:03 ]
Floor 493 Posted 2009-05-14 04:28 ·  中国 上海 电信数据中心
新手上路
Credits 2
Posts 1
Joined 2009-05-12 04:52
17-year member
UID 144897
Gender Male
Status Offline
Good
Floor 494 Posted 2009-05-14 09:47 ·  中国 福建 厦门 电信
高级用户
★★★
Credits 741
Posts 366
Joined 2007-07-25 19:11
18-year member
UID 94024
Gender Male
Status Offline
IBM T23 uses INTEL ICH3M (82801CAM) southbridge (HWID: PCI\VEN_8086&DEV_248A), and it can be directly driven with intelide.sys. If the hard disk cannot be found, it can only be IBM's doing.
Floor 495 Posted 2009-06-19 00:27 ·  中国 北京 鹏博士BGP
新手上路
Credits 12
Posts 6
Joined 2007-03-29 01:51
19-year member
UID 83220
Gender Male
Status Offline
The poster seems to haven't been here for a long time, give it a bump.
‹ Prev 1 31 32 33 34 35 38 Next ›
Forum Jump: