fsck: "Bad super block: magic number wrong"

One of my 750 Gig FireWire drives behaves peculiarly, all the files stopped opening on it. Disk Utility doesn't see anything wrong, DiskWarrior 4 didn't fix the HD's behavior, DataRescue II was willing to rescue files... but 750 Gigs' worth? Who has that big of a spare HD.

So I booted in Safe mode and ran the following fsck command from Terminal:
/sbin/fsck -f /dev/disk3s3

I received the following answer:
"BAD SUPER BLOCK: MAGIC NUMBER WRONG
LOOK FOR ALTERNATE SUPERBLOCKS? no"

My UNIX knowledge pretty much ended at this. I surmise from the answer that I won the UNIX "corrupted directory" jackpot. Does anyone know what commands I should enter to look for alternate superblocks or perform some other remedial action here? Thank you in advance

Dual G5 + Single G5 + 2 clamshell IBooks, Mac OS X (10.4.10)

Posted on Nov 25, 2007 10:15 AM

Reply
19 replies

Dec 5, 2007 3:35 PM in response to George Kopeczky

George,

Sorry, Illness kept me off the computer until now.

Thank you for the information, which I have copied & shall read about. That, and the thread you reference, should answer many of my questions. My interest in magic numbers, UUIDs, GUIDs, & disk editors is in knowing unquestionably what disk partition table you have (a MS RAID's?), whose volume you have (still journaled HFS+), and their byte orders. Reading these with a physical disk editor (whose byte-order one knows) would reveal whether RAID drivers, FUSE, Virtual PC, &c have 'mucked things up'. (Did you notice MS makes it hard to remove their little-endian partition tables?)

Without the ability to examine your disk at a low level, you shall have to study (and I should like to examine some of these things I've not used) the documentation of each to understand how all these 'things', which have the ability to change your HD, interact. Unless they're commonly used together, that can be difficult or time-consuming.

I'm sorry (well, not that sorry) that I stopped administrating servers before many of these 'features' existed. Have you considered posting this 'possibly hardware' problem in the MacOSX Server's section as well? (Cross-posting had its uses.) Some of those people may have encountered just this problem.

Until later,


Bruce

Dec 7, 2007 1:09 AM in response to Bruce Bathurst

Hello Bruce,

I'm working on educating myself on this issue. In the meantime, this is what a disk recovery program called Drive Genius says about the "sick" disk:

Drive Title: ST375084 0A Media
Whole: No
Leaf: Yes
Writable: Yes
Mounted: Yes
BSD Major: 14
BSD Minor: 35
Preferred Block Size: 4,096 bytes
Size: 698.51 GB (750,022,115,328 bytes)
Used: 680.85 GB (731,059,613,696 bytes), 97.47%
Available: 17.66 GB (18,962,501,632 bytes), 2.53%
Removable: No
Ejectable: No
Content Hint: Apple_HFS
Content: Apple_HFS
S.M.A.R.T. Status: Not Supported

Details:
firstunusedblock: 38103
lastusedblock: 183110556
embedded_start: 0
signature: 482b
version: 4
attributes: 8192
lastMountedVersion: HFSJ
createDate: 2007-06-03 13:43:45 -1000
modifyDate: 2007-12-06 20:14:23 -1000
backupDate: 0
checkedDate: 2007-10-31 20:39:52 -1000
fileCount: 1420
folderCount: 74
blockSize: 4096
totalBlocks: 183110648
freeBlocks: 4629517
nextAllocation: 86673719
rsrcClumpSize: 65536
dataClumpSize: 65536
nextCatalogID: 2080
writeCount: 18181
encodingsBitmap: 1
finderInfo[0]: 0
finderInfo[1]: 0
finderInfo[2]: 0
finderInfo[3]: 0
finderInfo[4]: 0
finderInfo[5]: 0
finderInfo[6]: 0
finderInfo[7]: 0
finderInfo[8]: 0
finderInfo[9]: 0
finderInfo[10]: 0
finderInfo[11]: 0
finderInfo[12]: 0
finderInfo[13]: 0
finderInfo[14]: 0
finderInfo[15]: 0
finderInfo[16]: 0
finderInfo[17]: 0
finderInfo[18]: 0
finderInfo[19]: 0
finderInfo[20]: 0
finderInfo[21]: 0
finderInfo[22]: 0
finderInfo[23]: 0
finderInfo[24]: 14
finderInfo[25]: 216
finderInfo[26]: 34
finderInfo[27]: 121
finderInfo[28]: 253
finderInfo[29]: 144
finderInfo[30]: 167
finderInfo[31]: 49
allocationFilelogicalSize: 22892544
allocationFileclumpSize: 22892544
allocationFiletotalBlocks: 5589
allocationFileextentsstartBlock[0]: 1
allocationFileextentsblockCount[0]: 5589
allocationFileextentsstartBlock[1]: 0
allocationFileextentsblockCount[1]: 0
allocationFileextentsstartBlock[2]: 0
allocationFileextentsblockCount[2]: 0
allocationFileextentsstartBlock[3]: 0
allocationFileextentsblockCount[3]: 0
allocationFileextentsstartBlock[4]: 0
allocationFileextentsblockCount[4]: 0
allocationFileextentsstartBlock[5]: 0
allocationFileextentsblockCount[5]: 0
allocationFileextentsstartBlock[6]: 0
allocationFileextentsblockCount[6]: 0
allocationFileextentsstartBlock[7]: 0
allocationFileextentsblockCount[7]: 0
extentsFilelogicalSize: 11534336
extentsFileclumpSize: 11534336
extentsFiletotalBlocks: 2816
extentsFileextentsstartBlock[0]: 19927
extentsFileextentsblockCount[0]: 2816
extentsFileextentsstartBlock[1]: 0
extentsFileextentsblockCount[1]: 0
extentsFileextentsstartBlock[2]: 0
extentsFileextentsblockCount[2]: 0
extentsFileextentsstartBlock[3]: 0
extentsFileextentsblockCount[3]: 0
extentsFileextentsstartBlock[4]: 0
extentsFileextentsblockCount[4]: 0
extentsFileextentsstartBlock[5]: 0
extentsFileextentsblockCount[5]: 0
extentsFileextentsstartBlock[6]: 0
extentsFileextentsblockCount[6]: 0
extentsFileextentsstartBlock[7]: 0
extentsFileextentsblockCount[7]: 0
catalogFilelogicalSize: 62914560
catalogFileclumpSize: 62914560
catalogFiletotalBlocks: 15360
catalogFileextentsstartBlock[0]: 22743
catalogFileextentsblockCount[0]: 15360
catalogFileextentsstartBlock[1]: 0
catalogFileextentsblockCount[1]: 0
catalogFileextentsstartBlock[2]: 0
catalogFileextentsblockCount[2]: 0
catalogFileextentsstartBlock[3]: 0
catalogFileextentsblockCount[3]: 0
catalogFileextentsstartBlock[4]: 0
catalogFileextentsblockCount[4]: 0
catalogFileextentsstartBlock[5]: 0
catalogFileextentsblockCount[5]: 0
catalogFileextentsstartBlock[6]: 0
catalogFileextentsblockCount[6]: 0
catalogFileextentsstartBlock[7]: 0
catalogFileextentsblockCount[7]: 0
attributesFilelogicalSize: 0
attributesFileclumpSize: 0
attributesFiletotalBlocks: 0
attributesFileextentsstartBlock[0]: 0
attributesFileextentsblockCount[0]: 0
attributesFileextentsstartBlock[1]: 0
attributesFileextentsblockCount[1]: 0
attributesFileextentsstartBlock[2]: 0
attributesFileextentsblockCount[2]: 0
attributesFileextentsstartBlock[3]: 0
attributesFileextentsblockCount[3]: 0
attributesFileextentsstartBlock[4]: 0
attributesFileextentsblockCount[4]: 0
attributesFileextentsstartBlock[5]: 0
attributesFileextentsblockCount[5]: 0
attributesFileextentsstartBlock[6]: 0
attributesFileextentsblockCount[6]: 0
attributesFileextentsstartBlock[7]: 0
attributesFileextentsblockCount[7]: 0
startupFilelogicalSize: 0
startupFileclumpSize: 0
startupFiletotalBlocks: 0
startupFileextentsstartBlock[0]: 0
startupFileextentsblockCount[0]: 0
startupFileextentsstartBlock[1]: 0
startupFileextentsblockCount[1]: 0
startupFileextentsstartBlock[2]: 0
startupFileextentsblockCount[2]: 0
startupFileextentsstartBlock[3]: 0
startupFileextentsblockCount[3]: 0
startupFileextentsstartBlock[4]: 0
startupFileextentsblockCount[4]: 0
startupFileextentsstartBlock[5]: 0
startupFileextentsblockCount[5]: 0
startupFileextentsstartBlock[6]: 0
startupFileextentsblockCount[6]: 0
startupFileextentsstartBlock[7]: 0
startupFileextentsblockCount[7]: 0

I ran a disk check with the program, but it seemed to be just a slightly different GUI for Apple's Disk Utility, to judge by the exact same report it gave.
The good news is, Drive Genius has a sector editor utility. The bad news is, I'm not sure what I'd need to look for with it, given the elusive nature of the problem.

George

Dec 9, 2007 8:54 PM in response to George Kopeczky

George,

Thank you for the excellent information, which I hope very much my health will allow me to examine tomorrow. I'm afraid my interest in your problem has been not because my knowledge of modern disk & file structures is excellent, but because they are poor; and this makes me want to learn about them - a problem is the best way. So, I feel as if I may be exploiting you rather than helping you.

RAID came out about when I retired, and I was unsuccessful in convincing a client to implement it on their internet server. Striped RAIDs & demand paging seem an elegant way of more closely 'balancing' the information traffic in a multitasking operating system, and I had always wanted to implement it.

Because of my delays and desire to study your problem as much as solve it, I should now offer you whatever advice I currently have. Your problem is: What's wrong with this disk? Why did it fail as part of a mirrored array? When I consulted, I recommended only the most boring applications I could, old applications. This is because mixing & matching parts & software always produces problems; and if thousands of people encountered these a year ago, they've likely all been fixed. Hence, my systems were dull, but reliable.

Your disk differs from the others in its model number, but it may have differed in other ways when first used. You then took it home & possibly partitioned it, certainly formatted it for an Apple computer. Then you, quite reasonably, used two (or three) applications that should have given you write permission to the disk's Microsoft partition (or directory). Unless each application anticipated your use of the others, and anticipated your using some disk structures that are artifacts of a RAID array on a 'plain' Mac, interactions could be unhappy.

Though I've not yet studied the details of RAIDs, certainly the controller handles the gritty details & the driver should accept normal input; except, it allows you to choose the type of array you want. One might expect data structures on a RAID disk to be unusual, even the partition table: for it would be simplest to use a partition table designed to work for both a striped array and a mirrored array as well - this means unusual. We also know that Microsoft partition tables are difficult to remove, and hfs_fsck didn't expect to see yours.

The first thing, of course, would be to examine your name, groups, & permissions accorded you; then use both Aqua & the terminal to look for any differences in ownerships or permissions in the files, directories, & volumes containing files you can access & files you can't. If there are different volumes, check where they are mounted and the permissions assigned the volumes.

The second thing would be to definitively identify your current partition table, which may be the same as that it had on the server. Next, definitively identify the byte-order used. Professional applications for Unix or Linux may easily assume big-endian order; and Microsoft would assuredly use little-endian.

Failing that, or skipping that, you want to be sure you can overwrite all data structures on your disk with those of your choice. If your disk is ATA, a free government security erasure program may be overkill, but it is a sure bet. Even if you find the identification of obscure disk structures a problem, recording the content of the first several blocks of the disk will allow you to assure yourself you have changed the disk's structures (boot code, partition table) to those of your choice.

If this problem isn't urgent, you can study it (as I shall); if it is, you may either need to stuff your data somewhere and be certain the disk is repartitioned & reformatted solely for the Mac of your choice; or pose your problem to manufacturers & forums of professional unix administrators.

Restructuring the disk for your Mac, you could then test the disk to assure yourself the original problem did not lie with a disk failure of any kind. If the disk's manufacturer assures you the two models are compatible in an array, the problem would then likely prove an intermittent one with your server. (This might cause you to change your backup strategy for a while.)

My apology for delays & the above 'arm-waving' strategy.

Bruce

Feb 9, 2008 1:30 AM in response to Bruce Bathurst

The latest news on this corrupted 750 Gig HD:

It appears that the data damage WAS caused by some kind of Filesystem meddling by some program. A similar type of NTFS utility I tried since, Paragon(?)NTFS caused all my FireWire drives to fall off from the face of the planet. I nuked it fast, and the reappeared unharmed this time, but the lesson remains: if you want to loose hundreds of Gigs of data, install one of these filesystem hacks.

To revive my files, since my last post I tried the following things: I uninstalled Virtual PC7 (older Dell laptops are advertised for $30-$40 already), I rebuilt the desktop with DiskWarrior repeatedly (5 times), and, for the grand finale I ran EVERY TechToolPro 4 test in the book on the afflicted drive. None of this brought the files back, so I saved all the 750 Gigs to Ultrium LTO2 cartridges. It's all there, frozen until happier times, when a remedy against such a disastrous data corruption becomes available.

Tomorrow the sick drive will be reformatted, and 750 Gigs of good data from my external RAID will be cloned to it prior to the RAID's uninstallation too. (I must break the mirror RAID apart too because LogicPro cannot handle it... when a mirrored RAID is running, it gets stuck forever at the "Exporting Volume File Maps" message when I try to quit.)

Thanks everyone for the help
George

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

fsck: "Bad super block: magic number wrong"

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.