0% found this document useful (0 votes)
118 views

Disk Formatting Using Command Prompt

This document provides instructions for formatting a USB drive to the NTFS or FAT32 file system using the Command Prompt in Windows. It outlines the diskpart commands needed to select the USB drive, clean it, create a new partition, and format it. Additional questions about formatting USB drives are also addressed, such as why formatting is needed, how to format a bootable USB, and how to format a write-protected USB drive. The document concludes by describing how to protect folders and files on a hard drive from being deleted.
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
118 views

Disk Formatting Using Command Prompt

This document provides instructions for formatting a USB drive to the NTFS or FAT32 file system using the Command Prompt in Windows. It outlines the diskpart commands needed to select the USB drive, clean it, create a new partition, and format it. Additional questions about formatting USB drives are also addressed, such as why formatting is needed, how to format a bootable USB, and how to format a write-protected USB drive. The document concludes by describing how to protect folders and files on a hard drive from being deleted.
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

Steps to Format USB (to NTFS or FAT32) Using CMD (Command Prompt)

#1. Format USB using CMD in Windows 10:


Step 1. Connect USB to your PC and press Windows + R keys.
Step 2. Type cmd in the Search box and hit Enter to bring up Command Prompt.
Step 3. Type the following command lines one by one and hit Enter each time:
diskpart
list disk
select disk + number
list volume
select volume + number
format fs=ntfs quick (You can also replace NTFS with FAT32 or exFAT.)
exit

#2. Format USB flash drive using Command Prompt:

If you are using a Windows 8/7 system, enter Command Prompt and type the following
command lines one by one, and hit Enter each time:
diskpart
list disk
select disk 2 (Replace 2 with the number of your USB drive.)
clean
create partition primary
format fs=ntfs
assign
After this, exit DiskPart and you can save data to your USB flash drive again.
However, as Linux file system Ext2/3 is not compatible with Windows OS, you can
refer to a UBS format tool in Part 2 for help.

People Also Ask About Format USB Using CMD


Some of you may have more questions about formatting USB. Here we collected some
top concerned questions and listed answers below. If you have the same doubts,
check out the answers now.

1. Why do you need to format USB flash drive?

Usually, HDDs and SSDs are widely used for OS installation and data storage and
removable storage devices like USB flash drives are more used for data transferring
and storage. But the USB flash drive may become inaccessible, and you'll need to
format it so as to make it work again.

Here is a list of reasons why do you and other USB users need to format the flash
drive:

1. RAW, invalid, or unrecognized USB file system


2. USB flash drive corruption
3. Virus infection
3. USB is write-protected
3. Change USB file system to NTFS, FAT32, or Ext 2/3/4 by formatting
2. How to format bootable USB using cmd?

The process of formatting a bootable USB flash drive is almost the same as the
process shown on this page. You can apply CMD to format it with the listed steps
here:

Step 1. Connect the bootable USB drive to your PC.


Step 2. Open Command Prompt.
Step 3. Type diskpart and hit Enter.
Step 4. Type list disk and hit Enter.
Step 5.Type select disk + number and hit Enter. (Replace 2 with the number of your
USB drive.)
Step 6. Type list volume and hit Enter.
Step 7. select volume + number and hit Enter. (Replace 10 with the volume number of
your USB flash drive.)
Step 8. Type format fs=ntfs quick and hit Enter. (You can also replace NTFS with
FAT32 or exFAT.)
Step 9. Type exit and hit Enter.
3. How to format write-protected USB using cmd?

Here are the steps that you can follow to format a write-protected (read-only) USB
using the command lines below:

Step 1. Press "Win + R", type cmd to open "Command Prompt".


Step 2. Type diskpart and hit Enter.
Step 3. Type list disk and hit Enter.
Step 4. Type select disk 2 and hit Enter. (Replace 2 with the write-protected
device number) and hit Enter.
Step 5. Type attributes disk clear readonly and hit Enter.
Step 6. Type exit to close the diskpart window.
Once the write protection removing process completes, you can format the USB drive
again.

Protect Hard Drive Folders & Files from being deleted.


1. Right click the drive in Windows Explorer, and select Properties
2. Go to the 'Security' tab and click 'Advanced' at the bottom
3. Click 'Changed Permissions'
4. Find the user you would like to change in the list of users and click edit
5. Uncheck 'Delete' and 'Delete Subfolders and Files' and click OK
Repeat on any other users as necessary. (Hint: Selecting Users should apply it to
all non-administrative accounts, and selecting Administrators should apply that to
all administrator accounts)
6. Select 'replace all child object permissions with inheritable permissions from
this object' and click OK again and on any remaining Windows.

You might also like