How to use diskpart command to fix RAW partition or convert RAW drive to NTFS?

Updated by Tim to Data Recovery Tips on September 11th, 2020

NTFS partition is reporting as RAW file system, can we use diskpart command to convert RAW to NTFS without data loss?

What is the RAW drive?

RAW file system is not really a type of file system but presents a problem of your drive or partition. We know file system often used like NTFS, FAT32 or exFAT. So what is RAW file system? Just a system error that makes your partition become RAW and you cannot access files without any recovery software.

RAW drive in disk management

About diskpart

Diskpart is essentially the command-line equivalent to the Disk Management tool. Diskpart command can format, resize, extend and manage your drives and volumes.

Diskpart command can convert RAW to NTFS on the hard drive, external hard drive, USB drive, flash drive, SD card, memory card in Windows 10/8/7/XP, but it also deletes the data stored on that drive after converting RAW drive to NTFS, so how to use diskpart command to convert, format or fix RAW partition to NTFS without data loss?

How to convert RAW drive to NTFS with diskpart command?

Diskpart command has a built-in format function which can convert RAW drive to NTFS. However, formatting will erase all the data stored on that drive. So before formatting, data recovery is the first thing you must do.

1. Recover data from RAW drive

To recover data from the RAW drive, you need to find a professional data recovery software.

M3 Data Recovery is such a professional data recovery software which can recover data from RAW hard drive, external hard drive, USB drive, flash drive, SD card, etc. on Windows 10/8/7/XP and Windows Server 2016/2012/2008/2003.

In order to convert RAW partition to NTFS without losing data, follow the below steps:

Step 1: Download and install M3 Data Recovery on your Windows computer.

Step 2: If the RAW storage device is an external drive, connect it to your Windows computer before launching M3 Data Recovery.

Step 3: Launch M3 Data Recovery and choose "Data Recovery" module.

Free data recovery software

If the RAW drive was BitLocker encrypted, choose "BitLocker Recovery" module to recover data from BitLocker encrypted drive at this step.

Step 4: Select the RAW drive and click Next to scan the data.

Scan the lost data from RAW drive

Step 5: After M3 Data Recovery finds the data, select the files you want to expect and click Recover to start the data recovery process.

Recover lost data from RAW drive

If there are some files missing after the scan completes, return to Data Recovery module and run deep scan to find more files.

2. Convert RAW drive to NTFS with diskpart command

After data recovery from RAW drive is successfully done, it is time to use diskpart command to convert RAW drive to NTFS.

Follow the steps to format RAW drive to NTFS:

Step 1: Open Windows Start menu -> Type diskpart in search box.

Step 2: When diskpart.exe appears in the search results, right-click it and select "Run as administrator".

Run diskpart

Step 3: At the DISKPART> prompt, please type list disk command and press Enter. It will display all the hard disks on your computer. Each hard disk will have a disk number, starting with 0 (zero).

List disk with diskpart command

Step 4: Type select disk X and press Enter (Please replace X with the disk number).

Select disk with diskpart command

Step 5: Type list volume and press Enter. It will display all the volumes on the selected hard disk. Each volume will have a volume number, starting with 0 (zero).

List volume with diskpart command

Diskpart lists the RAW partition as unknown file system.

Step 6: Type select volume X (Please replace X with the volume number) and press Enter.

Select volume with diskpart command

Step 7: Type format fs=ntfs label=volume label quick and press Enter to execute the format. If you want to format the volume to FAT32 file system, you need to type format fs=fat32 label=volume label quick.

Format volume with diskpart command

When the format completes, you will see message showing "Diskpart successfully formatted the volume".

Format complete with diskpart command

If diskpart command is difficult for you to understand and operate, please don't worry, you can use Windows built-in format tool or the 3rd-party RAW to NTFS converter/format tool to format RAW drive to NTFS file system after data recovery is successfully done, these tools are very simple to help you to convert RAW to NTFS file system on hard drive, external hard drive, USB flash drive, SD card, memory card, etc.

How to fix RAW partition without diskpart command?

Besides data recovery from RAW drive, M3 Data Recovery provides another recovery module: RAW Drive Recovery to fix RAW partition or convert RAW drive to NTFS without data loss.

If the file system of the RAW drive is severely damaged, there is no way to rebuild the corrupted file system and fix RAW partition, the only way is still data recovery.

Step 1: Download and install M3 Data Recovery on your Windows computer.

Step 2: If the RAW storage device is an external drive, connect it to your Windows computer before launching M3 Data Recovery.

Step 3: Launch M3 Data Recovery software and then choose "RAW Drive Recovery" module.

RAW drive recovery software

If the RAW drive was BitLocker encrypted, please choose "BitLocker Recovery" module to recover data from that BitLocker encrypted drive at this step.

If the RAW drive was encrypted by other software, you need to find the corresponding software to recover data from that encrypted drive.

Step 4: Select the RAW drive and then click Next to check and rebuild the corrupted file system.

How to convert RAW to NTFS without diskpart

Step 5: Check the files in RAW drive before converting RAW drive back to NTFS file system.

Convert RAW to NTFS without diskpart command

If there are some files missing after the scan completes, please return to the main interface, choose Data Recovery module and try deep scan option to find more files.

Step 6: Click "Fix Drive" to fix RAW partition. After the RAW partition is fixed and accessible, all your data will get back.

Fix RAW partition without diskpart command

If RAW partition cannot be fixed or RAW partition is still inaccessible after fixing, click "Switch to Data Recovery mode" to recover data. After data recovery completes, use the above diskpart command to format RAW drive to NTFS.

How to convert a drive to NTFS or FAT32 with diskpart?

Diskpart command can also convert a FAT32 drive to NTFS file system and convert a NTFS drive to FAT32 file system.

Convert a FAT32 drive to NTFS with diskpart

Diskpart has a convert command, it can convert a FAT32 drive to NTFS without data loss and formatting.

Step 1: Open Windows Start menu -> Type diskpart in search box.

Step 2: When diskpart.exe appears in the search results, right-click it and select "Run as administrator" to open the command prompt window.

Run diskpart

Step 3: At the command line prompt, type convert X: /fs:ntfs (Replace X with the drive letter) and press Enter to convert a FAT32 drive to NTFS.

Convert a NTFS drive to FAT32 with diskpart

Unlike converting a FAT32 drive to NTFS, you need to back up the important data before converting a NTFS drive to FAT32, and then do following steps:

Step 1: Open Windows Start menu -> Type diskpart in search box.

Step 2: When diskpart.exe appears in the search results, right-click it and select "Run as administrator" to open the command prompt window.

Run diskpart

Step 3: At the DISKPART> prompt, please type list disk command and press Enter.

List disk with diskpart command

Step 4: Type select disk X (Replace X with the disk number) and press Enter.

Select disk with diskpart command

Step 5: Type list volume and press Enter.

Step 6: Type select volume X (Replace X with the volume number) and press Enter.

Step 7: Type format fs=fat32 label=volume label quick and press Enter to convert a NTFS drive to FAT32.

When the format completes, you will see a "Diskpart successfully formatted the volume" message.