ไฟล์ DMG คืออะไร?
- ชื่อเต็ม
- Apple Disk Image
- พัฒนาโดย
- Apple Inc.
- เปิดตัวครั้งแรก
- 2001
- MIME Type
- application/x-apple-diskimage
รูปแบบ DMG (Apple Disk Image) เป็น proprietary disk image container ที่พัฒนาโดย Apple Inc. ทำหน้าที่เป็น virtual volume ที่ห่อหุ้ม file systems รวมถึง HFS+ (Mac OS Extended) และ APFS (Apple File System) สร้างขึ้นบนข้อกำหนด Universal Disk Image Format (UDIF) DMG archives รองรับอัลกอริทึม block-level compression เช่น zlib, bzip2, ADC (Apple Data Compression) และ LZFSE พร้อมตัวเลือกการเข้ารหัส AES 128-bit หรือ 256-bit โครงสร้างไฟล์ลงท้ายด้วย trailer ที่มี XML property list (plist) และ Resource Fork ซึ่งกำหนด partition map และรวมถึง CRC-32 checksums สำหรับการตรวจสอบความสมบูรณ์ของข้อมูลระหว่างกระบวนการ mounting
วิธีเปิดไฟล์ DMG
บน macOS ไฟล์ DMG จะถูกจัดการแบบ native โดยยูทิลิตี้ Apple DiskImageMounter ซึ่งจะ mount image เป็น virtual drive ภายใน Finder โดยไม่ต้องใช้ซอฟต์แวร์ภายนอก ระบบปฏิบัติการ Windows ขาด kernel-level drivers ในการอ่าน file systems แบบ HFS+ หรือ APFS ดังนั้นผู้ใช้ต้องพึ่งพายูทิลิตี้ extraction แบบ third-party เช่น 7-Zip, PeaZip หรือ TransMac เพื่อเข้าถึงข้อมูลภายใน ในสภาพแวดล้อม Linux ผู้ใช้มักจะใช้เครื่องมือ command-line dmg2img เพื่อแปลง archive เป็นรูปแบบมาตรฐาน ISO ก่อนทำการ mount หรือใช้ p7zip สำหรับการ extraction โดยตรง