• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1204
  • Last Modified:

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
0
Sid_F
Asked:
Sid_F
  • 8
  • 4
  • 3
  • +4
1 Solution
 
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
Cloud Class® Course: C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

 
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
 
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Introducing Cloud Class® training courses

Tech changes fast. You can learn faster. That’s why we’re bringing professional training courses to Experts Exchange. With a subscription, you can access all the Cloud Class® courses to expand your education, prep for certifications, and get top-notch instructions.

  • 8
  • 4
  • 3
  • +4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now