中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-10-31 04:07
47,815 topics / 349,930 posts / today 0 new / 48,290 members
DOS开发编程 & 发展交流 (开发室) » ****Compressed Volume! Sector/Image/Sector Reading and Writing] The Mini Hard Disk Reader and Writer is Completed B
Printable Version  27,668 / 93
Floor61 GOTOmsdos Posted 2006-08-08 15:17
铂金会员 Posts 1,827 Credits 5,154
Floor62 GOTOmsdos Posted 2006-08-11 18:12
铂金会员 Posts 1,827 Credits 5,154
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 ]
Floor63 GOTOmsdos Posted 2006-08-15 01:04
铂金会员 Posts 1,827 Credits 5,154
The processing of extended partitions has been realized! It will be added soon!...
Floor64 GOTOmsdos Posted 2006-08-16 07:38
铂金会员 Posts 1,827 Credits 5,154
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 */
Floor65 thzhx Posted 2007-06-23 20:31
新手上路 Posts 1 Credits 2
It's hard work. Let's study.
Floor66 johnsonlam Posted 2007-06-26 16:58
银牌会员 Posts 497 Credits 1,410 From 九龍,香港

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.
Floor67 GOTOmsdos Posted 2007-06-28 21:00
铂金会员 Posts 1,827 Credits 5,154
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 [email protected]
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
Floor68 z8232577 Posted 2007-11-23 19:38
新手上路 Posts 1 Credits 2
Can a BIN bootloader be written to the boot sector of a hard disk?
Floor69 wgzlong Posted 2007-11-29 17:23
新手上路 Posts 5 Credits 9
Support
Floor70 shim Posted 2007-11-29 20:41
初级用户 Posts 73 Credits 85
Expert, studying...
Floor71 qwjhunter Posted 2007-12-05 15:21
新手上路 Posts 1 Credits 2
Oh my god, what forum still has a 20-minute interval? Hurry to do things.
Floor72 bingo0717 Posted 2007-12-05 15:57
新手上路 Posts 1 Credits 2
Take a look, you've worked hard!!!
Floor73 maclover815 Posted 2007-12-13 22:36
初级用户 Posts 47 Credits 92
The signature is well done.
Floor74 gosyzj Posted 2008-01-09 20:21
新手上路 Posts 1 Credits 2
Depressed, writing decompression under DOS by myself~~
Floor75 wzh442718973 Posted 2008-01-09 22:04
新手上路 Posts 8 Credits 16
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.
Prev  1 … 2 3 4 5 6 7  Next
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023