How To Use Diskpart To Set Up A Usb Stick For Mac Os X
On Windows 10, the ability to format a USB flash drive can come in handy in a number of scenarios. For example, you might want to reformat a new or used removable storage device to make sure it doesn't contain any malicious code. Or if a thumb drive is inaccessible because of data corruption. Maybe you received a flash drive using a file system that isn't compatible with your system configuration. Or you're planning to give the drive away and want to make sure personal information doesn't go along with it.
Whatever the reason, Windows 10 ships with several tools to format virtually any kind of storage, including USB flash drives, using File Explorer, Disk Management, Command Prompt, and PowerShell.
To create bootable USB stick on Mac OS make sure that the USB drive is at least 8GB or larger and working fine. Before start creating bootable download and install Diskmaker X and make sure that you have the Mac OS ISO image file you’re going to install. Open DiskMaker X and choose the Mac OS edition you want to make USB bootable. An operating system install drive for your Windows, UNIX and Mac Systems. You will be welcomed by the message Diskpart succeed in creating the specified partition. 5th Method: Make a Bootable USB with Mac OS X 10.7 or 10.8 USB.
In this Windows 10 guide, we walk you through the different ways you can format a USB flash drive to quickly erase its contents or fix problems when the device isn't recognized.
Warning: Using any of the instructions outlined below will erase the contents on the drive you select. If you have any important files, you should back them up before proceeding.
How to format a USB flash drive using File Explorer
To format a USB flash drive using File Explorer, use these steps:
- Open File Explorer.
- Click on This PC from the left pane.
Under the 'Devices and drivers' section, right-click the flash drive and select the Format option.
Use the 'File system' drop-down menu and select the NTFS option.
Quick tip: If you're planning to use the removable drive on Windows 10 as well as on macOS systems, you may want to select the exFAT option for compatibility. However, if you're also thinking about using the device on a Linux machine, FAT32 is the best option, even though you'll be limited to 4GB file sizes.
- In the 'Allocation unit size' drop-down menu use the default selection.
- In the 'Volume label' field, type a label to quickly identify the flash drive in File Explorer. For example, workFlash.
Under the 'Format options' section, select the Quick format option.
Note: The 'Quick format' option only deletes the file system table and the root folder, but the data may still be recoverable on the drive. If you don't check the option, a full format will take place, and it'll perform a scan for bad sectors and writes zeros in all sectors to delete the data. As a result, the process can take a long time depending on the size of the storage.
- Click the Start button.
- Click the Yes button.
Once you complete these steps, you can start storing documents, pictures, videos, and other files on the removable drive.
How to format a USB flash drive using Disk Management
Using Disk Management, there are at least two ways to format a removable drive. You can format the drive to rebuild the file system table and erase its content. Or you can delete the partition containing the file system and data, which can come in handy to fix problems with storage.
Formatting flash drive
To use Disk Management to format a USB drive, use these steps:
- Open Start.
- Search for Disk Management and click the top result to open the experience.
Right-click the removable drive and select the Format option.
- In the 'Volume label' field, type a label to quickly identify the flash drive in File Explorer.
- Use the 'File system' drop-down menu and select the NTFS option. (You can also select the 'FAT32' or 'exFAT' option.)
- In the 'Allocation unit size' drop-down menu use the Default option.
Check the Perform a quick format option.
- (Optional) Check the Enable file and folder compression option.
- Click the OK button.
After completing the steps, the flash drive will be erased and ready to use in File Explorer.
Cleaning and formatting flash drive
If you're dealing with errors and other problems, you can use these steps to clean the USB flash drive and start from scratch with a new partition and file system using Disk Management:
- Open Start.
- Search for Disk Management and click the top result to open the experience.
Right-click the removable drive and select the Delete volume option.
- Click the Yes button.
Right-click the 'Unallocated' space and choose the New Simple Volume option.
- Click the Next button.
- Click the Next button again.
- Select the Assign the following drive letter option.
Use the drop-down menu to select an available letter.
Quick tip: If you're assigning a letter manually, it's best to select a letter in reverse order (Z, Y, X, and so on).
- Click the Next button.
- Select the Format this volume with the following settings option.
Use the File system drop-down menu and select the NTFS option.
Note: Using this method, you can only use 'NTFS' or 'FAT32.' If you need to format the drive using 'exFAT,' you'll need to use Command Prompt or PowerShell
- In the 'Allocation unit size' drop-down menu use the Default option.
- In the 'Volume label' field, type a label to quickly identify the flash drive in File Explorer.
Check the Perform a quick format option. (If you clear the option, a full format will take place, which can take a long time.)
- (Optional) Check the Enable file and folder compression option.
- Click the Next button.
- Click the Finish button.
Once you complete these steps, a new partition will be created, and a new file system will be configured, fixing common problems with the flash drive, including data corruption.
If you're unable to perform a format, it's likely that the removable drive is physically damaged. If this is the case, you can always purchase another USB flash drive, such as the SanDisk Extreme Go (CZ800), which comes in 64GB and 128GB variants with enough space to save large files and small backups.
Reliable storage
SanDisk Extreme Go
If you're in the market for a reliable thumb drive with enough storage for large projects and fast transfer speeds, the SanDisk Extreme Go (CZ800) is an excellent option. The USB drive offers up to 128GB of storage with transfers speeds up to 200MB/s, it's backed by the strong brand, and it even includes some nifty features like password protection, recovery, and encryption. It's also affordable, at around $31 for 128GB.
How to format a USB flash drive using Command Prompt
Alternatively, you can also use Command Prompt to format a USB flash drive to delete the file system table and data. Or you can also use the tool to clean the drive and start fresh with a new partition and file system table.
Formatting flash drive
To perform a quick or full format of a USB flash drive using Command Prompt, use these steps:
- Open Start.
- Search for Command Prompt, right-click the top result, and select the Run as administrator option.
Type the following command to perform a quick format of the USB flash drive and press Enter (twice):
format VOLUME: /v:FLASHDRIVE-LABEL /fs:FILE-SYSTEM /q
In the command, make sure to replace the 'VOLUME' with the correct drive letter of the storage, 'FLASHDRIVE-LABEL' with the name you want the drive to appear in File Explorer, 'FILE-SYSTEM' with one of the available file systems, including 'FAT32,' 'exFAT,' or 'NTFS' (recommended).
This example is a quick format of the E drive:
format E: /v:workFlash /fs:NTFS /q
(Optional) Type the following command to perform a full format of the USB flash drive and press Enter (twice):
format VOLUME: /v:FLASHDRIVE-LABEL /fs:FILE-SYSTEM
This example performs a full format of the E drive:
format E: /v:'workFlash' /fs:NTFS
After completing the steps, the thumb drive will be formatted with the option that you specified.
Cleaning and formatting flash drive
To clean and format a USB thumb drive with Command Prompt, use these steps:
- Open Start.
- Search for Command Prompt, right-click the top result, and select the Run as administrator option.
Type the following command to launch the diskpart tool and press Enter:
diskpart
Type the following command to view a list of the available drives and press Enter:
list disk
Type the following command to select the flash drive you want to delete and press Enter:
select disk DISK-NUMBER
In the command, make sure to replace 'DISK-NUMBER' for the correct number that represents the drive you're trying to format.
This example selects the flash drive listed as disk number 1:
select disk 1
Type the following command to delete all the partitions and press Enter:
clean
Type the following command to create a primary partition and press Enter:
create partition primary
Type the following command to perform a quick format and press Enter:
format fs=FILE-SYSTEM label=DRIVE-NAME quick
In the command, make sure to replace 'NTFS' for your preferred file system, 'workFlash' for the name you want to give the device, and if you don't specify the 'quick' option, then a full format will be performed.
This example quickly formats the removable storage using the NTFS file system:
format fs=NTFS label=workFlash quick
Type the following command to assign a drive letter and press Enter:
assign
Quick note: You can append 'letter=e' in the command to assign (in this case) 'E' as the drive letter. Otherwise, the system will assign a letter automatically.
Type the following command to terminate diskpart and press Enter:
exit
Once you complete these steps, diskpart will remove any information on the USB flash drive. It'll create a new partition and configure a compatible file system to store files from your Windows 10, macOS, or Linux machine (depending on your settings).
How to format a USB flash drive using PowerShell
Similar to Command Prompt, you can use PowerShell to quickly format a removable flash drive to erase its content. Or you can also use the command-line tool to clean and format the device, deleting its contents and fixing issues.
Formatting flash drive
To format a USB flash drive using PowerShell commands, use these steps:
- Open Start.
- Search for PowerShell, right-click the top result, and select the Run as administrator option.
Type the following command to perform a quick format on the flash drive and press Enter:
Format-Volume -DriveLetter DRIVE-LETTER -FileSystem FILE-SYSTEM
In the command, make sure to replace 'DRIVE-LETTER' with the correct letter that reflects the drive you want to format, and 'FILE-SYSTEM' for FAT32, exFAT, or NTFS (recommended).
This example performs a quick format of the E: drive:
Format-Volume -DriveLetter E -FileSystem NTFS
(Optional) Type the following command to perform a full format on the USB flash drive and press Enter:
Format-Volume -DriveLetter DRIVE-LETTER -FileSystem FILE-SYSTEM -Full -Force
This example performs a full format of the E: drive:
Format-Volume -DriveLetter E -FileSystem NTFS -Full -Force
After completing the steps, PowerShell will format the removable storage with the settings you specified.
Cleaning and formatting flash drive
To clean and format a removable drive with PowerShell commands, use these steps:
- Open Start.
- Search for PowerShell, right-click the top result, and select the Run as administrator option.
Type the following command to view the flash drive you want to fix and press Enter:
Get-Disk
Type the following command to delete the volume and press Enter: Adobe acrobat pro for mac harvard.
Get-Disk DISK-NUMBER Clear-Disk -RemoveData
In the command, change 'DISK-NUMBER' for the correct number that represents the flash drive you're formatting.
This example selects and cleans the disk number 1:
Get-Disk 1 Clear-Disk -RemoveData
Type Y to confirm the action and press Enter.
Type the following command to create a new partition and press Enter:
New-Partition -DiskNumber DISK-NUMBER -UseMaximumSize
In the command, change 'DISK-NUMBER' to the correct number that represents the flash drive you're formatting.
This example creates a new partition using the entire space available on drive number 1:
New-Partition -DiskNumber 1 -UseMaximumSize
Type the following command to perform a quick format and assign a drive label, and press Enter:
Get-Partition -DiskNumber DISK-NUMBER Format-Volume -FileSystem FILE-SYSTEM -NewFileSystemLabel DRIVE-NAME
In the command, change 'DISK-NUMBER' to the correct number of your storage, 'FILE-SYSTEM' for 'NTFS,' 'FAT32,' or 'exFAT,' and 'DRIVE-NAME' with the name you want the device to appear in File Explorer.
This example selects and formats drive number 1 using the NTFS file system:
Get-Partition -DiskNumber 1 Format-Volume -FileSystem NTFS -NewFileSystemLabel workFlash
Type the following command to assign a new letter to the drive and press Enter:
Get-Partition -DiskNumber DISK-NUMBER Set-Partition -NewDriveLetter DRIVE-LETTER
In the command, replace 'DISK-NUMBER' for the correct number of your removable storage, and 'DRIVE-LETTER' with the letter you want the device to appear in File Explorer.
This example sets E as the drive letter for disk number 1:
Get-Partition -DiskNumber 1 Set-Partition -NewDriveLetter E
Once you complete these steps, similar to Command Prompt, PowerShell will remove any information in the USB flash drive to fix problems, including data corruption, write protection, and unrecognized drives. Then it'll create a new partition and configure a compatible file system to store files from your Windows 10, macOS, or Linux machine (depending on your configuration).
More Windows 10 resources
For more helpful articles, coverage, and answers to common questions about Windows 10, visit the following resources:
We may earn a commission for purchases using our links. Learn more.
Seems fasterBenchmarking the new Surface Book 3 15 with GTX 1660 Ti and 10th Gen i7
Although it's too early for a review, here are some initial benchmarks from the new Surface Book 3 15-inch with a Core i7 and NVIDIA GeForce 1660 Ti (Max-Q) and how it compares to Surface Book 2 and other premium laptops. Spoiler: While the CPU is just OK, that 1660 Ti definitely bumps up the Book 3's potential.
On Windows 10, when you have external storage (such as a USB flash drive, removable hard drive, or SD card) that stops working as a result of data corruption or another problem, you can use DiskPart to properly erase everything and start fresh with a clean partition.
DiskPart is command tool that has been around even before Windows 10, and it allows you to use Command Prompt to manage drives, partitions, and volumes when other tools like Disk Management and Format won't work to fix the problem.
In this Windows 10 guide, we'll walk you through the steps to use the DiskPart command tool to clean and format a hard drive to fix data corruption and other disk problems.
How to fix hard drive problems with DiskPart
To fix a hard drive with problems with DiskPart commands on Windows 10, use these steps:
Important: These instructions will erase everything on the drive that you'll select changes can't be undone. If the drive is still accessible, it's recommended to backup its data before proceeding. If you have multiple drives connected to your device, it's recommended to disconnect them to avoid selecting the wrong one.
- Open Start.
- Search for Command Prompt, right-click the top result, and select the Run as administrator option.
Type the following command to launch DiskPart and press Enter:
diskpart
Type the following command to list all the active drives and press Enter:
list disk
Type the following command to select the drive that you want to clean and press Enter:
select disk 0
Source: Windows Central
In the command, make sure to replace 0 for the drive number that you want to repair. If you don't perform this step correctly, you could end up wiping out the wrong drive. Proceed with caution.
Type the following command to wipe out the drive and press Enter:
clean
Type the following command to confirm the drive still selected and press Enter:
lisk disk
Quick note: The output should include an asterisk (*) next to the selected drive.
Type the following command to create a new partition and press Enter:
create partition primary
Source: Windows Central
Type the following command to select the new primary partition and press Enter:
select partition 1
Type the following command to make the partition active and press Enter:
active
Type the following command to format the partition using the NTFS file system, set a drive label, and press Enter:
format FS=NTFS label=Data quick
In the command, remember to replace Data for the name of the drive as you want to appear in File Explorer. Also, the quick flag is optional for a faster format, and you should not use it if you're not sure the drive good to perform a bad sectors. The only downside about omitting the 'quick' option is that formatting will take a very long time.
Type the following command to assign a letter and make the drive available in File Explorer and press Enter:
assign letter=g
Source: Windows Central
In the command, replace g with the drive letter that you want to use, which isn't currently assigned by another drive.
Type the following command to terminate DiskPart and press Enter:
exit
Type the following command to close Command Prompt and press Enter:
exit
Once you complete the steps, if the drive doesn't have a hardware issue, it should be available through File Explorer, and you can begin storing files on it.
More Windows 10 resources
For more helpful articles, coverage, and answers to common questions about Windows 10, visit the following resources:
Seems fasterBenchmarking the new Surface Book 3 15 with GTX 1660 Ti and 10th Gen i7
Although it's too early for a review, here are some initial benchmarks from the new Surface Book 3 15-inch with a Core i7 and NVIDIA GeForce 1660 Ti (Max-Q) and how it compares to Surface Book 2 and other premium laptops. Spoiler: While the CPU is just OK, that 1660 Ti definitely bumps up the Book 3's potential.