Diskpart command: Change drive letter using diskpart Windows 2012 R2

Have you accedently got a drive letter wrong by not activating Data disk or just want to change your drive letter?
This is how you do it with Diskpart.

Open command line:

cmd

Type Diskpart

C:\Users\Johan>diskpart

Microsoft DiskPart version 6.1.7601
Copyright (C) 1999-2008 Microsoft Corporation.
Dator: STATIONT

DISKPART>

List current volumes:

DISKPART> list volume
  Volumenr 0     E                       DVD-ROM         0 B

  Volumenr 1     G                       DVD-ROM         0 B

  Volumenr 2     F                       DVD-ROM         0 B

  Volumenr 3     C   WINDOWS      NTFS   Partition    299 G

  Volymnr 4     D   Data         NTFS   Partition    296 G

  Volymnr 5         SYSTEM       NTFS   Partition    400 M

DISKPART>

Select Volume:

DISKPART> select volume 2

Volume 2 is the selected volume.

DISKPART>

Remove the drive letter:

DISKPART> remove letter "F"

The drive letter or mount point is removed.

DISKPART>

Assigne the new drive letter:

DISKPART> assign letter "Q"

The drive letter or mount point is removed.

DISKPART>

That was all folks

A command recap:

Diskpart
list volume
select volume 1 ,2,3,4,5 what ever your DCROM Drive or HD ist…
remove letter=E “for exmple”
assign letter=D “for exmple”

I am a Senior System Administrator that work daily with Virtualization,Xenserver, Linux, IT automation, Ansible,Windows, Active Directory, Exchange and a lot more. Here you will find tips and trix from early junior, middle junior and senior to unique information of the topics I mentioned earlier. If you need help with something do not hesitate to contact me I will gladly help.

Tagged with: ,

0 Comments on “Diskpart command: Change drive letter using diskpart Windows 2012 R2