Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Is there a tool that can be used to partition a disk (SD card in particular) from the command line? The purpose of this is for batch processing and customized GUI.

share|improve this question

3 Answers 3

up vote 4 down vote accepted

I doubt it will work on an SD card, but here is the command: diskpart

http://support.microsoft.com/kb/300415

share|improve this answer

KCotreau is right. You can use DiskPart, which is more powerful as a graphical disk management tool.

But there is a problem for some USB sticks and SD cards: They usually don't have a Master Boot Record (MBR).

In such case you have to delete the existing partition and create a MBR. After this, you can create more than one partitions. But sometimes you have to assign drive letter manually, because Windows recognizes just the first partition.

BTW: A advantage of an existing MBR is, that you can boot from such a media.

share|improve this answer
    
You can create more than one volume on the disc, but Microsoft's tools themselves won't enable you do so and Microsoft's operating systems won't like you for doing it. –  JdeBP Jun 21 '11 at 12:44

Perhaps an unusual solution, but you could just boot Linux (even off an SD card!) and use the excellent cfdisk. Or fdisk.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.