Sunteți pe pagina 1din 2

Some USB keys have been found to have various partition table set-ups that the USB

software will not work with. You can use Windows Diskpart to re-format a USB key
and re-partition it.

Open a Command Window (cmd)


Enter diskpart
Enter list disk (it is important you KNOW which disk is the USB key you are
formatting)
Enter select disk x where x is your USB key
Enter clean
Enter create part primary
Enter select part 1
Enter active
Enter format fs=fat32 label="UDiskOne"
Enter format fs=ntfs label="MY USB DRIVE"
Enter assign

"Tabernus" (Label is optional - ensures USB key is labelled as Tabernus in Explorer


etc)

The process can take some time, but the USB is now operational for Tabernus USB
Erase.

Commands and parameters


The diskpart tool has the following commands and parameters available:

select can set the focus on a specific target


select disk � use this command to set the focus on a specific disk
Command Prompt: select disk
Command Prompt: select disk

select partition � use the select partition command to set the focus on a specific
partition
select volume � use this command to set the focus on a specific volume
detail disk will deliver information about the current disk
detail partition will deliver information about the current partition
detail volume will deliver information about the current volume
list disk � use list disk to get summary information about the available disks on
your computer
list partition � use this command to get information about each partition available
on a specific disk
list volume � use list volume to get information about each volume available on the
computer
active � use the active command to set the focus on the current partition to be
active
assign � use assign to assign a letter or a mount point to the current active
partition
create partition primary size=SIZE_IN_MB � use this command to create a new primary
partition. The SIZE_IN_MB is the size of the partition you want to create, in MB.
create partition extended size=SIZE_IN_MB � use this command to create a new
extended partition. The SIZE_IN_MB is the size of the partition you want to create,
in MB.
create partition logical size=SIZE_IN_MB � use this command to create a new logical
partition. The SIZE_IN_MB is the size of the partition you want to create, in MB.
delete partition will delete the current active partition
extend will extend the current volume
remove will remove a letter or a mount point from the current active partition
active � use this to set the current volume as active
add disk � use this command to add a mirror to the current active volume
break disk � use this command to break the mirror added
create volume stripe � use this to create a stripe set volume on a specified disk
create volume raid � use this command to create a Raid-5 volume on a specified disk
delete disk � use this command to delete a missing dynamic disk
delete partition � use this command to delete the current active partition
extend disk � use this command to extend the current volume
import can be used to import disks from a foreigh disk group
online can be used to bring a disk or a volume online that was previously offline
remove can be used to remove a letter or a mount point from the current active
volume
retain is used to prepare a volume to be used as a boot or system volume
convert mbr will set the partition style of the current disk to MBR
convert gpt will set the partition style to GPT
convert dynamic will change a basic disk into a dynamic one
convert basic will convert a dynamic disk (empty disk) into a basic disk
exit will exit the utility
clean will remove the partition or volume formatting from the current disk
rescan can rescann the I/O buses and can discover new disks added to the computer
help will display the list of all available commands
Error Codes
You can find a list error codes to debug various errors:

Code 0 means that no errors occurred


Code 1 means that a fatal exception occurred
Code 2 means that the parameters you specified for a command are incorrect
Code 3 means that diskpart is unable to open the specified file
Code 4 means that diskpart (one of the services used by the utility) returned a
failure
Code 5 means a command syntax error

S-ar putea să vă placă și