Windows Filesystem: Difference between revisions
Jump to navigation
Jump to search
(Created page with "==Format a disk== <code>get-disk</code> note the disk number, then: <code>clear-disk -number 1 -removedata -removeoem</code> (removes data partitions and OEM partitions) <code>new-partition -disknumber 1 -usemaximumsize</code> <code>get-partition -disknumber 1 | set-partition -newdriveletter D</code>") |
|||
Line 1: | Line 1: | ||
==Format a disk== | ==Format a disk== | ||
<code>get-disk</code> | # <code>get-disk</code> ''(note the disk number)'' | ||
# <code>clear-disk -number 1 -removedata -removeoem</code> ''(removes data partitions and OEM partitions)'' | |||
note the disk number | # <code>new-partition -disknumber 1 -usemaximumsize</code> | ||
# <code>get-partition -disknumber 1 | set-partition -newdriveletter D</code> | |||
<code>clear-disk -number 1 -removedata -removeoem</code> (removes data partitions and OEM partitions) | |||
<code>new-partition -disknumber 1 -usemaximumsize</code> | |||
<code>get-partition -disknumber 1 | set-partition -newdriveletter D</code> |
Latest revision as of 02:48, 12 February 2024
Format a disk
get-disk
(note the disk number)clear-disk -number 1 -removedata -removeoem
(removes data partitions and OEM partitions)new-partition -disknumber 1 -usemaximumsize
get-partition -disknumber 1 | set-partition -newdriveletter D