GUIDPartitionTableFilter: How can I non-destructively change a partition's filesystem type ID in OS X?
For some reason (which I'll add at the end so I can get to the point) a partition on my external USB drive is mistakenly flagged as 'Microsoft Basic Data' and not 'Apple_HFS', as shown by
diskutil:
$ diskutil list
/dev/disk0
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *500.1 GB disk0
1: EFI 209.7 MB disk0s1
2: Apple_HFS Macintosh HD 402.5 GB disk0s2
3: Microsoft Basic Data Boot Camp 97.1 GB disk0s3
/dev/disk3
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *1.0 TB disk3
1: EFI 209.7 MB disk3s1
2: Microsoft Basic Data 999.9 GB disk3s2
^^^^^^^^^^^^^^^^^^^^ Wrong!
When I plug the disk in or boot up, Snow Leopard complains about not being able to recognize the disk and asking if I want to initialize it. However, if I do
mount_hfs /dev/disk3s2 /Volumes/Test the drive is mounted and I can access the filesystem just fine.
How can I change the type back to Apple_HFS? I've looked at the
gpt and
diskutil man pages but only found info pertaining to creating new partitions, not modifying existing ones.
posted by The Lurkers Support Me in Email at 4:18 PM on December 14, 2009