Translate

Jumat, 15 Agustus 2014

Delete HDD via Command Prompt

DISKPART> list disk
Disk ### Status Size Free Dyn Gpt
——– ————- ——- ——- — —
Disk 0 Online 298 GB 0 B
Disk 1 Online 7640 MB 0 B
Disk 2 Online 298 GB 285 GB
DISKPART> SELECT DISK 2
Disk 2 is now the selected disk.
DISKPART> LIST PARTITION
Partition ### Type Size Offset
————- —————- ——- ——-
Partition 1 Recovery 13 GB 1024 KB
DISKPART> SELECT PARTITION 1
Partition 1 is now the selected partition.
DISKPART> DETAIL PARTITION
Partition 1
Type : 27
Hidden: Yes
Active: No
Offset in Bytes: 1048576
Volume ### Ltr Label Fs Type Size Status Info
———- — ———– —– ———- ——- ——— ——–
* Volume 5 PQSERVICE NTFS Partition 13 GB Healthy Hidden
DISKPART> INACTIVE
The current partition is already marked inactive.
(I didn’t need to do set inactive in this case, but it does not hurt anything to run it just in case…)
DISKPART> DELETE PARTITION OVERRIDE
DiskPart successfully deleted the selected partition.
DISKPART>


Using a command line
  1. Open Command Prompt.
  2. Type:

    diskpart
  3. At the DISKPART prompt, type:

    list disk

    Make note of the disk number of the disk from which you want to delete the partition.
  4. At the DISKPART prompt, type:

    select diskn

    Select the disk n from which you want to delete the partition.
  5. At the DISKPART prompt, type:

    list partition

    Make note of the number of the partition that you want to delete.
  6. At the DISKPART prompt, type:

    select partitionn

    Select the partition n that you want to delete.
  7. At the DISKPART prompt, type:

    delete partition

Tidak ada komentar:

Posting Komentar