Windows Filesystem: Difference between revisions

From Dave-Wiki
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, then:
# <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

  1. get-disk (note the disk number)
  2. clear-disk -number 1 -removedata -removeoem (removes data partitions and OEM partitions)
  3. new-partition -disknumber 1 -usemaximumsize
  4. get-partition -disknumber 1 | set-partition -newdriveletter D