|
#1
| ||||
| ||||
| Uncompress .bin and mount .dmg from commandline Anyone know how I go about uncompressing a .dmg.bin image and then mounting that image from the commandline in OS X? |
|
#2
| |||
| |||
| I'm not certain about the uncompression, but you can mound dmg with hdiutil mount /path/to/file/filename.dmg This will mount the dmg to /Volumes/filename/ There is a PERL module for working with hexbin files at: http://search.cpan.org/~eryq/Convert...vert/BinHex.pm This might be a place to start if you want to make a nice PERL script to do both the uncompression and mounting. Last edited by spb; October 1st, 2005 at 10:01 AM. Reason: include binhex comment |
|
#3
| |||
| |||
| Also, with reference to '.dmg' files (and running MacOS X 10.4 - 'Tiger') ... hdid path_to_.dmg_file <return> |
|
#4
| ||||
| ||||
| StuffIt Deluxe can expand .bin files, and inclues two command-line StuffIt utilities located in /usr/local/bin: stuff and unstuff.
__________________ Power Macintosh G4/500MHz "Yikes!" 10.4.11 Server • 1024MB • 3 x 120GB + 320GB • DVR-111D • 2 x Radeon 7000 PCI • 2 x 17" CRT MacBook 2.0GHz Core 2 Duo - White 10.5.5 • 2048MB • 80GB • CD-RW/DVD-ROM iPod Photo 60GB • iPod nano 1GB • AT&T DSL 6Mb/768k http://www.jeffhoppe.com |
|
#5
| |||
| |||
| Thanks ElDiabloConCaca for the 'unstuff' information. With 'unstuff' (as the result of installing 'StuffIt Deluxe' version 9) in '/usr/local/sbin/' and 'unstuff -F' <return> entered, the formats supported by 'unstuff' were displayed. They are ... apple, arc, arj, bin, btoa, bz2, cab, compress, cpt, double, freeze, gz, hqx, lha, mime, pack, pf, rar, sco, sit, sit5, sitseg, sitx, tar, uu, yenc, and zip ... Thus, to decompress 'InstallerUpdate1.0.dmg.bin' and then mount the '.dmg' file - if on the current_user's 'Desktop', one would enter ... /usr/local/bin/unstuff /Users/current_user/Desktop/InstallerUpdate1.0.dmg.bin; hdid /Users/current_user/Desktop/InstallerUpdate1.0.dmg ..., as one example. |
|
#6
| ||||
| ||||
| Cool. Thanks guys. |