Log in

I forgot my password

May 2012
MonTueWedThuFriSatSun
 123456
78910111213
14151617181920
21222324252627
28293031   

Calendar Calendar

Promotion Widget
Share UMPlife's story in

Share |



Follow UMPlife's story in

Follow umplife on Twitter

Find us on facebook

Find us on google buzz

Find us on friendfeed

Fidn us on tumblr

Fidn us on Youtube
Quote of the Day
Latest topics
» Diablo III Officially Announced, Release Date: Whenever it's finished :p (RPG)
by caer Yesterday at 8:09 am

» [Lagu sedap~] Chris Medina - What Are Words
by Admin Wed May 23, 2012 11:31 pm

» [Lagu sedap~] Taylor Swift - Eyes Open
by Admin Wed May 23, 2012 9:56 pm

» Vindictus - How to play?
by sID Wed May 23, 2012 2:24 pm

» Toyota GT86
by murasame_85 Tue May 22, 2012 7:34 am

» MedialabStudio@Kaunter Tiket Bas Cuti Jumaat INI (25/5)- Isnin (28/5)
by jemin86 Mon May 21, 2012 10:37 pm

» Proton Shark ala CRZ
by murasame_85 Mon May 21, 2012 5:58 pm

» Penutupan sementara Kaunter TIKET BAS UMP
by samuraiz Mon May 21, 2012 5:39 pm

» Andoid tut Apple~
by samuraiz Mon May 21, 2012 5:37 pm

» the private scene behind Avengers~
by samuraiz Fri May 18, 2012 3:50 am

UMPlife Chatbox
Top posters
MusTanG (4298)
 
theMVP (3628)
 
aku la????? (3355)
 
cicok (3333)
 
nazkill (3286)
 
asuramaru (3189)
 
zicron21ck (3150)
 
Admin (2987)
 
Castielle Zaidrick (2608)
 
murasame_85 (2506)
 

UMPlife Page Hits
php programmers
Since 4/1/2009 23:00




UMPlife Sponsor



Using Diskpart to create, extend or delete a disk partition

View previous topic View next topic Go down

Using Diskpart to create, extend or delete a disk partition

Post by Admin on Wed Oct 06, 2010 8:45 am

One highly useful utility for Windows 2000/XP/Windows Server 2003 users is the Disk Partition Utility, aka Diskpart, a command-line interpreter designed as a disk management tool.

To create a partition:

  1. At a command prompt, type: Diskpart.exe
  2. At the DISKPART prompt, type: LIST DISK (Lists disks found. Make note of the drive number you wish to manipulate.)
  3. At the DISKPART prompt, type: Select Disk 1 (This selects the disk; make sure to type in the disk number from step 2.)
  4. At the DISKPART prompt, type: CREATE PARTITION PRIMARY SIZE=10000
    (Change the word PRIMARY to EXTENDED to create an extended partition.)(If you do not set a size (in MB), such as the above example for 10 GB, then all available space on the disk will be used for the partition.)(Seriously consider adding the following option to the end of the above command if you are using RAID (especially RAID 5) to improve disk I/O performance: ALIGN=64)
  5. At the DISKPART prompt, type: ASSIGN LETTER=D (Choose a drive letter not already being used.)
  6. At the DISKPART prompt, type: Exit
  7. Use the Command Prompt format command, Disk Administrator or any disk format utility to format the drive (typically using NTFS, of course).
Extend a partition in Windows with Diskpart. When it comes to adding space to a partition or volume, this method is superior to configuring Dynamic Disks. Dynamic Disk extensions only concatenate the newly added space, menaing they merely add the disk space to the "end" of the original partition without restriping the data. Concatenation isolates performance within each partition and does not offer fault tolerance when the partition is configured in a RAID array. Diskpart allows you to restripe your existing data. This is truly beneficial when the partition is set up in a RAID array, because the existing partition data is spread out across all the drives in the array, rather than just adding new space to the end (like Disk Administrator). Microsoft's "official" position is that that you cannot use Diskpart to extend your system or boot partition. However, this tip on SearchWinComputing.com on increasing the capacity of your system volume, suggests otherwise.Note: If you try it or any other method, make sure you have a full backup. To extend a partition:

  1. Verify that contiguous free space is available on the same drive and that free space is next to the partition you intend on extending (with no partitions in between).
  2. At a command prompt, type: Diskpart.exe
  3. At the DISKPART prompt, type: Select Disk 1 (Selects the disk.)
  4. At the DISKPART prompt, type: Select Volume 1 (Selects the volume.)
  5. At the DISKPART prompt, type: Extend Size=10000 (If you do not set a size, such as the above example for 10 GB, then all available space on the disk will be used.)
  6. At the DISKPART prompt, type: Exit
Note: It is not necessary, but I normally reboot the server to make sure all is well from a startup standpoint.To delete a partition in Windows with Diskpart: (Note: You cannot delete an active system or boot partition or a partition with an active page file.)

  1. At a command prompt, type: Diskpart.exe
  2. At the DISKPART prompt, type: Select Disk 1
  3. At the DISKPART prompt, type: Select Partition 1
  4. At the DISKPART prompt, type: DELETE partition
  5. At the DISKPART prompt, type: Exit
To wiping (or zero) a disk:
This operation deletes all data on the disk

  1. At a command prompt, type: Diskpart.exe
  2. At the DISKPART prompt, type: Select Disk 1
  3. At the DISKPART prompt, type: CLEAN ALL (The CLEAN ALL command removes all partition and volume information from the hard drive being focused on.)
  4. At the DISKPART prompt, type: Exit
Final note: Here are four important things to keep in mind regarding Diskpart.

  • Do not use DISKPART until you have fully backed up the hard disk you are manipulating
  • Do not use DISKPART on dynamic disks
  • Check with your disk vendor before using Diskpart
  • Install the Windows Resource Kit to get the Diskpart utility

_________________
Reply la post aku ngan ihklas, jangan spam yaa!!

Admin
Admin
Admin

Posts: 2987
Join date: 08/10/2008
Age: 26
Location: aku budak Tokai

View user profile http://umplife.5d6d.com/bbs.php

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

Permissions in this forum:
You cannot reply to topics in this forum