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-25 07:06
中国DOS联盟论坛 » DOS开发编程 & 发展交流 (开发室) » miniTO Single Program DPT/DBR/FAT/CMOS Multi-function Maintenance Tool View 26,864 Replies 230
Floor 16 Posted 2007-04-17 09:40 ·  中国 黑龙江 哈尔滨 电信
高级用户
★★★
Credits 760
Posts 357
Joined 2005-10-10 22:33
20-year member
UID 43332
Status Offline
Originally posted by cchessbd at 2007-4-17 09:20:
Try rebuilding the MBR with spfdisk.

If there's a problem with the partition table, don't blame the program...

If it doesn't work, use kvfix to clear the MBR to 0, and rebuild with diskgen.

Then run Todisk, it should work.


Hey! Actually I already suspected this problem long ago, but I didn't dare to say it!
I have two hard drives, each 80G, but they are all full, there are a lot of software and so on. If I rebuild the partition then...
Wait until my wife finishes watching the movies she downloaded, I'll free up some space and then see!

Now recalling, if it's a partition table problem, then there may be 2 possibilities:
1. Three years ago, when I installed Longhorn (VISTA beta version), it was forcefully modified by Longhorn's MBR! (This is more likely, because at that time I had 4 systems, and the 4th partition happened to be Longhorn!)
2. Because I was afraid of trouble and wasted time, using a non-destructive partition software caused it!

[ Last edited by 0451lym on 2007-4-17 at 09:59 AM ]
Floor 17 Posted 2007-04-17 10:10 ·  中国 广东 广州 教育网
铂金会员
★★★★
C++启程者
Credits 5,154
Posts 1,827
Joined 2003-07-18 00:00
22-year member
UID 7105
Gender Male
Status Offline
Well, I'm very curious. Now I'm going to prepare to change the program into a simple test version for your situation to see where the program goes wrong...

Is there any software that has tampered with the BIOS?

Generally, it's unlikely to be caused by the data in the partition table on the hard disk...

Now, I'll simply make some changes at several key points. After modifying, I'll test it for you...

[ Last edited by GOTOmsdos on 2007-4-17 at 10:14 AM ]
Floor 18 Posted 2007-04-17 10:32 ·  中国 广东 广州 教育网
铂金会员
★★★★
C++启程者
Credits 5,154
Posts 1,827
Joined 2003-07-18 00:00
22-year member
UID 7105
Gender Male
Status Offline
It has been fixed. Try this. Will you see the prompt?

http://zhenlove.com.cn/cndos/fileup/files/test.rar
Floor 19 Posted 2007-04-17 10:58 ·  中国 黑龙江 哈尔滨 电信
高级用户
★★★
Credits 760
Posts 357
Joined 2005-10-10 22:33
20-year member
UID 43332
Status Offline
Network card, just came up!
Tips:
CHECKING IF DRIVE 1 SUPPORT EXTINT13...
PASSED
GETING DRIVE 1 INFO...
Floor 20 Posted 2007-04-17 11:03 ·  中国 广东 广州 教育网
铂金会员
★★★★
C++启程者
Credits 5,154
Posts 1,827
Joined 2003-07-18 00:00
22-year member
UID 7105
Gender Male
Status Offline
Okay, got some clues, thanks. I'll continue to find the reason based on this clue...

Is your first hard drive IDE or SATA? When was it bought? What model? How large?
Floor 21 Posted 2007-04-17 11:07 ·  中国 黑龙江 哈尔滨 电信
高级用户
★★★
Credits 760
Posts 357
Joined 2005-10-10 22:33
20-year member
UID 43332
Status Offline
They are all IDE ones, probably bought in 2002. The model is: ST380011A, 80G!
Floor 22 Posted 2007-04-17 11:29 ·  中国 广东 广州 教育网
铂金会员
★★★★
C++启程者
Credits 5,154
Posts 1,827
Joined 2003-07-18 00:00
22-year member
UID 7105
Gender Male
Status Offline
Oh, IDE-related, can also look for the reason....
Is it a problem with detecting hard disk parameters?
The following program no longer detects hard disk parameters, directly reads the partition table, let's try it..
http://zhenlove.com.cn/cndos/fileup/files/test2.rar
Floor 23 Posted 2007-04-17 11:37 ·  中国 黑龙江 哈尔滨 电信
高级用户
★★★
Credits 760
Posts 357
Joined 2005-10-10 22:33
20-year member
UID 43332
Status Offline
Still the same prompt
CHECKING IF DRIVE 1 SUPPORT EXTINT13...
PASSED
GETING DRIVE 1 INFO...
Floor 24 Posted 2007-04-17 11:46 ·  中国 河南 开封 教育网
中级用户
★★
Credits 214
Posts 94
Joined 2007-01-11 10:39
19-year member
UID 76165
Gender Male
Status Offline
Test version on floor 22, my virtual machine is like 0451lym's
CHECKING IF DRIVE 1 SUPPORT EXTINT13...
PASSED
GETING DRUVIVE 1 INFO...
Floor 25 Posted 2007-04-17 12:04 ·  中国 广东 广州 教育网
铂金会员
★★★★
C++启程者
Credits 5,154
Posts 1,827
Joined 2003-07-18 00:00
22-year member
UID 7105
Gender Male
Status Offline
I'm sorry, I just uploaded the same file!
This time it's:
http://zhenlove.com.cn/cndos/fileup/files/test3.rar

Input: TODISK -P
Floor 26 Posted 2007-04-17 12:08 ·  中国 黑龙江 哈尔滨 电信
高级用户
★★★
Credits 760
Posts 357
Joined 2005-10-10 22:33
20-year member
UID 43332
Status Offline
Got it! Probably because I have a physical floppy drive, and your program automatically detected the floppy drive! I pressed Enter twice in the middle!

The prompts are as follows:
checking if drive 1 support extint13...
passed
checking if drive 2 support extint13...
passed
checking if drive 3 support extint13...
passed
reading drive 1 DPT...
passed
reading sector 10506510...
passed
reading sector 21013020...
passed
reading sector 29431080...
passed
reading sector 37833075...
passed
reading sector 102398310...
passed
reading drive 2 DPT...
passed
reading sector 16065...
passed

INSERT DISKETTE FOR DRIVE A: AND PRESS ANY KEY WHEN READY
INSERT DISKETTE FOR DRIVE B: AND PRESS ANY KEY WHEN READY


No. DR P P N : A ID H FILE SYSTEM LABEL START TOTAL MB
> 1 A: 01 FAT12 SOS_4# 0 11520 5
> 2 B: 01 FAT12 SOS_4# 0 18 0
1> * 1 3 C: *0B FAT32 NO NAME 63 10506447 5130
2 4 D: 0B FAT32 NO NAME 10506573 10506447 5130
3 5 E: 0B FAT32 NO NAME 21013083 8417997 4110
4 6 F: 0B FAT32 NO NAME 29431143 8401932 4102
5 7 G: 0B FAT32 37833138 64565172 31525
6 8 H: 0B FAT32 软件备份 102398373 53898012 26317
2> 1 07 HPFS/NTFS 16128 156280257 76308
Floor 27 Posted 2007-04-17 12:24 ·  中国 河南 开封 教育网
中级用户
★★
Credits 214
Posts 94
Joined 2007-01-11 10:39
19-year member
UID 76165
Gender Male
Status Offline
Test the 25th floor version, it runs successfully
But the drive letter after not loading IFS..
Is it that it cannot be loaded itself, or is the 25th floor version streamlined of this function??
Floor 28 Posted 2007-04-17 12:28 ·  中国 黑龙江 哈尔滨 电信
高级用户
★★★
Credits 760
Posts 357
Joined 2005-10-10 22:33
20-year member
UID 43332
Status Offline
Hehe, I tested with the two versions on the first floor, but the program doesn't execute further when I press Enter!
The post on the 25th floor gave me hope!
Brother, you've worked hard!!!
Please keep it up!!!
Floor 29 Posted 2007-04-17 12:45 ·  中国 江苏 常州 溧阳市 电信
银牌会员
★★★
Credits 2,404
Posts 946
Joined 2005-09-08 13:44
20-year member
UID 42345
Status Offline
Hello 0451lym and llztt1:

The initial test run on my machine was successful!

I don't know the reason. When I tried to continue the test with GHOST to see if the drive letter conversion process could be completed, it always froze!

And now, after entering DOS, it's impossible to extract a 2M ZIP file! I only have a USB flash drive with me right now, and I'll change to another USB flash drive tomorrow to have a look!
Floor 30 Posted 2007-04-17 12:48 ·  中国 黑龙江 哈尔滨 电信
高级用户
★★★
Credits 760
Posts 357
Joined 2005-10-10 22:33
20-year member
UID 43332
Status Offline
Don't rush, take it step by step, stability is the first!
I am full of confidence in GOTOmsdos!!!!!
Forum Jump: