Making a disk with a smaller block size

Joined
Feb 7, 2010
Messages
4
Reaction score
0
Points
1
I use the following command to create a ram disk on boot:
Code:
/usr/sbin/diskutil erasevolume HFS+ "web-ram" `/usr/bin/hdiutil attach -notremovable -nomount ram://2200000`

This makes a ram disk thats about 1 GB. This ram disk holds nothing but tiny web files though. So in this case, it makes much more sense to use a much smaller block size. I'm thinking 0.5KB instead of the 4KB default of HFS+. I looked over the man page of diskutil, but it still is not clear at all how I can make the volume with a different block size (if at all?)
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top