DEV Community

MrChoke
MrChoke

Posted on • Originally published at Medium on

1

How To Format NTFS in Big Sur

บังเอิญไล่ไปไล่มาไปเจอ Source Code ของ NTFS ที่ใช้ใน macOS มันมีส่วนของ newfs อยู่เหมือนกับ FAT, exFAT และ APFS แต่คำสั่งหายไปเลยเป็นที่มาบันทึกนี้

จากบทความก่อนหน้าคือการ Read / Write NTFS บน Big Sur

NTFS Read/Write in Big Sur (Intel and M1 ) — Free

แต่มันคาใจว่า mount อ่านเขียนได้แต่ทำไมถึงสร้างไม่ได้ก็ไล่ไปเจอ

Source Browser

มาไล่ดูใน macOS ไม่พบคำสั่ง newfs_ntfs แต่มีคำสั่ง

BootCampFormatter
Enter fullscreen mode Exit fullscreen mode

และเมื่อลองสั่งดูมันก็คือคำสั่ง newfs_ntfs นั่นเอง

วิธี Format เป็น NTFS

ในตัว Disk Utility มันจะไม่ยอมให้ Format เป็น NTFS แต่สามารถสร้างเป็น ExFAT ได้ ซึ่ง ID ของ Partition จะเป็นตัวเดียวกันคือ 07 ดังนั้นตอนแรกก็ให้ fotmat disk เป็น ExFAT ก่อนแล้วค่อยมา format อีกรอบด้วยคำสั่งข้างบน

สมมติของเดิมเป็น FAT

ก็ให้ Click ขวาเลือกแล้ว Erase

เลือกเป็น ExFAT

หลังจากนั้นให้ unmount

เมื่อได้เรียบร้อยก็เปิด terminal ขึ้นมาแล้วพิมพ์คำสั่ง

sudo /System/Library/Filesystems/ntfs.fs/Contents/Resources/BootCampFormatter -v NTFS /dev/disk4s1
Enter fullscreen mode Exit fullscreen mode

โดยเปลี่ยนที่อยู่อุปกรณ์ให้ตรงกับ disk ที่จะ format ซึ่งสามารถดูใน Disk Utility ด้านบนก็ได้ของผมจะเป็น /dev/disk4s1 นั่นเอง

เมื่อ format เสร็จแล้วลอง mount ดูครับ

ตอนนี้เราก็ได้ NTFS เรียบร้อยถ้าจะ mount แบบ Read / Write ก็ให้อ่านบทความด้านบนนะครับ

แต่ทั้งนี้เพื่อความไม่ลำบากก็สามารถใช้ ExFAT แทนได้ซึ่งเราจะไม่ลำบากและใช้ App Disk Utility ได้เลยแต่ถ้าใครทิ้ง NTFS ไม่ได้และไม่มีเครื่อง Windows สำหรับ Format ก็ใช้วิธีนี้ได้ครับไม่ต้องติดตั้งอะไรเพิ่มแต่ลำบากหน่อย

AWS Q Developer image

Your AI Code Assistant

Generate and update README files, create data-flow diagrams, and keep your project fully documented. Built to handle large projects, Amazon Q Developer works alongside you from idea to production code.

Get started free in your IDE

Top comments (0)

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More

👋 Kindness is contagious

Engage with a wealth of insights in this thoughtful article, valued within the supportive DEV Community. Coders of every background are welcome to join in and add to our collective wisdom.

A sincere "thank you" often brightens someone’s day. Share your gratitude in the comments below!

On DEV, the act of sharing knowledge eases our journey and fortifies our community ties. Found value in this? A quick thank you to the author can make a significant impact.

Okay