The volume structure on an HFS+ volume that is comparable to the superblock of a UFS volume is the volume header, or volume information block (VIB).
Apple has a detailed description of the HFS+ Volume format:
http://developer.apple.com/technotes/tn/tn1150.html
Micromat posted in the MacFixIt Forums some instructions for viewing the text representation of the volume header, using the free utility hfsdebug:
Use hfsdebug to view volume header:
syntax given on page 1494 of “Mac OS X Internals” by Amit Singh.
Using your browser, go to
http://www.osxbook.com/software/hfsdebug/ . Download hfsdebug from the link at the bottom of the page. After the download is complete, double-click the .dmg file you downloaded. When this disk image mounts, you see a free utility named hfsdebug. Copy the hfsdebug file to your desktop.
Open Terminal, located in /Applications/Utilities. Type the following three commands, each on its own line, and press the Return key at the end of each line:
cd ~/Desktop
chmod u+x hfsdebug
sudo ./hfsdebug -d /dev/rdisk1s10 -v
Enter your administrative password at the prompt.
Here is a sample of the output:
MMT3s-Computer:~ MMT3$ cd ~/Desktop
MMT3s-Computer:~/Desktop MMT3$ chmod u+x hfsdebug
MMT3s-Computer:~/Desktop MMT3$ sudo ./hfsdebug -d /dev/rdisk1s10 -v
Password:
# HFS Plus Volume
Volume size = 9699188 KB/9471.86 MB/9.25 GB
# HFS Plus Volume Header
signature = 0x482b (H+)
version = 0x4
lastMountedVersion = 0x4846534a (HFSJ)
attributes = 00000000000000000010000100000000
. kHFSVolumeUnmounted (volume was successfully unmounted)
. kHFSVolumeJournaled (volume has a journal)
journalInfoBlock = 0x1993a3
createDate = Tue Oct 11 20:35:24 2005
modifyDate = Wed Oct 11 21:23:41 2006
backupDate = Fri Jan 1 00:00:00 1904
checkedDate = Tue Oct 11 20:35:24 2005
fileCount = 178583
folderCount = 47879 /* not including the root folder */
blockSize = 4096
totalBlocks = 2424797
freeBlocks = 693970
nextAllocation = 2343707
rsrcClumpSize = 65536
dataClumpSize = 65536
nextCatalogID = 265932
writeCount = 8163599
encodingsBitmap = 00000000000000000000000000000000
00000010000000000000000000001111
# Finder Info
# Bootable system blessed folder ID
finderInfo[0] = 0x1f7ca (LaCie_Boot:/System/Library/CoreServices)
# Parent folder ID of the startup application
finderInfo[1] = 0
# Open folder ID
finderInfo[2] = 0
# Mac OS 9 blessed folder ID
finderInfo[3] = 0
# Reserved
finderInfo[4] = 0
# Mac OS X blessed folder ID
finderInfo[5] = 0x1f7ca (LaCie_Boot:/System/Library/CoreServices)
# VSDB volume identifier (64-bit)
finderInfo[6] = 0xcd566ff7
finderInfo[7] = 0x351c415f
# File System Boot UUID
UUID = 38178E0C-3CC2-37E3-8E87-B5C2662DCF95
# Allocation Bitmap File
logicalSize = 659456 bytes
totalBlocks = 161
fork temperature = /* Metadata Zone */
clumpSize = 356352 bytes
extents = startBlock blockCount % of file
0x74b86 0xa1 100.00 %
161 allocation blocks in 1 extents total.
161.00 allocation blocks per extent on an average.
# Extents Overflow File
logicalSize = 5242880 bytes
totalBlocks = 1280
fork temperature = /* Metadata Zone */
clumpSize = 5242880 bytes
extents = startBlock blockCount % of file
0xa98c9 0x500 100.00 %
1280 allocation blocks in 1 extents total.
1280.00 allocation blocks per extent on an average.
# Catalog File
logicalSize = 92274688 bytes
totalBlocks = 22528
fork temperature = /* Metadata Zone */
clumpSize = 11534336 bytes
extents = startBlock blockCount % of file
0x148dde 0x5800 100.00 %
22528 allocation blocks in 1 extents total.
22528.00 allocation blocks per extent on an average.
# Attributes File
logicalSize = 0 bytes
# Startup File
logicalSize = 0 bytes