บทนำ
วิธีที่ง่ายและเข้าใจง่ายที่สุดในการสร้าง Bootable USB Flash Drive เพื่อติดตั้ง Windows Server 2016 บน Physical Server คือใช้ Windows USB/DVD Download Tool Tool นี้เขียนไฟล์ *.iso Image ของ Windows ที่มีอยู่ไปยัง USB Drive หรือ Stick และทำให้ Bootable ได้ อย่างไรก็ตาม Tool นี้ Format Drive เป็น NTFS ซึ่งเหมาะสำหรับติดตั้ง Windows บนระบบ BIOS เท่านั้น และไม่รองรับระบบ EFI บทความนี้จะแสดงวิธีสร้าง Bootable USB Flash Drive พร้อม Image Windows Server 2016 โดยไม่ใช้ Third-party Tools
หมายเหตุ: ต่างจากระบบ BIOS ที่บูทจาก Partition แบบ FAT, FAT32, exFAT หรือ NTFS ได้ ระบบ EFI บูทได้เฉพาะจาก FAT32 Boot Partition เท่านั้น
ขึ้นอยู่กับสถาปัตยกรรม UEFI / BIOS ของเซิร์ฟเวอร์ จะใช้วิธีใดวิธีหนึ่งในการสร้าง Installation USB Flash Drive
สำคัญ: ระวังในการทำตามคำแนะนำ ตรวจสอบ Disk Paths และ Disk Numbers ให้ดี มิฉะนั้นอาจ Format Disk ที่มีข้อมูลอยู่โดยไม่ได้ตั้งใจ USB Flash Drive จะถูก Format ในทุกกรณี และข้อมูลทั้งหมดจะถูกลบ
UEFI Bootable USB Flash Drive
หากใช้ USB Flash Drive เพื่อบูทและติดตั้ง Windows Server 2016 บน EFI Server ข้อกำหนดของ USB Flash Drive:
- ขนาดขั้นต่ำของ USB Stick คือ 8 GB
- Partition Table Type คือ GPT
- File System Type คือ FAT32
เสียบ USB Flash Drive เข้าเครื่อง (ตัวอย่างใช้ PC รัน Windows 10) เปิด Command Prompt ด้วยสิทธิ์ Administrator และรัน DISKPART ด้วยคำสั่ง:
list disk
แสดงรายการ Disks ในกรณีของผม USB Flash Drive มีหมายเลข 1 เลือกมัน:
select disk 1
ล้างเนื้อหา:
clean
แปลง Partition Table เป็น GPT:
convert gpt
สร้าง Partition ใหม่ (ขนาดไม่เกิน 16GB):
create partition primary
Tip: หาก USB Flash Drive ใหญ่กว่า 16GB ให้สร้าง Partition ขนาดน้อยกว่า 16 GB:create partition primary size=16000
Format Partition นี้เป็น FAT32:
format fs=FAT32 quick
กำหนด Drive Letter ให้ Partition ใหม่:
assign letter=M
ออกจาก Diskpart:
exit
Copy ไฟล์ติดตั้งจาก Mounted ISO Image ของ Windows Server 2016 ไปยัง USB Flash Drive (สมมติ ISO Mount เป็น Drive E:\)
xcopy e:\* m:\ /H /F /E
Bootable USB Flash Drive ด้วย MBR Partition Table สำหรับ BIOS และ UEFI
สามารถสร้าง Bootable USB Flash Drive สำหรับ Windows Server 2016 ด้วย MBR Partition Table ที่ใช้ได้ทั้ง BIOS และ UEFI Systems ข้อกำหนด:
- ขนาดขั้นต่ำ USB Flash Drive 8 GB
- Partition Table Type MBR
- File System Type FAT32
เริ่ม Diskpart Session และรันคำสั่งทีละขั้น:
list disk
select disk 1
clean
create partition primary
format fs=FAT32 quick
active
assign letter=M
exit
Tip: หาก Flash Drive ใหญ่กว่า 16 GB ใช้ create partition primary size=16000
ออกจาก Diskpart และ Copy ไฟล์ติดตั้ง:
xcopy e:\* m:\ /H /F /E
กรณีขนาด Install.wim เกิน 4 GB
หากขนาด Install.wim เกิน 4 GB จะ Copy ไปยัง Flash Drive ไม่ได้ เนื่องจาก File System จำกัดขนาดไฟล์สูงสุด 4 GB ในกรณีนี้ต้อง Split WIM File ให้เล็กลงหลายไฟล์ด้วย DISM:
dism /Split-Image /ImageFile:e:\sources\install.wim /SWMFile:m:\sources\install.swm /FileSize:4096