disk volume extend diskpart

Is it possible to use XP to extend a primary disk using diskpart, I have a second disk added and my primary disk is running out of space
LVL 6
Sid_FAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Ivano ViolaSystem AdministratorCommented:
Find attached some good instructions regarding using diskpart.exe.

Hope this helps.
Diskpart.pdf
0
Sid_FAuthor Commented:
I have that article but can't extend the partition. I'm not sure the fact its vm'd is the problem, I have added a second virtual disk of 3gig
I'm basically extending volume 1 (2957mb) so that I can use the extra 3 gig as per below commands


DISKPART> list volume

  Volume ###  Ltr  Label        Fs     Type        Size     Status     Info
  ----------  ---  -----------  -----  ----------  -------  ---------  --------
  Volume 0     D                       CD-ROM          0 B
  Volume 1     C                NTFS   Partition   2957 MB  Healthy    System

DISKPART> list disk

  Disk ###  Status      Size     Free     Dyn  Gpt
  --------  ----------  -------  -------  ---  ---
  Disk 0    Online        13 GB    10 GB
  Disk 1    Online      3067 MB  3067 MB

DISKPART> select volume 1

Volume 1 is the selected volume.

DISKPART> extend size=3000 disk=1 noerr

DiskPart failed to extend the volume.
Please make sure the volume is valid for extending.

DISKPART>

0
vmwarun - ArunCommented:
You would receive the above mentioned error when you try to extend system or boot volumes.
You cannot extend the partition if the system page file is located on the partition. Move the page file to a partition that you do not want to extend.
More on diskpart - http://support.microsoft.com/kb/325590
 
0
The 7 Worst Nightmares of a Sysadmin

Fear not! To defend your business’ IT systems we’re going to shine a light on the seven most sinister terrors that haunt sysadmins. That way you can be sure there’s nothing in your stack waiting to go bump in the night.

Ivano ViolaSystem AdministratorCommented:
0
Sid_FAuthor Commented:
I have already moved the paging file but no change on error
0
Sid_FAuthor Commented:
sorry should of mentioned its vmware
0
Sid_FAuthor Commented:
I need something like partition magic less the cost!
0
Sid_FAuthor Commented:
its a basic disk which i think is the problem
0
coolsport00Commented:
Sid...yes, you are correct (I just recently did this myself). You can't extend (called 'spanning' in Wndows) a partition unless it's a dynamic disk.

~coolsport00
0
Sid_FAuthor Commented:
ok why don't I have the option to convert to a dynamic disk though?
0
coolsport00Commented:
Is the volume your system volume?...the one with your OS installed on it?
0
coolsport00Commented:
According to your earlier post, you have Windows installed on C:...the disk/volume you're wanting to extend/span, correct? You can't do that as it is your system volume. See the NOTE section in this MS KB:
http://support.microsoft.com/kb/308424

It states in the last bulleted item - "You cannot extend the system or boot volume".

~coolsport00
0
rvivek_2002Commented:
You can extend the boot volume using some third party tools. I am using ACRONIS DISK DIRECTOR (A 10MB CD Image) . Boot from the CD image and follow the wizard.
0
burdcellCommented:
I think you mentioned this was a vm - in that case you can power down the machine and present the c: volume to another vm.  Run the extend and then present the volume back to the original vm.  This way its not a system partition when you extend.  
0
Sid_FAuthor Commented:
ok, what do you mean by present the C volume to another vm?
0
coolsport00Commented:
Sid...you can use vCenter Converter Standalone. When going through the wizard, you have the option to increase (or decrease) any of your VM disks.

~coolsport00
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
slavetononeCommented:
Burdcell means you can power down the VM, and add the C virtual disk to another VM if you have one as a second drive etc.  Then using the other VM run disk part or another 3rd party utitlity like acronis migrate easy (which is free full functional for 15 days and I recommend because its VERY easy and fast).  Once you have expanded the disk you can then disconnect it from the new VM and turn on the old VM and all done...

You could also create a new larger virtual disk the size you would like and then use a clone program (again Aronics Migrate Easy) to clone the existing C too the new disk and then remove the old disk and use the new larger disk.  I think this is better than using extends myself...
0
Sid_FAuthor Commented:
Excellent did the trick :  )
0
slavetononeCommented:
Right click on the VM, choose settings, click add, choose disk and then choose existing virtual disk. Browse to the virtual disk in question and attach it to the vm. (or of it is a direct presentation LUN you would dothe same thing except choose direct presentation LUN instead of existing virtual disk) note though that you will have to remove the disk from the current vm to attach it to another vm if using a direct presentation LUN.
0
slavetononeCommented:
Right click on the VM, choose settings, click add, choose disk and then choose existing virtual disk. Browse to the virtual disk in question and attach it to the vm. (or of it is a direct presentation LUN you would dothe same thing except choose direct presentation LUN instead of existing virtual disk) note though that you will have to remove the disk from the current vm to attach it to another vm if using a direct presentation LUN.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
VMware

From novice to tech pro — start learning today.