Advertisement
LaDEEKill3R

UEFI_1

Sep 7th, 2022 (edited)
288
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.53 KB | None | 0 0
  1. rem == These commands are used with DiskPart to
  2. rem create five partitions
  3. rem for a UEFI/GPT-based PC.
  4. rem Adjust the partition sizes to fill the drive
  5. rem as necessary. ==
  6.  
  7. rem WinNTSetup_Boot=S:
  8. rem WinNTSetup_Install=W:
  9.  
  10. select disk 1
  11. clean
  12. convert gpt
  13.  
  14. rem == 1. Windows RE tools partition ===============
  15. create partition primary size=980
  16. format quick fs=ntfs label="Windows RE tools"
  17. assign letter="T"
  18. set id="de94bba4-06d1-4d40-a16a-bfd50179d6ac"
  19. gpt attributes=0x8000000000000001
  20.  
  21. rem == 2. System partition =========================
  22. create partition efi size=260
  23. rem ** NOTE: For Advanced Format 4Kn drives,
  24. rem change this value to size = 260 **
  25. format quick fs=fat32 label="System"
  26. assign letter="S"
  27.  
  28. rem == 3. Microsoft Reserved (MSR) partition =======
  29. create partition msr size=128
  30.  
  31. rem == 4. Windows partition ========================
  32. rem == a. Create the Windows partition ==========
  33. rem create partition primary
  34. rem == b. Create space for the recovery image ===
  35. rem shrink minimum=15000
  36. rem ** NOTE: Update this size to match the size
  37. rem of the recovery image **
  38. rem == c. Prepare the Windows partition =========
  39. format quick fs=ntfs label="Windows"
  40. assign letter="W"
  41.  
  42. rem === 5. Recovery image partition ================
  43. rem create partition primary
  44. rem format quick fs=ntfs label="Recovery image"
  45. rem assign letter="R"
  46. rem set id="de94bba4-06d1-4d40-a16a-bfd50179d6ac"
  47. rem gpt attributes=0x8000000000000001
  48. list volume
  49. exit
Tags: Diskpart
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement