11 4 3 2+Lab+-+Disk+CLI+Commands
11 4 3 2+Lab+-+Disk+CLI+Commands
11 4 3 2+Lab+-+Disk+CLI+Commands
Introduction
In this lab, you will work with disk CLI commands.
Required Resources
A Windows PC
An additional partition with an NTFS file system
Instructions
Part 1: The chkdsk Command Options
In this part, you will explore the Windows command that allow you to scan and repair disks.
2019 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 1 of 8 www.netacad.com
Lab – Disk CLI Commands
b. In the Command Prompt window with elevated privileges, enter the command chkdsk C: /F /X /R to
check the status of this drive. Enter y when prompted. Note the change in the prompt.
C:\Windows\system32> chkdsk C: /F /X /R
The type of the file system is NTFS.
Cannot lock current drive.
This volume will be checked the next time the system restarts.
Note that the volume will be checked when the system restarts that next time because the volume is in
use and it cannot be checked at this time.
Question:
What is the file system of the drive?
Type your answers here.
c. A second partition was created in a previous lab. You can perform the chkdsk command on the second
partition. The I: drive will be used in this example.
C:\Windows\system32> chkdsk I: /F /X /R
The type of the file system is NTFS.
Volume label is ITEINFO.
2019 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 2 of 8 www.netacad.com
Lab – Disk CLI Commands
Note: Please back up any data from the drives before proceeding in this part. Because a new partition will be
created by shrinking a volume and the new partition will be formatted. All data will be erased during the
formatting process.
DISKPART>
b. Notice the prompt indicated that you are in the diskpart utility. Enter help at the DISKPART> prompt to
list the available commands within the diskpart utility. You can also use the help command anytime while
you are in the diskpart utility. For example, enter help list disk at the prompt to view more information
about the list disk command.
DISKPART> help list disk
2019 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 3 of 8 www.netacad.com
Lab – Disk CLI Commands
e. Enter list partition to list all the partition on the selected disk.
DISKPART> list partition
Reduces the size of the volume with focus by the specified amount. Makes
free disk space available from unused space at the end of the volume.
2019 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 4 of 8 www.netacad.com
Lab – Disk CLI Commands
2019 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 5 of 8 www.netacad.com
Lab – Disk CLI Commands
Part 3: Clean up
After you have verified that the new partition is working, you will delete the newly created volume and the free
space will rejoin the original second partition.
a. At the elevated command prompt, enter diskpart to return to the DiskPart utitliy.
2019 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 6 of 8 www.netacad.com
Lab – Disk CLI Commands
b. List all the disks for the computer by issuing the list disk command.
DISKPART> list disk
2019 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 7 of 8 www.netacad.com
Lab – Disk CLI Commands
DISKPART> extend
2019 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 8 of 8 www.netacad.com