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 09:57
中国DOS联盟论坛 » DOS开发编程 & 发展交流 (开发室) » Disk sector reading and writing, partition information management tool Dsptw (updated on 2008.11.29) View 112,595 Replies 565
Floor 136 Posted 2007-01-28 23:32 ·  中国 北京 中移铁通
高级用户
★★
流落街头
Credits 570
Posts 272
Joined 2005-10-17 10:51
20-year member
UID 43609
Gender Male
From 北京
Status Offline
to lianjiang2004:
Can you upload the MBR of your machine? I want to see the partition situation in your MBR.

to pfox:
The version on the first floor has no time limit and does not have the function to display the volume label.

to hnlyzhd:
The one on floor 107 can display the NTFS volume label. Currently, it cannot display the DOS drive letters assigned after IFS and NTFS4DOS are loaded.

[ Last edited by 19951001 on 2007-1-28 at 11:41 PM ]
Floor 137 Posted 2007-01-29 08:55 ·  中国 安徽 马鞍山 电信
金牌会员
★★★★
Credits 3,946
Posts 1,884
Joined 2006-01-20 13:00
20-year member
UID 49283
Gender Male
Status Offline
Originally posted by 19951001 at 2007-1-28 23:32:
to lianjiang2004:
Could you please upload the MBR of your machine? Let me take a look at the partition situation in your MBR.

This is my MBR file.
Attachments
MBR.rar (4.17 KiB, Credits to download 1 pts, Downloads: 5)
Windows 一键还原
http://www.yjhy.com
Floor 138 Posted 2007-01-29 09:11 ·  中国 河南 洛阳 联通
高级用户
★★
Credits 544
Posts 164
Joined 2004-10-17 12:00
21-year member
UID 32648
Gender Male
Status Offline
Can the landlord write a program to create an HPA partition directly under DOS, automatically setting the last partition of the first master hard disk as an HPA partition!
我的留言簿

http://hnlyzhd.ys168.com 我的网络盘
Floor 139 Posted 2007-01-29 21:50 ·  中国 北京 中移铁通
高级用户
★★
流落街头
Credits 570
Posts 272
Joined 2005-10-17 10:51
20-year member
UID 43609
Gender Male
From 北京
Status Offline
Originally posted by hnlyzhd at 2007-1-29 09:11:
Can the landlord write a program to create an HPA partition directly under DOS, automatically setting the last partition of the first master hard drive as an HPA partition!


Some netizens have also raised this question. It's just that I'm relatively busy here right now, and it hasn't been included in the development plan for the time being.
Floor 140 Posted 2007-01-29 22:00 ·  中国 北京 中移铁通
高级用户
★★
流落街头
Credits 570
Posts 272
Joined 2005-10-17 10:51
20-year member
UID 43609
Gender Male
From 北京
Status Offline
to lianjiang2004:
Please test the new version and let us know the result.
Floor 141 Posted 2007-01-29 23:07 ·  中国 河南 济源 联通
中级用户
★★
Credits 343
Posts 50
Joined 2004-02-21 00:00
22-year member
UID 18062
Gender Male
Status Offline
The program of the original poster is really very practical. Looking forward to the advent of the perfect version.
Floor 142 Posted 2007-01-30 00:39 ·  中国 河南 洛阳 联通
高级用户
★★
Credits 544
Posts 164
Joined 2004-10-17 12:00
21-year member
UID 32648
Gender Male
Status Offline
The LZ has time to study how AEFDISK32.EXE displays the disk drive letters!
我的留言簿

http://hnlyzhd.ys168.com 我的网络盘
Floor 143 Posted 2007-01-30 01:58 ·  中国 北京 中移铁通
高级用户
★★
流落街头
Credits 570
Posts 272
Joined 2005-10-17 10:51
20-year member
UID 43609
Gender Male
From 北京
Status Offline
Originally posted by hnlyzhd at 2007-1-30 00:39:
The LZ has time to study how AEFDISK32.EXE displays the disk drive letters!


I have mastered displaying and partitioning corresponding drive letters in the WIN32 environment. The reason why the WIN32 version was not released is that the DOS version is not stable yet and is still in testing. When the DOS version is stable, I will release the WIN32 version.
Floor 144 Posted 2007-01-30 05:29 ·  中国 安徽 马鞍山 电信
金牌会员
★★★★
Credits 3,946
Posts 1,884
Joined 2006-01-20 13:00
20-year member
UID 49283
Gender Male
Status Offline
Thanks, test immediately.
Windows 一键还原
http://www.yjhy.com
Floor 145 Posted 2007-01-30 06:01 ·  中国 安徽 马鞍山 电信
金牌会员
★★★★
Credits 3,946
Posts 1,884
Joined 2006-01-20 13:00
20-year member
UID 49283
Gender Male
Status Offline
Report the latest test results.

First of all, thank you to the author for paying attention to the issues I reported. The test results with version 0129 dpit and dspt are as follows, which are normal. I don't know what caused the different results in previous versions?

At the same time, I also report an unfortunate message. On my other hard drive, dspt cannot work and displays "Read Disk Error!" [Note: I happen to have version 1227 dspt in my boot disk, and the test result is normal]. And dpit displays normally. The results are as follows, and the MBR of this hard drive is attached.

dpit:
No. Drv Type Volume PartType Act Offset Sectors MBytes
0:1 Primary VISTA HPFS/NTFS Yes 63 31101777 15186
0:2 Extended LBA 31101840 289057545 141141
0:3 Logic 160_1 HPFS/NTFS 31101903 50829597 24819
0:4 Logic 160_2 HPFS/NTFS 81931563 163846872 80003
0:5 Logic ` HPFS/NTFS 245778498 74380887 36318

------------
dspt:
No. Drv Type Volume PartType Act Offset Sectors MBytes
0:1 Primary VISTA HPFS/NTFS Yes 63 31101777 15186
0:2 Logic 160_1 HPFS/NTFS 31101903 50829597 24819
0:3 Logic 160_2 HPFS/NTFS 81931563 163846872 80003
0:4 Logic ` HPFS/NTFS 245778498 74380887 36318
------------
Another hard drive.
dpit:

No. Drv Type Volume PartType Act Offset Sectors MBytes
0:1 Primary HPFS/NTFS Yes 63 15438402 7538
0:2 Primary pwin2k Hide HPFS/NTFS 15438465 15293880 7467
0:3 Extended LBA 30732345 203704200 99464
0:4 Logic HPFS/NTFS 30732408 20482812 10001
0:5 Logic MYDATA HPFS/NTFS 51215283 30732282 15005
0:6 C: Logic APPZ Win95 FAT32 81947628 61448562 30004
0:7 Logic DV HPFS/NTFS 143396253 90831447 44351
0:8 Logic Hide FAT16 234227763 208782 101

dspt:
Read Disk Error!
Attachments
MBR120.rar (4.22 KiB, Credits to download 1 pts, Downloads: 3)
Windows 一键还原
http://www.yjhy.com
Floor 146 Posted 2007-01-30 06:44 ·  中国 北京 中移铁通
高级用户
★★
流落街头
Credits 570
Posts 272
Joined 2005-10-17 10:51
20-year member
UID 43609
Gender Male
From 北京
Status Offline
Originally posted by lianjiang2004 at 2007-1-30 06:01:
Report the latest test results.
First of all, thank the author for paying attention to the problem I reported. The test results of using the 0129 version of dpit and dspt are as follows, which are normal. I don't know what caused the different results displayed in previous versions?
Same...


Thanks for the test. Actually, the code for processing partitions in dpit and dspt is consistent. Specifically, why the disk read error occurs, I need to re-examine the code for this problem.

[ Last edited by 19951001 on 2007-1-30 at 06:56 AM ]
Floor 147 Posted 2007-01-30 21:27 ·  中国 安徽 马鞍山 电信
金牌会员
★★★★
Credits 3,946
Posts 1,884
Joined 2006-01-20 13:00
20-year member
UID 49283
Gender Male
Status Offline
There is a request. I wonder if the author can consider it in the future?
Specific requirements: Add parameters to control whether to display the drive letter and drive label.
Reason:
I need to use dpit to obtain hard disk parameters under DOS in the batch processing of one-click backup and recovery. Including the active primary partition number, which is used to judge which partition to back up; and the last partition number, which is used to save the backup file.
Due to the limitations of the for function under DOS, it cannot obtain the above two partition numbers as simply as in WinXP. Maybe it's because of my limited level. Currently, I am using version 12-26. This version does not display the drive letter and drive label, so the previous part is regular. I use the enumeration method to query characters like "0:2 Primary HPFS/NTFS Yes", "0:2 Primary Win95 FAT32 Yes", etc. If found, then set the primary partition number and partition type. Similarly, find the last partition number and type.
But in the new version, the drive letter and drive label are added, making the string irregular. I can't determine the active primary partition number.

I really want to still use dpit instead of ghost -dd to obtain relevant parameters in the future. Of course, this is my personal requirement. I feel embarrassed to put it forward. It doesn't matter if it can't be considered. Anyway, this is a very good tool.
Thank you.

[ Last edited by lianjiang2004 on 2007-1-30 at 09:28 PM ]
Windows 一键还原
http://www.yjhy.com
Floor 148 Posted 2007-01-30 23:17 ·  中国 吉林 四平 联通
高级用户
★★★
Credits 859
Posts 413
Joined 2006-08-14 21:55
19-year member
UID 60532
Status Offline
Where can I download the latest version of dpitw? The version 12.5 doesn't work.
Floor 149 Posted 2007-01-31 00:31 ·  中国 北京 中移铁通
高级用户
★★
流落街头
Credits 570
Posts 272
Joined 2005-10-17 10:51
20-year member
UID 43609
Gender Male
From 北京
Status Offline
to lianjiang2004:
I can specifically make a version for you that doesn't display the drive letter and volume label. Currently, I don't want to add too many parameters.
Please test the dspt from 2007.1.30 again. I completely copied the code of dpit, and I don't think there should be a "Read Disk Error!"

to anqing:
The new version hasn't been released yet, and the old version can be downloaded on Wuyou.

[ Last edited by 19951001 on 2007-1-31 at 12:44 AM ]
Floor 150 Posted 2007-01-31 00:37 ·  中国 吉林 四平 联通
高级用户
★★★
Credits 859
Posts 413
Joined 2006-08-14 21:55
19-year member
UID 60532
Status Offline
‹ Prev 1 8 9 10 11 12 38 Next ›
Forum Jump: