DISKPART Formatting

DISKPART Formatting

There are several guides out there, but this is the only procedure I've found useful and use as a template.

Open CMD as admin and issue the following commands:

Diskpart
    list Disk
    select Disk <number>
    list partition
#Careful here, I've once deleted 1TB by accident.
    select partition <number>
    delete partition
#Remove drive and exit Diskpart
#Re insert drive
#Do not format when the prompt pops up
#Open Diskpart
Diskpart
    list Disk
    select disk <number>
    clean
    create partition primary
    select partition <number>
    active
#Choose a file system
    format fs=FAT32 quick | format fs=ntfs quick
    assign
    exit

Knowing diskpart is handy, its massively underused and undervalued imo! Nothing wrong with your template, but wondering if you could half your work load by skipping the top section and just going straight to ‘clean’... I guess a lot of it depends on what you’re intended use is, but I almost always go with ‘convert gpt’ these days, though I’m almost always working within Win10 in UEFI.

Like
Reply

To view or add a comment, sign in

More articles by Alejandro Marin

  • I gave Claude £1,000 and told it to trade stocks on its own. Here's what happened.

    Over the last weekend I put together an autonomous AI trading agent that runs on a Raspberry Pi at home, making real…

    1 Comment
  • Tacquito - TACACS+ Server Setup

    Using the Tacquito TACACS+ implementation to study and build real-world use cases. I deployed Tacquito on Ubuntu 20.

  • Raspberry Pi - Bridge Interfaces

    This setup can be useful when you have a wired homelab environment far from the ISP's router and can't roll UTP to it…

  • Syslog cheat sheet

    Entities The protocol specifies three main entities: Originator: The entity that generates a syslog message (for…

  • TFTP Server Setup (Ubuntu)

    Note: TFTP includes no login or access control mechanisms. This setup works for my purposes and it may not be best…

  • ASA - PAT & Static NAT Configurations

    This article uses the Cisco ASA 9.9 Configuration book as main reference.

    1 Comment
  • Transparent Firewall

    This is a quick guide on how to setup an ASA transparent firewall on an existing network. A transparent firewall is…

  • ACS config (Freeradius - IOS)

    The topology we'll use as an example consists of: Freeradius service running on Ubuntu. Cisco router (client).

Explore content categories