中国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-08-15 11:04
47,813 topics / 349,903 posts / today 1 new / 48,257 members
DOS疑难解答 & 问题讨论 (解答室) » How to implement automatically adjusting partition size with a DOS program???
Printable Version  12,245 / 98
Floor1 mewf Posted 2004-03-07 00:00
中级用户 Posts 55 Credits 344
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.
Floor2 cqbbds Posted 2004-03-07 00:00
中级用户 Posts 31 Credits 257
Floor3 mewf Posted 2004-03-07 00:00
中级用户 Posts 55 Credits 344
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.
Floor4 walu Posted 2004-03-07 00:00
高级用户 Posts 201 Credits 916
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?
Floor5 mewf Posted 2004-03-07 00:00
中级用户 Posts 55 Credits 344
55555555555! It seems no one cares about us! So pitiful!
Floor6 walu Posted 2004-03-07 00:00
高级用户 Posts 201 Credits 916
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
Floor7 mewf Posted 2004-03-08 00:00
中级用户 Posts 55 Credits 344
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
Floor8 xiaojun Posted 2004-03-09 00:00
银牌会员 Posts 499 Credits 2,202
If your primary partition hasn't been used up and there's still available space behind, PQ is okay. I've divided it...
Floor9 mewf Posted 2004-03-09 00:00
中级用户 Posts 55 Credits 344
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!!!!!
Floor10 qzwqzw Posted 2004-03-10 00:00
银牌会员 Posts 636 Credits 2,343
Maybe the command-line parameters of Ghost can work. Which big shot knows the specific situation? Thanks.
Floor11 moroko Posted 2004-03-11 00:00
高级用户 Posts 198 Credits 919
Floor12 Climbing Posted 2004-03-11 00:00
铂金会员 Posts 2,753 Credits 6,962 From 河北保定
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.
Floor13 qzwqzw Posted 2004-03-11 00:00
银牌会员 Posts 636 Credits 2,343
Climbing, can you give specific implementation?
Floor14 Climbing Posted 2004-03-12 00:00
铂金会员 Posts 2,753 Credits 6,962 From 河北保定
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.
Floor15 mewf Posted 2004-03-12 00:00
中级用户 Posts 55 Credits 344
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 47  Next
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023