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 10:47
中国DOS联盟论坛 » DOS开发编程 & 发展交流 (开发室) » miniTO Single Program DPT/DBR/FAT/CMOS Multi-function Maintenance Tool View 26,880 Replies 230
Floor 181 Posted 2007-04-23 11:30 ·  中国 广东 广州 教育网
铂金会员
★★★★
C++启程者
Credits 5,154
Posts 1,827
Joined 2003-07-18 00:00
22-year member
UID 7105
Gender Male
Status Offline
Today, a strange problem occurred: because my USB flash drive is recognized as drive C, that is, 1:1. I tried to backup in the afternoon but couldn't!


After USB-HD boot, it should be drive C.
If you can't perform GHOST, it's not clear. You can try TOdisk, especially for small partitions. Of course, you also need to use it for restoration.
Floor 182 Posted 2007-04-23 12:36 ·  中国 江苏 常州 溧阳市 电信
银牌会员
★★★
Credits 2,404
Posts 946
Joined 2005-09-08 13:44
20-year member
UID 42345
Status Offline
Actually, it's not that GHOST can't be used, but I just don't know which link has the problem. The same code and the same file (both files processed by MINITO) can't select the USB drive. Whether it's backup or restore, you can't select C:(1:1). Even if I backup or restore other disks like G:, I can't select C: to save and search for GHO files. That means WBAT can't handle it. Could it be a problem with WBAT? If that's the case, the rest are normal! The following are all the same files processed by MINITO, and the picture also reflects it! There shouldn't be such a problem according to reason!
Floor 183 Posted 2007-04-23 13:05 ·  中国 广东 广州 教育网
铂金会员
★★★★
C++启程者
Credits 5,154
Posts 1,827
Joined 2003-07-18 00:00
22-year member
UID 7105
Gender Male
Status Offline
It's easy to figure out. You manually use GHOST to back up the USB drive under DOS and see if it works, and it will be clear soon.
Floor 184 Posted 2007-04-23 14:13 ·  中国 广东 广州 教育网
铂金会员
★★★★
C++启程者
Credits 5,154
Posts 1,827
Joined 2003-07-18 00:00
22-year member
UID 7105
Gender Male
Status Offline
Update:
Add the function to print DPT/DBR/FAT in the hard disk or saved in the file

Usage:
miniTO -pall[p] [n]

-pall[p] Print the partition table chain/DBR of all hard disks, with p for full-screen pause
[n] Single hard disk

miniTO -pallf[p] [n] file

-pallf[p] Print the partition table chain/DBR in the file
[n] Single hard disk

miniTO -pdpt[p] n:n|?:
-pdbr[p]
-pfat[p]
Print DPT/DBR/FAT in the partition

-pfile[p] file

Print DPT/DBR/FAT in the file
Floor 185 Posted 2007-04-23 21:49 ·  中国 广东 深圳 福田区 电信
高级用户
★★
Credits 525
Posts 222
Joined 2006-08-28 21:07
19-year member
UID 61476
Status Offline
Originally posted by GOTOmsdos at 2007-4-23 11:26:

Even if you have no knowledge of NT/VISTA, it's okay

Borrowing arrows with straw boats:
First clear the DBR, then run them, will there be soon?


DBR means the partition boot guidance information.

Maybe I didn't make it clear enough, causing Brother GOTOmsdos not to understand.

I mean, with only knowing the partition type (ID), such as established by PQ, PPM, GDISK, SPFDISK, etc.
NT/FAT32 type partition, establish the boot information of NT, Vista. (/force parameter forces establishment)

Copy files like ntdetect.com to this partition to boot.

Can this be done? Because BootPart only supports FAT32 partitions well, not supporting Vista.

I'll stop here.
Floor 186 Posted 2007-04-23 22:15 ·  中国 广东 广州 教育网
铂金会员
★★★★
C++启程者
Credits 5,154
Posts 1,827
Joined 2003-07-18 00:00
22-year member
UID 7105
Gender Male
Status Offline
That's right. What I'm talking about is this matter... For example, to obtain the partition boot sector of DOS, you can first create a FAT partition (maybe it doesn't need to be formatted), and its ID will be in the partition table. Then, clear the DBR, and then run SYS, isn't it done? It mainly depends on what it does. To obtain the boot information of NT, after doing the previous things (you need to create an NTFS partition), then use the FIXBOOT of the 2K/XP recovery console, isn't it done? The same principle applies to obtaining the MBR and VISTA.
Floor 187 Posted 2007-04-24 04:07 ·  中国 广东 广州 教育网
铂金会员
★★★★
C++启程者
Credits 5,154
Posts 1,827
Joined 2003-07-18 00:00
22-year member
UID 7105
Gender Male
Status Offline
Is creating the miniTO WIN version...
Floor 188 Posted 2007-04-24 10:52 ·  中国 广东 深圳 福田区 电信
高级用户
★★
Credits 525
Posts 222
Joined 2006-08-28 21:07
19-year member
UID 61476
Status Offline
Originally posted by GOTOmsdos at 2007-4-24 04:07:
Building the miniTO WIN version...


I made the PE of the system recovery console today, but accidentally broke my classmate's system.

See if I can upload the changed DBR within two weeks.

I suggest you further streamline the help for minito, display it in one screen, which will be more convenient for beginners. You can organize the current help into detailed explanations of parameters (-p -d -turn -r/c/s) + /?.

The current help is really ugly and hard to find, requiring pressing several returns. The help is not user-friendly.
Floor 189 Posted 2007-04-24 11:40 ·  中国 江苏 常州 溧阳市 电信
银牌会员
★★★
Credits 2,404
Posts 946
Joined 2005-09-08 13:44
20-year member
UID 42345
Status Offline
The operation that cannot be done 1:1 on (C drive) as mentioned yesterday is because there is a < symbol in the information. I can display C: by intercepting before the <. Could you please change it, GOTOmsdos? The current version seems to be much larger than the initial one! I remember it was only about 40KB at the beginning.

[ Last edited by terse on 2007-4-24 at 11:47 AM ]
Floor 190 Posted 2007-04-24 14:46 ·  中国 广东 广州 教育网
铂金会员
★★★★
C++启程者
Credits 5,154
Posts 1,827
Joined 2003-07-18 00:00
22-year member
UID 7105
Gender Male
Status Offline
Been busy all day.
Haven't used VC for a long time, reinstalled it today and got it running!
Now just got the working Windows version out
But the main program has just been set up and there are still problems,,, especially with parameters,, now put it out for everyone to see the effect on XP:

Parameters must be entered with more than four, otherwise it's abnormal,
And there's one thing very strange:
Can't compile with RELEASE mode, must use DEBUG mode, it's frustrating, making the program very large.
Too late today, will fix it tomorrow..

Please refer to:
http://www.cn-dos.net/forum/viewthread.php?tid=29992&sid=3Rw4WG

[ Last edited by GOTOmsdos on 2007-4-24 at 03:04 PM ]
Floor 191 Posted 2007-04-24 14:57 ·  中国 广东 广州 教育网
铂金会员
★★★★
C++启程者
Credits 5,154
Posts 1,827
Joined 2003-07-18 00:00
22-year member
UID 7105
Gender Male
Status Offline
Because there is a < symbol in the information, I intercepted it to the front of < and can display C:

There is no > sign in the display of MINITO now
Floor 192 Posted 2007-04-24 21:03 ·  中国 安徽 马鞍山 电信
金牌会员
★★★★
Credits 3,946
Posts 1,884
Joined 2006-01-20 13:00
20-year member
UID 49283
Gender Male
Status Offline
Originally posted by GOTOmsdos at 2007-4-24 14:46:
Been busy all day,
Haven't used VC for a long time, reinstalled it today and got it running!
Just managed to get a working Windows version now
But the main program has just been set up and there are still issues... Especially with parameters... Now I'm releasing it, ...


Thanks a lot, very efficient.
It seems I need to start modifying the batch processing.
Thanks again, and I'll come to ask for help if I have any questions.
Windows 一键还原
http://www.yjhy.com
Floor 193 Posted 2007-04-24 22:00 ·  中国 河南 济源 联通
中级用户
★★
Credits 343
Posts 50
Joined 2004-02-21 00:00
22-year member
UID 18062
Gender Male
Status Offline
Support, purely for learning
Floor 194 Posted 2007-04-24 22:29 ·  中国 黑龙江 哈尔滨 电信
高级用户
★★★
Credits 760
Posts 357
Joined 2005-10-10 22:33
20-year member
UID 43332
Status Offline
Originally posted by terse at 2007-4-24 11:40:
The operation on 1:1 (C drive) that couldn't be done yesterday was because there was a < symbol in the information. I intercepted it to before the < and could display C:...


Locate and read directly, don't take even one more character!
That's it. Otherwise, it still needs to be filtered!
Floor 195 Posted 2007-04-25 08:59 ·  中国 江苏 常州 电信
银牌会员
★★★
Credits 2,404
Posts 946
Joined 2005-09-08 13:44
20-year member
UID 42345
Status Offline
Originally posted by 0451lym at 2007-4-24 22:29:

Directly locate and read, don't take one more character!
That's it. Otherwise, filtering is still needed!

Because I'm not making a one-key operation, first use WBAT to make a wizard, and then process %WBAT% with STRINGS, but there are < symbols in %WBAT% which seem to cause WBAT processing errors!
strings gpath=left %wbat%,9
strings gpath=RIGHT %gpath%,2
Is there a simpler way? Hope to be instructed... (Of course, unless the initial information can be processed, but I want to display comprehensive partition information on the screen for clearer understanding)

Originally posted by GOTOmsdos at 2007-4-24 14:57:

There are no > signs in the current display of MINITO.


The one I use is the latest, and there are still < for the information processed on the USB flash drive.

[ Last edited by terse on 2007-4-25 at 09:02 AM ]
Forum Jump: