Computer >> บทช่วยสอนคอมพิวเตอร์ >  >> ระบบ >> Windows

วิธี Format USB Pen Drive ด้วย Command Prompt ใน Windows 11/10

สำห End-user การ Format USB Drive ง่ายมาก แค่คลิกขวาที่ Drive เลือก Format แต่หากคุณอยาก Format USB Pen Drive ด้วย Command Prompt นี่คือวิธีทำใน Windows 11/10/8/7

Format USB Pen Drive ด้วย CMD

ตอนใช้ Command Prompt มี 2 วิธี หนึ่งใช้ Format Command ธรรมดา อีกอย่างใช้ Diskpart เราจะแสดงทั้ง 2 วิธี

  1. ใช้ Format Command
  2. ใช้ Diskpart Tool

ตอนใช้ Diskpart Tool ต้องมี Admin Privileges คุณยังใช้ PowerShell แทน CMD ได้

1. ใช้ Format Command

วิธี Format USB Pen Drive ด้วย Command Prompt ใน Windows 11/10

เสียบ USB Drive ที่ต้องการ Format เปิด File Explorer ระบุ Drive Letter ของ USB Drive ให้ถูกต้อง อย่าปล่อยให้ผิดพลาด หากใช้ Drive Letter ผิด คุณจะ Format Partition อื่นและสูญเสียข้อมูลทั้งหมด

  • ตรวจสอบว่าไม่มีการ Copy อยู่ และ Drive ไม่ได้เปิดใน Explorer
  • พิมพ์ CMD ใน Run Prompt กด Enter เปิด Command Prompt
  • พิมพ์ FORMAT <Driveletter>: กด Enter
  • จะพรอมท์ให้ใส่ Disk ใหม่สำห Drive I กด Enter อีกครั้ง
  • หากได้ Prompt ว่า:

Format cannot run because the volume is in use by another process. Format may run if this volume is dismounted first.
ALL OPENED HANDLES TO THIS VOLUME WOULD THEN BE INVALID.
Would you like to force a dismount on this volume? (Y/N)

  • พิมพ์ Y จะ Dismount Volume เพื่อ Format เพราะมี Process อื่นเข้าถึงอยู่ Unmounting จะทำให้ Process ทั้งหมดที่เข้าถึง Drive หยุด

หากต้องการ Format ด้วย Options ที่คุณต้องการ แนะนำอ่านรายละเอียดของคำสั่ง Format ที่นี่

อ่านเพิ่ม: วิธี Delete หรือ Format C Drive ด้วย Command Prompt

2. ใช้ Diskpart Tool

วิธี Format USB Pen Drive ด้วย Command Prompt ใน Windows 11/10

DISKPART เป็นเครื่องมืออันทรงพลัง สำหจัดการ Partition ทั้งหมดจาก Command Line ก่อนรัน Tool นี้ ตรวจสอบให้แน่ใจว่าถอด USB Drive ออกแล้ว

วิธี Format USB Pen Drive ด้วย Command Prompt ใน Windows 11/10

  1. พิมพ์ diskpart ใน Run Prompt กด Enter
  2. หลัง UAC จะเปิด Command Prompt ที่รัน Tool นี้
  3. พิมพ์ LIST DISK แสดง Drives ทั้งหมดที่เชื่อมต่อ
  4. ตอนนี้เสียบ USB Drive แล้วรันคำสั่งอีกครั้ง
  5. ครั้งนี้ จะเห็น Drive เพิ่มขึ้นที่ต้อง Format ในกรณีของผม คือ DISK 2
  6. พิมพ์ SELECT DISK 2 จะได้ Prompt Disk 2 is now the selected disk
  7. พิมพ์ CLEAN กด Enter
  8. พิมพ์ CREATE PARTITION PRIMARY กด Enter
  9. พิมพ์ Format fs=NTFS Quick กด Enter
  10. พิมพ์ Assign กด Enter กำหนด Drive Letter ให้ Drive ที่ Format ใหม่

หลังทำทุกขั้นตอนเสร็จ USB Drive จะถูก Format และว่างเปล่า DISKPART Tool ทำงานต่างจาก Format Option มาตรฐานใน Windows

อ่านต่อ: วิธี Format External Hard Drive หรือ USB Drive ด้วย Windows PowerShell