Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

"MediaKit reports block size error" when formatting drive

I got a new 2TB hard drive, and I'm trying to format it as HFS+ journaled case sensitive encrypted, each time I try I get the following error:


"MediaKit reports block size error, usually caused by not being a multiple of 512."


This is a brand new drive, it has a GUID partition map with one partition, that was created by Disk Utility, and the disk passed a full hardware scan from Drive Genius.


Normally when I get an error I can google it, but this particular error only gives me links to RAID problems, and I'm not doing anything with RAID.


What determines the block size? I did not get an option to set it anywhere that I could see.


How do I fix this error and get my drive encrypted?

iMac, Mac OS X (10.7.4), 27" iMac

Posted on Jun 12, 2012 3:38 PM

Reply
24 replies

Jun 13, 2018 2:24 PM in response to Bart Busschots

I think I may have found a solution. If you have Carbon Copy Cloner, you can use Disk Center to encrypt volumes. I was getting the same complaints from the OS, so I tried CCC and it seems to work! It's not comeplete yet (claiming 70 hrs for a 3 TB drive), but I haven't gotten the inital warnings like I did using Mac OS. I'll report back if I get a failure.


User uploaded file

Jun 21, 2012 12:22 PM in response to Ian Hill-Smith

This does indeed seem to be the problem.


Before you replied I RMAed the Seagate disk assuming it to be faulty, because, well, 4k is a multiple of 512b and all. Today, my new WesternDigital disk arrived - it gives the IDENTICAL error. The changes of two disks from two vendors both being faulty seem low, so I think we can safely say OS X has a nasty security bug that has been languishing for some time.


It seems the only way I can protect my backups is to use 3rd party softeware, or to find an old 2TB disk somewhere that still has 512b blocks rather than 4k blocks.


Hopefully Apple get this bug fixed soon, and hopefully others will find this post when they google the error message and at least understand that their disk is probably fine.

Jul 11, 2012 1:26 PM in response to slacer2d

I tried a little bit more on the terminal. The bug seems to be in Core Storage. Here my output when I tried to convert the volume:


sh-3.2# diskutil cs convert /dev/disk4s2 -passphrase

New passphrase for converted volume:

Confirm new passphrase:

Started CoreStorage operation on disk4s2 Backup

Resizing disk to fit Core Storage headers

Creating Core Storage Logical Volume Group

Attempting to unmount disk4s2

Switching disk4s2 to Core Storage

A problem occurred; undoing all changes

Undoing creation of Logical Volume Group

Reclaiming space formerly used by Core Storage metadata

Error: -5308: MediaKit reports block size error, usually caused by not being a multiple of 512

Jul 29, 2012 1:10 AM in response to slacer2d

There seems to be a known bug of encryption of disks with Device Block Size of 4k (4096 Bytes) in at least Lion and Mountain Lion. The error seems to be something like this:

"MediaKit reports block size error, usually caused by not being a multiple of 512"


You can check your device block size in Terminal with

diskutil info /Volumes/YOUR_VOLUME_NAME


If you are experiencing this bug, too, please submit a bug report to apple in some way to increase the pressure to fix it!

Jul 30, 2012 1:43 PM in response to tbhunderbird

Thanks for the Terminal command - that proves that this is indeed a bug:


Device Block Size: 4096 Bytes


And still getting the same error on Mountain Lion that I was on Lion.


This is a bloody disgrace!


Modern disks are 4K - if you buy a big disk, that's what you're gonna get. To proudly claim disk encryption as a feature and then fail to deliver on standard disks is dishonest at best.

Jul 30, 2012 1:56 PM in response to slacer2d

I've been looking for 2TB disks with 512b blocks rather than the new 4k block size, but I can't find any. If anyone knows a source I'd really appreicate it. Today my backups out-grew my old disk. I bought a new bigger disk a few months back and ran into the problem. I really had hoped Apple would take a security problem seriously, and that the fix out be out before my old disk ran out of space.


Now I have the Hobson's choice of no backups or insecure backups - oh joy! Thanks Apple!

"MediaKit reports block size error" when formatting drive

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