Akzium
  • Home
  • Solutions
    • Security
    • SD-WAN
    • Hosted Voice and Unified Communications
    • Virtualization
    • Backup and Replication >
      • AS400 Backup and Replication
      • DICOM Image Backup and Archival
      • CloudberryLab Store
    • Disaster Recovery
    • Cloud Computing >
      • Enterprise File Sync and Sharing
  • Services
    • Cloud Migration Services
  • About
  • Blog

Using DiskPart To Clean A USB Thumb Drive or SD Card

8/9/2022

0 Comments

 
Picture
If you have installed a Portable or Linux OS on a thumb drive or SD Card, Windows typically won't be able to reformat it for other use. To work around the limitations of File Explorer you can call DiskPart into service to help solve this problem.

Steps:


Insert the USB Thumb Drive or SD Card
Run CMD.exe as Administrator
C:\>diskpart

DISKPART>list disk
DISKPART> select disk 1

Disk 1 is now the selected disk
DISKPART> List Disk    (to verify selection (marked with asterisk to left of row)

*VERY Important Note: in my case since I only have a single internal hard disk in my laptop, the USB drive shows as disk 1, an 8GB stick.  If you have more than one disk already installed/mounted on your PC, then modify the select statement accordingly to point to your target USB device. If you select the wrong disk you could wipe out all of the data on your PC.

DISKPART> clean
DiskPart succeeded in cleaning the disk.

DISKPART>create partition primary
DiskPart succeeded in creating the specified partition.

DISKPART>active
DiskPart marked the current partition active.

DISKPART>format fs=fat32 quick
   100 percent completed.
DiskPart successfully formatted the volume.

DISKPART>assign
DiskPart successfully assigned the drive letter or mount point.

DISKPART>exit

C:\> exit   (to exit CMD window)

0 Comments

    Author

    Akzium team blog

    Archives

    November 2022
    September 2022
    August 2022
    July 2022

    Categories

    All
    Apache Log4J
    Chrome Browser GPU
    DHCP
    DHCP Backup
    DHCP Restore
    DiskPart
    File Server Resource Manager
    IBM 5250 Terminal
    IBM BOMC
    IBM Firmware Updater
    Lenovo BOMC
    Lenovo Firmware Updater
    RaspberryPi 4b
    RaspberryPi 4b 5250
    Self Signed SSL
    Set Chrome To Use GPU
    Virus Scanner
    VMware
    Windows File Server

    RSS Feed

Akzium, LLC | 601-841-2499     .     sales@akzium.com
Copyright 2011-2022, Akzium, LLC.  All rights reserved.