Diskpart 50% of disk size

F

Frank

Is there a possibility to create two partitions with
diskpart.exe based on size in percents instead of MB. for
example

File :diskpart2.txt

Select Disk 0
Clean
Create Partition primary size = 70% (instead of 4096MB)
Active
Assing Letter=c
Select Disk 0
Create Partition Extended
Create Partition Logical
Assing Letter=d
Exit
 
C

Carey Frisch [MVP]

XP's DiskPart utility is capable of only partitioning a hard drive that is empty.
For example, if you were to install a new second drive, DiskPart can be
used to partition and format it. DiskPart cannot segregate current files from
free space, therefore, only a sophisticated third-party partitioning program,
such as Partition Magic 8 (www.powerquest.com), can be used with a drive
that already has Windows XP installed.

The only way you can create, delete, resize or merge existing partitions,
and not harm your existing Windows XP installation, is to use
a third-party partitioning program such as Partition Magic 8
(www.powerquest.com).

Partition Magic Instructional Videos
http://www.powerquest.com/support/primus/id3709.cfm

Otherwise, a "clean install" will be required.

The Windows XP CD is bootable and contains all the tools necessary
to partition and format your drive. Follow this procedure and allow
Windows XP to partition and format your drive:

1. Open your BIOS and set your CD Drive as the first bootable device.
2. Insert your Windows XP CD in the CD Drive and reboot your computer.
3. You'll see a message to boot to the CD....follow the instructions.
4. The setup menu will appear and you should elect to delete the existing
Windows partitions, then create a new partition(s), then format the primary
partition (preferably NTFS) and proceed to install Windows XP.

5. Clean Install Windows XP
http://michaelstevenstech.com/cleanxpinstall.html

[Courtesy of Michael Stevens, MS-MVP]

6. After installing Windows XP, be sure and visit the support website
of the manufacturer of the computer to download and install any
available Windows XP compatible drivers, such as video adapter
and audio drivers.

7. It would be best to physically disconnect all your peripheral hardware
devices, except for you mouse and keyboard, before installing XP.
After XP is installed, visit the support website of the manufacturer
of each hardware device to obtain the latest drivers or software
designed to work with Windows XP.


--
Carey Frisch
Microsoft MVP
Windows XP - Shell/User

-----------------------------------------------------------------------


| Is there a possibility to create two partitions with
| diskpart.exe based on size in percents instead of MB. for
| example
|
| File :diskpart2.txt
|
| Select Disk 0
| Clean
| Create Partition primary size = 70% (instead of 4096MB)
| Active
| Assing Letter=c
| Select Disk 0
| Create Partition Extended
| Create Partition Logical
| Assing Letter=d
| Exit
|
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top