hdiutil notes: Difference between revisions

From ihaveahax's Site
Jump to navigationJump to search
→‎Create a RAM drive: somehow i fucked up the grammar here
(→‎Create a RAM drive: somehow i fucked up the grammar here)
 
Line 10: Line 10:
Create a {{iw|wikipedia|RAM drive}}. The value is the amount of 512-byte sectors, so 8388608 * 512 = 4294967296 or 4.0 GiB.
Create a {{iw|wikipedia|RAM drive}}. The value is the amount of 512-byte sectors, so 8388608 * 512 = 4294967296 or 4.0 GiB.


The drive is not pre-formatted, therefore <code>-nomount</code> is required, or else hdiutil will newly-created drive will be scanned for partitions, find none because it's completely blank, and cancel attaching.
The drive is not pre-formatted, therefore <code>-nomount</code> is required, or else hdiutil will scan the newly-created drive for partitions, find none because it's completely blank, and cancel attaching.
<pre>
<pre>
hdiutil attach -nomount ram://8388608
hdiutil attach -nomount ram://8388608

Navigation menu