Hello,
We are a team of programmers and we are evaluating the Image For Windows tool.
What we want to know is if there is a switch which extends a partition.
For example, we have a partition which is 50 Mb and we want to restore it to a partition (not a full drive) which is 100 Mb. Are we able somehow to extend the first partition to fit the second in order NOT to have unallocated space, through command prompt?
I would appreciate your help because this feature is very important for our decision.
Thank you in advance,
Theodosia Konstantinidou
Partition resizing in a batch file
-
- Posts: 785
- Joined: Fri Aug 12, 2011 1:24 am
Re: Partition resizing in a batch file
You may want to also check out BIBM.
It has great flexibility for programmers plus includes Image for DOS.
Mary
On 3/26/2014 3:15 PM, thkonsta wrote:
> Hello,
>
> We are a team of programmers and we are evaluating the Image For Windows tool.
> What we want to know is if there is a switch which extends a partition.
> For example, we have a partition which is 50 Mb and we want to restore it to a partition (not a full drive) which is 100 Mb. Are we able somehow to extend the first partition to fit the second in order NOT to have unallocated space, through command prompt?
>
> I would appreciate your help because this feature is very important for our decision.
>
> Thank you in advance,
>
>
> Theodosia Konstantinidou
>
>
It has great flexibility for programmers plus includes Image for DOS.
Mary
On 3/26/2014 3:15 PM, thkonsta wrote:
> Hello,
>
> We are a team of programmers and we are evaluating the Image For Windows tool.
> What we want to know is if there is a switch which extends a partition.
> For example, we have a partition which is 50 Mb and we want to restore it to a partition (not a full drive) which is 100 Mb. Are we able somehow to extend the first partition to fit the second in order NOT to have unallocated space, through command prompt?
>
> I would appreciate your help because this feature is very important for our decision.
>
> Thank you in advance,
>
>
> Theodosia Konstantinidou
>
>
Re: Partition resizing in a batch file
Theodosia,
See the /rs:n switch.
See the /rs:n switch.
-
- Posts: 3629
- Joined: Thu May 05, 2011 10:37 pm
Re: Partition resizing in a batch file
/x which can be combined with /kf if needed
"thkonsta" wrote in message news:7786@public.image...
Hello,
We are a team of programmers and we are evaluating the Image For Windows
tool.
What we want to know is if there is a switch which extends a partition.
For example, we have a partition which is 50 Mb and we want to restore it to
a partition (not a full drive) which is 100 Mb. Are we able somehow to
extend the first partition to fit the second in order NOT to have
unallocated space, through command prompt?
I would appreciate your help because this feature is very important for our
decision.
Thank you in advance,
Theodosia Konstantinidou
"thkonsta" wrote in message news:7786@public.image...
Hello,
We are a team of programmers and we are evaluating the Image For Windows
tool.
What we want to know is if there is a switch which extends a partition.
For example, we have a partition which is 50 Mb and we want to restore it to
a partition (not a full drive) which is 100 Mb. Are we able somehow to
extend the first partition to fit the second in order NOT to have
unallocated space, through command prompt?
I would appreciate your help because this feature is very important for our
decision.
Thank you in advance,
Theodosia Konstantinidou
Re: Partition resizing in a batch file
Hello,
First of all I would like to thank you all for your answers.
Brian K, we have seen the /rs:n switch, but this requires us to know the exact size of the target partition. What we want is a switch that enables the auto scale to the target partition.
TeraByte Support, can you provide us an example with the combination of the /x and /kf switches in the example that I had in my first post? It would be very helpful for us.
Thanks in advance!
First of all I would like to thank you all for your answers.
Brian K, we have seen the /rs:n switch, but this requires us to know the exact size of the target partition. What we want is a switch that enables the auto scale to the target partition.
TeraByte Support, can you provide us an example with the combination of the /x and /kf switches in the example that I had in my first post? It would be very helpful for us.
Thanks in advance!
Re: Partition resizing in a batch file
thkonsta wrote:
> What we want is a switch that enables
> the auto scale to the target partition.
Theodosia, the /x switch on its own will do exactly as you request. Restore your image into a larger partition and the partition will be "filled".
I assume there is no free space following the larger partition prior to the restore. If there is, the restored partition will be expanded to include this space.
> What we want is a switch that enables
> the auto scale to the target partition.
Theodosia, the /x switch on its own will do exactly as you request. Restore your image into a larger partition and the partition will be "filled".
I assume there is no free space following the larger partition prior to the restore. If there is, the restored partition will be expanded to include this space.
-
- Posts: 1646
- Joined: Fri Aug 12, 2011 12:51 am
Re: Partition resizing in a batch file
If the size is known you can specify it (e.g. /rs:100 to set the size to 100MiB). If the size is unknown and you want to expand to use all available space you would use /x. For example, if you're restoring a single partition to unallocated space (or replacing an existing partition) and want it to use all the unallocated/existing target space you would use /x. If you need to expand and leave unallocated space you can add the /kf option. For example, to expand the partition and leave 1GiB of space after it you would use /x /kf:1000.
In your example, restoring over an existing 100MiB partition (with no available space following it) would only require using the /x option. Restoring it into unallocated space that is larger than the 100MiB size you want would require specifying either the resize value (/rs:100MiB) or the amount to keep free (/kf). For example, if you are restoring the first of two partitions and know the second partition will expand to 20GiB you would use /x /kf:20000. The first partition would be restored and resized to leave 20GiB of unallocated space after it. The second partition would then be restored to the 20GiB unallocated space using the /x option.
In your example, restoring over an existing 100MiB partition (with no available space following it) would only require using the /x option. Restoring it into unallocated space that is larger than the 100MiB size you want would require specifying either the resize value (/rs:100MiB) or the amount to keep free (/kf). For example, if you are restoring the first of two partitions and know the second partition will expand to 20GiB you would use /x /kf:20000. The first partition would be restored and resized to leave 20GiB of unallocated space after it. The second partition would then be restored to the 20GiB unallocated space using the /x option.
-
- Posts: 3629
- Joined: Thu May 05, 2011 10:37 pm
Re: Partition resizing in a batch file
you can also use /m if needed.
the /m /x /kf types of options used in the type of restores it sounds like
you're doing...
"thkonsta" wrote in message news:7798@public.image...
the /m /x /kf types of options used in the type of restores it sounds like
you're doing...
"thkonsta" wrote in message news:7798@public.image...