Changes

Jump to: navigation, search
Assigning and Changing Drive Letters and Mount Points from the Command Line
== Assigning and Changing Drive Letters and Mount Points from the Command Line ==
In order to assign or change drive letter or mount point for a partition using the command line begin by invoking ''diskpart'' from the command prompt or Run dialog. The first step is to identify the disks on the system. This information is obtained using the list disk command:  <pre>DISKPART> list disk  Disk ### Status Size Free Dyn Gpt -------- ---------- ------- ------- --- --- Disk 0 Online 30 GB 0 B Disk 1 Online 10 GB 0 B</pre> To select the required disk use the select disk command:  <pre>DISKPART> select disk 1 Disk 1 is now the selected disk.</pre> Having selected the disk the next step is to select the partition to which a drive letter or mount point is to be assigned. To obtain a list of partitions on the selected disk the list partition command is used:  <pre>DISKPART> list partition  Partition ### Type Size Offset ------------- ---------------- ------- ------- Partition 1 Primary 1000 MB 1024 KB Partition 2 Primary 1000 MB 1001 MB Partition 3 Primary 998 MB 2001 MB Partition 0 Extended 7238 MB 3001 MB Partition 4 Logical 1000 MB 3002 MB Partition 5 Logical 6236 MB 4003 MB</pre> For this example we are going to work with parition 3 so we need to select this partition using the ''select partition'' command:  <pre>DISKPART> select partition 3 Partition 3 is now the selected partition.</pre> Finally the drive letter or mount point can be assigned. To assign a drive letter to the currently selected partition: <pre>DISKPART> assign letter L: DiskPart successfully assigned the drive letter or mount point.</pre> Similarly, assign a mount point as follows: <pre>DISKPART> assign mount=\bigvol DiskPart successfully assigned the drive letter or mount point.</pre>

Navigation menu