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 21:16
中国DOS联盟论坛 » DOS疑难解答 & 问题讨论 (解答室) » How to implement automatically adjusting partition size with a DOS program??? View 11,494 Replies 98
Original Poster Posted 2004-03-07 00:00 ·  中国 新疆 伊犁哈萨克自治州 奎屯市 电信
中级用户
★★
Credits 344
Posts 55
Joined 2004-03-07 00:00
22-year member
UID 19425
Gender Male
Status Offline
Please clarify the specific disk partitioning tools or commands you are using, as the specific implementation methods for automatically partitioning in DOS vary depending on the tools. For example, using FDISK has certain operation steps, but the specific automated implementation needs to be combined with batch scripting or other means according to the actual situation. Here is a general idea: First, you need to calculate the size of the last partition that needs to be reduced and the size of the new main partition. Then, use relevant disk management commands in DOS to perform the operations of reducing the original partition and creating the new main partition. But specific operations need to be adjusted according to the actual disk situation and the tools used.
Floor 2 Posted 2004-03-07 00:00 ·  中国 重庆 电信
中级用户
Credits 257
Posts 31
Joined 2003-11-07 00:00
22-year member
UID 12617
Gender Male
Status Offline
Floor 3 Posted 2004-03-07 00:00 ·  中国 新疆 伊犁哈萨克自治州 奎屯市 电信
中级用户
★★
Credits 344
Posts 55
Joined 2004-03-07 00:00
22-year member
UID 19425
Gender Male
Status Offline
The following is a quote from cqbbds on 2004-3-7 16:14:21:
Use diskgen

What parameters to add! Thanks! Also, where can the software be downloaded! Thanks.
Floor 4 Posted 2004-03-07 00:00 ·  中国 广东 河源 电信
高级用户
★★
Credits 916
Posts 201
Joined 2003-05-04 00:00
23-year member
UID 1849
Gender Male
Status Offline
The following is the statement by mewf on 2004-3-7 15:47:10:
How to automatically carve out a primary partition from the last partition of a hard disk that has already been partitioned! Thank you!!
(I mainly want to do one-key recovery, but how to use a DOS program to automatically reduce the size of the last partition of the hard disk and create a primary partition without losing data)


This is exactly the question I want to ask. Who can help?
Floor 5 Posted 2004-03-07 00:00 ·  中国 新疆 伊犁哈萨克自治州 奎屯市 电信
中级用户
★★
Credits 344
Posts 55
Joined 2004-03-07 00:00
22-year member
UID 19425
Gender Male
Status Offline
55555555555! It seems no one cares about us! So pitiful!
Floor 6 Posted 2004-03-07 00:00 ·  中国 广东 河源 电信
高级用户
★★
Credits 916
Posts 201
Joined 2003-05-04 00:00
23-year member
UID 1849
Gender Male
Status Offline
It is said that it can be achieved with PQMAGIC, but I tried it and it didn't work. Please come here to have a look:
http://bbs.long-jf.com/showthread.php?s=&threadid=154062
Floor 7 Posted 2004-03-08 00:00 ·  中国 新疆 伊犁哈萨克自治州 奎屯市 电信
中级用户
★★
Credits 344
Posts 55
Joined 2004-03-07 00:00
22-year member
UID 19425
Gender Male
Status Offline
The following is a quote from walu on 2004-3-7 21:41:25:
It is said that it can be achieved with PQMAGIC. I tried it but didn't succeed. Please go here to have a look:
http://bbs.long-jf.com/showthread.php?s=&threadid=154062

Boss, can you post it here for me? That forum doesn't allow registration anymore! Oh no
Floor 8 Posted 2004-03-09 00:00 ·  中国 重庆 电信
银牌会员
★★★
Credits 2,202
Posts 499
Joined 2003-06-12 00:00
23-year member
UID 4876
Gender Male
Status Offline
If your primary partition hasn't been used up and there's still available space behind, PQ is okay. I've divided it...
一年四季,枫叶红了又红;人生四季,失去的,还能再来吗?—— !
Floor 9 Posted 2004-03-09 00:00 ·  中国 新疆 伊犁哈萨克自治州 奎屯市 电信
中级用户
★★
Credits 344
Posts 55
Joined 2004-03-07 00:00
22-year member
UID 19425
Gender Male
Status Offline
What I mean is to use commands + parameters! No manual operation is needed! Is that okay? If it's okay, can you write out the command format? Thank you! Please! Urgent! If manual operation is needed, then it's not okay!!!!!
Floor 10 Posted 2004-03-10 00:00 ·  中国 山东 烟台 莱山区 联通
银牌会员
★★★
天的白色影子
Credits 2,343
Posts 636
Joined 2004-03-06 00:00
22-year member
UID 19350
Gender Male
Status Offline
Maybe the command-line parameters of Ghost can work. Which big shot knows the specific situation? Thanks.
Floor 11 Posted 2004-03-11 00:00 ·  中国 黑龙江 牡丹江 中移铁通
高级用户
★★
Credits 919
Posts 198
Joined 2004-01-17 00:00
22-year member
UID 15706
Gender Male
Status Offline
Floor 12 Posted 2004-03-11 00:00 ·  中国 河北 石家庄 联通
铂金会员
★★★★
网络独行侠
Credits 6,962
Posts 2,753
Joined 2003-04-16 00:00
23-year member
UID 1565
Gender Male
From 河北保定
Status Offline
The problem raised by the poster is indeed a very challenging one. At least so far, I haven't found a similar software. Gdisk can only delete or create partitions, but it can't adjust the partition size without data loss.

There is a workaround. Of course, I haven't experimented, but theoretically it is feasible: first use ghost to back up the data of the partition to be adjusted (provided that there isn't too much data on the partition you want to adjust and there is enough space to store the gho file), then use gdisk to delete the corresponding partition and recreate it according to the new requirements. After the recreation is complete, use ghost to restore the data.
偶只喜欢回答那些标题和描述都很清晰的帖子!
如想解决问题,请认真学习“这个帖子”和“这个帖子”并努力遵守,如果可能,请告诉更多的人!
Floor 13 Posted 2004-03-11 00:00 ·  中国 山东 烟台 联通
银牌会员
★★★
天的白色影子
Credits 2,343
Posts 636
Joined 2004-03-06 00:00
22-year member
UID 19350
Gender Male
Status Offline
Climbing, can you give specific implementation?
Floor 14 Posted 2004-03-12 00:00 ·  中国 河北 石家庄 联通
铂金会员
★★★★
网络独行侠
Credits 6,962
Posts 2,753
Joined 2003-04-16 00:00
23-year member
UID 1565
Gender Male
From 河北保定
Status Offline
After thinking it over carefully, my method is rather far-fetched and not practically feasible because there are too many unforeseeable factors. If it's operated on the local machine, it can be defined according to the actual situation, but it's not universal.
偶只喜欢回答那些标题和描述都很清晰的帖子!
如想解决问题,请认真学习“这个帖子”和“这个帖子”并努力遵守,如果可能,请告诉更多的人!
Floor 15 Posted 2004-03-12 00:00 ·  中国 新疆 伊犁哈萨克自治州 奎屯市 电信
中级用户
★★
Credits 344
Posts 55
Joined 2004-03-07 00:00
22-year member
UID 19425
Gender Male
Status Offline
Yeah! Thanks! Can you give the specific commands? Also, how to make ghost and gdisk recognize which partition is the last partition? I see that Lenovo's one-key recovery has the function to adjust the hard disk partitions but don't know how it adjusts. Is there any expert who can debug Lenovo's one-key recovery? Just analyze how it operates on partitions! Thanks to the kind people upstairs who gave advice! Thanks! If it's really figured out later, I will definitely share it with you! Make all the things of one-key recovery public!
1 2 3 7 Next ›
Forum Jump: