fsck_hfs and diskutil discrepancies
On my macbook pro (9,2) running 10.11.6, I've been diagnosing what I suspect is a large memory allocation leak. This has led me to booting into single-user and recovery modes, where (among other things) I've tried repairing the internal volume. The results appear contradictory when running either
fsck
fsck_hfs
diskutiland I'd like help better understanding them. From both single-user and recovery, the results are the same.
`fsck -fy` has a clean exit. It's output is:
** /dev/rdisk1s1
** Root file system
Executing fsck_hfs (version hfs-305.10.1).
** Checking non-journaled HFS Plus Volume.
The volume name is OS X Base System
** Checking extents overflow file.
** Checking catalog file.
** Checking multi-linked files.
** Checking catalog hierarchy.
** Checking extended attributes file.
** Checking volume bitmap.
** Checking volume information.
** The volume OS X Base System appears to be OK.
But running
/sbin/fsck_hfs -y -Rc -d /dev/disk0s2yields:
journal_replay(/dev/disk0s2) returned 16
** /dev/rdisk0s2 (NO WRITE)
Using cacheBlockSize=32K cacheTotalBlock=32768 cacheSize=1048576K.
Executing fsck_hfs (version hfs-305.10.1).
Block 467182910 is not an MDB or Volume Header
Non-empty journal: start = 20846592, end = 21187584
Journal replay simulation succeeded
** Checking Journaled HFS Plus volume.
The volume name is Untitled
** Checking extents overflow file.
** Checking catalog file.
** The volume Untitled was found corrupt and needs to be repaired.
volume type is pure HFS+
primary MDB is at block 0 0x00
alternate MDB is at block 0 0x00
primary VHB is at block 2 0x02
alternate VHB is at block 467182910 0x1bd8a53e
sector size = 512 0x200
VolumeObject flags = 0x03
total sectors for volume = 467182912 0x1bd8a540
total sectors for embedded volume = 0 0x00
CheckHFS returned 7, fsmodified = 0
And running
diskutil repairVolume /dev/disk0s2yeilds:
Started file system repair on disk0s2
Verifying storage system
Checking volume
disk0s2: Scan for Volume Headers
disk0s2: Scan for Disk Labels
Logical Volume Group A6D225B7-51AE-4394-9B9E-677E30373A8E on 1 device
disk0s2: Scan for Metadata Volume
Logical Volume Group has a 24 MB Metadata Volume with double redundancy
Start scanning metadata for a valid checkpoint
Load and verify Segment Headers
Load and verify Checkpoint Payload
Load and verify Transaction Segment
Incorporate 0 newer non-checkpoint transactions
Load and verify Virtual Address Table
Load and verify Segment Usage Table
Load and verify Metadata Superblock
Load and verify Logical Volumes B-Trees
Logical Volume Group contains 1 Logical Volume
Load and verify 32FCE6EB-9E5B-4585-9A29-CC67E8E0022E
Load and verify FA2EC60C-F57C-458A-BA9B-537D1393DD14
Load and verify Freespace Summary
Load and verify Block Accounting
Load and verify Live Virtual Addresses
Newest transaction commit checkpoint is valid
Load and verify Segment Cleaning
The volume A6D225B7-51AE-4394-9B9E-677E30373A8E appears to be OK
Storage system check exit code is 0
Finished file system repair on disk0s2
And finally, running first-aid from the Disk Utility application (from both recovery mode and regular login) shows no errors with one exception. If I first do first-aid on the physical disk, and then first-aid on the logical volume, both check out OK. However, if I do first-aid on the logical volume first before the physical disk, it sometimes (not always!) returns "Unable to unmount volume for repair. Operation failed."
Can someone please explain the discrepancies to me here?
Message was edited by: ayiti2015 better formating
MacBook Pro (13-inch Mid 2012), OS X El Capitan (10.11.6), OWC Mercury Electra 6G 240gb SSD