indospot

CreatePartitions_BIOS

Sep 24th, 2025
354
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | Software | 0 0
  1. rem == CreatePartitions-BIOS.txt ==
  2. rem == These commands are used with DiskPart to
  3. rem create three partitions
  4. rem for a BIOS/MBR-based computer.
  5. rem Adjust the partition sizes to fill the drive
  6. rem as necessary. ==
  7. select disk 0
  8. clean
  9. rem == 1. System partition ======================
  10. create partition primary size=100
  11. format quick fs=ntfs label="System"
  12. assign letter="S"
  13. active
  14. rem == 2. Windows partition =====================
  15. rem == a. Create the Windows partition =======
  16. create partition primary
  17. rem == b. Create space for the recovery tools
  18. rem ** Update this size to match the size of
  19. rem the recovery tools (winre.wim)
  20. rem plus some free space.
  21. shrink minimum=500
  22. rem == c. Prepare the Windows partition ======
  23. format quick fs=ntfs label="Windows"
  24. assign letter="W"
  25. rem == 3. Recovery partition ====================
  26. create partition primary
  27. format quick fs=ntfs label="Recovery image"
  28. assign letter="R"
  29. set id=27
  30. list volume
  31. exit
Advertisement
Add Comment
Please, Sign In to add comment