How do I mount a sparse disk image permanently?
Posted
by
Mike
on Super User
See other posts from Super User
or by Mike
Published on 2011-06-26T08:00:56Z
Indexed on
2011/06/26
8:24 UTC
Read the original article
Hit count: 224
On Mac OS X 10.6.7, when I mount a sparse disk image (either by double-clicking it or using hdid
from the command line), the image:
- Appears on my desktop
- Needs to be re-mounted every time I log in
I'd like to set up the equivalent of an /etc/fstab
which will mount the image when the system boots, and make it permanent - so I don't have to worry if my symbolic links will resolve or not.
Is this more trouble than it's worth on a Mac? I noticed that there is no /etc/fstab
, and /etc/fstab.hd
contains a dire warning:
IGNORE THIS FILE.
This file does nothing, contains no useful data, and might go away in
future releases. Do not depend on this file or its contents.
I tried sudo hdid -notremovable <image>
, which seemed like half of what I wanted (according to man hdid
), but it failed with an error: hdid: attach failed - no mountable file systems
.
© Super User or respective owner