Hello viewer In this tutorial I'll show you how we can create a batch file which will shrink our existing volume an create a new volume on window machine.
You can follow the video tutorial give below or you can follow the steps mentioned here
I am using a test machine to demonstrate this procedures So in this window machine we a one volume that is C and it's size is around 150GB see the below screenshot
so our goal is to create a new volume of 40GB out of this 150GB drive to achieve like something mentioned below
So here is the script for this process in one single click
@echo off
(echo select disk 0
echo list vol
echo select volume=C
echo shrink desired 40000
echo list volume
echo create partition primary
echo format quick fs=ntfs label="Data"
echo assign letter=G:
) | diskpart
pause
what all you need is to type this into a notepad and save this file as .bat then run
as administrator.
very important : This script is wrote to keep in mind that there is only one volume on your hard disk that is "C" and you need to create the new volume on the same disk like in our case we have only one disk that is disk 0
so lets test the scripts in real world. Please run the script as an administrator
That's it this will save lots of your time.Please see the final out put as showing the screenshot below
I hope you like this tutorial please do visit on by blog for more informative tutorial.
Thanks and have a nice day!!!!!!
You can follow the video tutorial give below or you can follow the steps mentioned here
I am using a test machine to demonstrate this procedures So in this window machine we a one volume that is C and it's size is around 150GB see the below screenshot
so our goal is to create a new volume of 40GB out of this 150GB drive to achieve like something mentioned below
So here is the script for this process in one single click
@echo off
(echo select disk 0
echo list vol
echo select volume=C
echo shrink desired 40000
echo list volume
echo create partition primary
echo format quick fs=ntfs label="Data"
echo assign letter=G:
) | diskpart
pause
what all you need is to type this into a notepad and save this file as .bat then run
as administrator.
very important : This script is wrote to keep in mind that there is only one volume on your hard disk that is "C" and you need to create the new volume on the same disk like in our case we have only one disk that is disk 0
so lets test the scripts in real world. Please run the script as an administrator
That's it this will save lots of your time.Please see the final out put as showing the screenshot below
I hope you like this tutorial please do visit on by blog for more informative tutorial.
Thanks and have a nice day!!!!!!
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.