diskpart format & check disk

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
C:\WINDOWS\system32>diskpart

Microsoft DiskPart version 10.0.18362.1171

Copyright (C) Microsoft Corporation.
On computer: ******

DISKPART> list disk

  Disk ###  Status         Size     Free     Dyn  Gpt
  --------  -------------  -------  -------  ---  ---
  Disk 0    Online          931 GB  2048 KB        *
  Disk 2    Online          698 GB   698 GB

DISKPART> select disk 2

Disk 2 is now the selected disk.

DISKPART> list disk

  Disk ###  Status         Size     Free     Dyn  Gpt
  --------  -------------  -------  -------  ---  ---
  Disk 0    Online          931 GB  2048 KB        *
* Disk 2    Online          698 GB   698 GB

DISKPART> convert mbr

DiskPart successfully converted the selected disk to MBR format.

DISKPART> create partition primary

DiskPart succeeded in creating the specified partition.

DISKPART> list disk

  Disk ###  Status         Size     Free     Dyn  Gpt
  --------  -------------  -------  -------  ---  ---
  Disk 0    Online          931 GB  2048 KB        *
* Disk 2    Online          698 GB      0 B

DISKPART> select part 1

Partition 1 is now the selected partition.

DISKPART> format fs=ntfs  quick

  100 percent completed

DiskPart successfully formatted the volume.

DISKPART> assign

DiskPart successfully assigned the drive letter or mount point.

DISKPART> list volume

  Volume ###  Ltr  Label        Fs     Type        Size     Status     Info
  ----------  ---  -----------  -----  ----------  -------  ---------  --------
  Volume 0     D                       DVD-ROM         0 B  No Media
  Volume 1     C   OSDisk       NTFS   Partition    291 GB  Healthy    Boot
  Volume 2     E   New Volume   NTFS   Partition    638 GB  Healthy
  Volume 3         Windows RE   NTFS   Partition    499 MB  Healthy    Hidden
  Volume 4         SYSTEM       FAT32  Partition    499 MB  Healthy    System
  Volume 5                      NTFS   Partition    571 MB  Healthy    Hidden
* Volume 6     F                NTFS   Partition    698 GB  Healthy


about checking disks with diskpart:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
E:\delete>diskpart

Microsoft DiskPart version 10.0.18362.1171

Copyright (C) Microsoft Corporation.
On computer: ********

DISKPART> list

Microsoft DiskPart version 10.0.18362.1171

DISK        - Display a list of disks. For example, LIST DISK.
PARTITION   - Display a list of partitions on the selected disk.
              For example, LIST PARTITION.
VOLUME      - Display a list of volumes. For example, LIST VOLUME.
VDISK       - Displays a list of virtual disks.

DISKPART> list disk

  Disk ###  Status         Size     Free     Dyn  Gpt
  --------  -------------  -------  -------  ---  ---
  Disk 0    Online          931 GB  2048 KB        *
  Disk 1    Online          698 GB      0 B        *
  Disk 2    Online          465 GB  1024 KB        *

DISKPART> select disk 2

Disk 2 is now the selected disk.

DISKPART> list partition

  Partition ###  Type              Size     Offset
  -------------  ----------------  -------  -------
  Partition 1    System             512 MB  1024 KB
  Partition 2    Unknown            465 GB   513 MB

DISKPART> clean

DiskPart succeeded in cleaning the disk.

DISKPART> list disk

  Disk ###  Status         Size     Free     Dyn  Gpt
  --------  -------------  -------  -------  ---  ---
  Disk 0    Online          931 GB  2048 KB        *
  Disk 1    Online          698 GB      0 B        *
* Disk 2    Online          465 GB   465 GB

DISKPART>


similarly checking with chkdsk

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
E:\delete>chkdsk H: /r
The type of the file system is NTFS.
Volume label is HITACHI.

Stage 1: Examining basic file system structure ...
  256 file records processed.
File verification completed.
  0 large file records processed.
  0 bad file records processed.

Stage 2: Examining file name linkage ...
  278 index entries processed.
Index verification completed.
  0 unindexed files scanned.
  0 unindexed files recovered to lost and found.
  0 reparse records processed.
  0 reparse records processed.

Stage 3: Examining security descriptors ...
Security descriptor verification completed.
  11 data files processed.

Stage 4: Looking for bad clusters in user file data ...
  240 files processed.
File data verification completed.

Stage 5: Looking for bad, free clusters ...
Progress: 24519183 of 122064974 done; Stage: 20%; Total: 20%; ETA:   1:19:13