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-07-05 00:17
中国DOS联盟论坛 » DOS开发编程 & 发展交流 (开发室) » ****Compressed Volume! Sector/Image/Sector Reading and Writing] The Mini Hard Disk Reader and Writer is Completed B View 25,126 Replies 93
Floor 61 Posted 2006-08-08 15:17 ·  中国 广东 广州 教育网
铂金会员
★★★★
C++启程者
Credits 5,154
Posts 1,827
Joined 2003-07-18 00:00
22-year member
UID 7105
Gender Male
Status Offline
Floor 62 Posted 2006-08-11 18:12 ·  中国 广东 广州 教育网
铂金会员
★★★★
C++启程者
Credits 5,154
Posts 1,827
Joined 2003-07-18 00:00
22-year member
UID 7105
Gender Male
Status Offline
The following functions have been implemented!

1

Support for compressed multi-volume disks for antique hard drives (does not support extended INT13)

Although extended INT13 is not supported, it is not a problem to compress the sectors of the hard drive into files..

But when restoring the image file compressed at a certain position on a hard drive to a different position on another hard drive, the result is incorrect.

To solve this problem, one has to rack one's brains!

Because the structure in the previously compressed file has to be based on the geometric structure of the hard drive sectors,

However, when this file is to be decompressed to a different position on a different hard drive in the future, there will be inconsistencies. The decompressed data cannot be directly written to the hard drive..

So, we need to re-analyze the physical structure of the hard drive, and then set up several buffers, adjust the decompressed data to the allowable data size, and handle the remaining data, etc. It is quite complicated to handle...

But I've cracked it! And it only took very little code!

The test results are correct!


2

Regardless of whether extended INT13 is supported or not, copying between hard drives, partitions (limited to primary partitions) and any sectors can be carried out.

This also involves interpreting the physical structure of the hard drive and working in coordination with hard drives that support extended INT13..

***********************

************************

(Small supplement: Originally, the buffer for reading and writing hard drives that support extended INT13 was set to 100 sectors, and now it is found that it may be increased to 125 sectors (64,000 bytes)!)

So far, all the functions that I wanted to add have been completed, and I am very satisfied.. And I have tried my best to make the code concise and efficient, and consider the common habits of users.

Now, I am organizing the code, and it will be fully completed soon!

(Tomorrow, I will go buy a few more hard drives to carry out comprehensive and large-scale testing! Also, see if there are antique hard drives that do not support extended INT13!

The old hard drive of about 2GB that I bought some time ago actually still supports extended INT13! Oh my god!! Extremely disappointed!

Note: Since there are no hard drives that do not support extended INT13 now, the previous tests on the reading and writing of basic INT13 (CHS mode) were carried out by intentionally reversing the code (that is, intentionally reversing the support for extended and non-support, so that support becomes non-support, so as to test the results of the CHS mode code... Also, using floppy disks for testing)
)

[ Last edited by GOTOmsdos on 2006-8-11 at 18:50 ]
Floor 63 Posted 2006-08-15 01:04 ·  中国 广东 广州 教育网
铂金会员
★★★★
C++启程者
Credits 5,154
Posts 1,827
Joined 2003-07-18 00:00
22-year member
UID 7105
Gender Male
Status Offline
The processing of extended partitions has been realized! It will be added soon!...
Floor 64 Posted 2006-08-16 07:38 ·  中国 广东 广州 教育网
铂金会员
★★★★
C++启程者
Credits 5,154
Posts 1,827
Joined 2003-07-18 00:00
22-year member
UID 7105
Gender Male
Status Offline
The function of supporting the processing of DOS drive letters (of course, this includes logical drives in extended partitions) has been implemented.

For example:

mydisk -r e: -fd:\cback.z -c /* Image mode */

mydisk -r e: f: /* Sector mode */
Floor 65 Posted 2007-06-23 20:31 ·  中国 湖南 湘潭 联通
新手上路
Credits 2
Posts 1
Joined 2007-04-15 04:17
19-year member
UID 85217
Gender Male
Status Offline
It's hard work. Let's study.
Floor 66 Posted 2007-06-26 16:58 ·  中国 香港
银牌会员
★★★
阿林
Credits 1,410
Posts 497
Joined 2004-06-28 00:00
22-year member
UID 27551
Gender Male
From 九龍,香港
Status Offline

Does brother gotoMSDOS have time to sort out a simpler explanation?

I want to put miniTO on the web page so that more people can benefit.
我 的 網 站 - http://optimizr.dyndns.org
Floor 67 Posted 2007-06-28 21:00 ·  中国 北京 鹏博士
铂金会员
★★★★
C++启程者
Credits 5,154
Posts 1,827
Joined 2003-07-18 00:00
22-year member
UID 7105
Gender Male
Status Offline
Hello, Brother Johnsonlam. I've been really busy lately and haven't been online for a long time. I just took some time to come over and have a look.

The miniTO DOS version has an embedded help which is also concise. Just put this up. If it needs to be in Chinese, then translate it. It's very short.

miniTO MBR/BOOT/FAT/CMOS Tool 1.9.1 Copyright(c) GOTOmsdos tdaim@sina.com
miniTO

] ]
/S|/R|/E|/C|/L

/T n:n|?:
/CMOSKEY
Common:
/FLOPPY : Support Floppy
/NoHP : Do not get HDD Parameter
/NTFSPRO : Support NTFSPRO DOS letter
/IFS : ... IFS ...
n : No.drive
n:n : drive:partition, e.g. 1:2
?: : WIN letter, e.g. D:

/?|/H : Print help
/D : Print Drive info. n=drive; A=Floppy
/P : Print Partition info. A=Floppy; :=DOS letters; F=FAT N=NTFS
FN=FAT&NTFS; L=Linux; NoH=No Hidden
/V : WIN Vol prior to DOS label
/S : Save
/R : Restore
/E : rEplace BOOT1/FAT1 with BOOT2/FAT2, FAT32 only
/C : Compare with file (/MBR|/BOOT/FAT UNneeded)
/L : Look info in drive/file
/MBR : Master Boot Record
/BOOT : DOS Boot Record. i.e. DBR
/FAT : File Allocation Table
/CMOS : MainBoard CMOS
/A : All partitions/drives, allowed with n
/Fxx : File, xx=name
/NoP : Not Pause during looking, with /L
/Y : Yes to write drive
/T : Turn to print ?:|n:n from n:n|?:
/CMOSKEY : Generate a CMOS key
Floor 68 Posted 2007-11-23 19:38 ·  中国 江西 吉安 电信
新手上路
Credits 2
Posts 1
Joined 2007-11-23 18:58
18-year member
UID 103548
Gender Male
Status Offline
Can a BIN bootloader be written to the boot sector of a hard disk?
Floor 69 Posted 2007-11-29 17:23 ·  中国 北京 电信
新手上路
Credits 9
Posts 5
Joined 2006-10-08 21:23
19-year member
UID 64957
Status Offline
Support
Floor 70 Posted 2007-11-29 20:41 ·  中国 陕西 西安 电信
初级用户
★★
Credits 85
Posts 73
Joined 2007-09-23 23:00
18-year member
UID 98146
Gender Male
Status Offline
Expert, studying...
Floor 71 Posted 2007-12-05 15:21 ·  中国 四川 成都 电信
新手上路
Credits 2
Posts 1
Joined 2007-12-05 15:06
18-year member
UID 104748
Gender Male
Status Offline
Oh my god, what forum still has a 20-minute interval? Hurry to do things.
Floor 72 Posted 2007-12-05 15:57 ·  中国 湖北 武汉 电信
新手上路
Credits 2
Posts 1
Joined 2007-12-05 15:30
18-year member
UID 104752
Gender Male
Status Offline
Take a look, you've worked hard!!!
Floor 73 Posted 2007-12-13 22:36 ·  中国 广东 腾讯云
初级用户
Credits 92
Posts 47
Joined 2007-12-07 13:20
18-year member
UID 104967
Gender Male
Status Offline
The signature is well done.
Floor 74 Posted 2008-01-09 20:21 ·  中国 广东 中山 电信
新手上路
Credits 2
Posts 1
Joined 2008-01-09 18:15
18-year member
UID 108118
Gender Male
Status Offline
Depressed, writing decompression under DOS by myself~~
Floor 75 Posted 2008-01-09 22:04 ·  中国 湖南 永州 电信
新手上路
Credits 16
Posts 8
Joined 2007-05-13 09:28
19-year member
UID 88366
Gender Male
Status Offline
Can try it, but I think it would be great if I could write support for large hard drives in assembly language by myself. Even DOS could be dispensed with.
Forum Jump: