Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: how to mount a .dmg?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to mount a .dmg?



Shantonu Sen writes:
 > You don't.
 >
 > At least not using hdiutil. Darwin is not Mac OS X, don't expect the
 > services of Mac OS X to be present, working, or tested.

The command line hdi stuff from MacOSX is a mystery to me anyway,
so it is no big loss.   I'm used to mdconfig from freebsd
for disk images anyway.

 > You can give something fairly similar to work with:
 > [root@ssen]# cd /tmp/
 > [root@ssen]# dd if=/dev/zero of=100m.dmg bs=1m count=100
 > 100+0 records in
 > 100+0 records out
 > 104857600 bytes transferred in 2.039734 secs (51407490 bytes/sec)
 > [root@ssen]# /usr/libexec/vndevice attach /dev/vn0 /tmp/100m.dmg
 > [root@ssen]# newfs_hfs -s /dev/rvn0
 > Initialized /dev/rvn0 as a 100 MB HFS Plus volume
 > [root@ssen]# mkdir /mnt
 > [root@ssen]# mount -t hfs /dev/vn0 /mnt/
 > [root@ssen]#
 >

Ah, this makes perfect sense.  Thanks!

Drew
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-x86 mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >how to mount a .dmg? (From: Andrew Gallatin <email@hidden>)
 >Re: how to mount a .dmg? (From: Shantonu Sen <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.