Re: Reading HFS Standard Block0 on USB thumb drives
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:9.0) Gecko/20111222 Thunderbird/9.0.1 Thanks Alison, I tried it on the device in question and it shows 512 bytes of zeros. Thanks, I'm no expert, but have you tried running something like 'dd if=/dev/rdisk1 bs=512 count=1 | xxd' from the command-line? I just tried this on an old APM-formatted drive I have here and everything looks okay .... -- Allie On Jan 13, 2012, at 6:39 PM, Mike wrote:
Hi,
I am trying to read a Block0 driver descriptor map from old-style Apple Partition Map formatted USB thumb drives which were formatted using Mac OS Standard (HFS) on OS 9. I am using Xcode 4.2 on 10.6.8.
But when I do the read the entire Block0 structure comes back filled with zeros. I've checked my device open and seek calls and they correctly set to byte offset 0 on the device.
Any idea why this is happening?
Thanks,
_______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... Is your device HFS+ formatted or HFS? I am trying to read HFS only (as described in the old IM: Devices SCSI Manager chapter). I noticed 'diskUtil list' in Terminal shows that it doesn't recognize the partition format, yet the 10.6.8 Finder can mount it as read-only just fine and I see my files on it I copied over from when I formatted it with Drive Setup on OS 9: /dev/disk0 #: TYPE NAME SIZE IDENTIFIER 0: GUID_partition_scheme *1.0 TB disk0 1: EFI 209.7 MB disk0s1 2: Apple_HFS 10.6 569.4 GB disk0s2 3: Apple_HFS Files 269.3 GB disk0s3 4: Apple_HFS Applications 100.8 GB disk0s4 5: Apple_HFS 10.6 FCP X 51.3 GB disk0s5 /dev/disk1 #: TYPE NAME SIZE IDENTIFIER 0: GUID_partition_scheme *80.0 GB disk1 1: EFI 209.7 MB disk1s1 2: Apple_HFS Files FireWire 79.7 GB disk1s2 /dev/disk3 #: TYPE NAME SIZE IDENTIFIER 0: untitled *2.0 GB disk3 I know it's formatted correctly because I can see and access the files on it from Finder. On 1/13/12 7:49 PM, Alison Cassidy wrote: This email sent to site_archiver@lists.apple.com
participants (1)
-
Mike