Solved

Shrink and create new partition in command line?

Posted on 2010-11-13
3
482 Views
Last Modified: 2012-05-10
I am looking for a way to have a script that will take a computer and create a new partition out of what is already there. So for example, there is the C volume. I want to take this C volume and break off 8 gigs and create a new partition and assign it the letter U. After everything is done I want to be able to have a 8 gig partition called U.

I am having a hard time to figure out what commands to run. I need to run this from a script.

Thanks in advance!
0
Comment
Question by:bojangles714
3 Comments
 
LVL 10

Expert Comment

by:Wolfhere
ID: 34128337
You can use gparted live CD (http://gparted.sourceforge.net/larry/livecd/livecd.htm), although all the scripting has been done. You can use the command line options, if that helps.
0
 

Author Comment

by:bojangles714
ID: 34128420
I will not have physical access to the machine. Any other suggestions?
0
 
LVL 15

Accepted Solution

by:
Lee Osborne earned 500 total points
ID: 34130384
You can use the Disk Management tool to connect to the remote machine and manage the drive partitions as if it were on the local PC.

Start > (Right Click) Computer > Manage
Right click Computer Management > Connect to another PC

Connect to the PC you want to change the partitions on, expand storage, and click on Disk Management.

From here, you can shrink and resize the partions. I'm not sure if this is something I would want to do remotely, but in theory, there shouldn't be any problems anyway!

Lee
0

Featured Post

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

How to remove superseded packages in windows w60 or w61 installation media (.wim) or online system to prevent unnecessary space. w60 means Windows Vista or Windows Server 2008. w61 means Windows 7 or Windows Server 2008 R2. There are various …
Active Directory replication delay is the cause to many problems.  Here is a super easy script to force Active Directory replication to all sites with by using an elevated PowerShell command prompt, and a tool to verify your changes.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This Micro Tutorial will teach you how to the overview of Microsoft Security Essentials. This is a free anti-virus software that guards your PC against viruses, spyware, worms, and other malicious software. This will be demonstrated using Windows…

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now