Reformat a Raspberry Pi SD Card Using Diskpart in Windows 7

In can be tricky reformatting a Raspberry Pi SD card in Windows 7 due to the multiple partitions that Raspian creates.  Here’s a simple way using the built in Diskpart in Windows 7.

Insert the SD card into an SD card reader and open a Windows command prompt console and start Diskpart.

\>diskpart

List all of your disks.

DISKPART> list disk

Select your SD card disk.

DISKPART> select disk <#>

List all of your disks to ensure that the correct disk is selected – the selected disk will have an asterisk next to it.

DISKPART> list disk

Clean the disk.

DISKPART> clean

Create a primary partition.

DISKPART> create partition primary

Create and format the primary filesystem.

DISKPART> format fs=fat32 quick

Assign the disk to a Windowsdrive letter so it shows up in Windows Explorer.

DISKPART> assign

Your disk is now ready for use.

References:

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s