Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 02-07-2006, 12:35 PM   #1
Registered: Oct 2004
Posts: 309

Rep: Reputation: 30
mounting a mac drive image in linux

i've installed pearpc and basically i have osx installed on a 3gb hard drive image and i use pearpc and the drive image to emulate osx on my linux computer. i want to be able to mount the osx drive image so i can put some files on it, etc. i also have a macintosh .dmg file that i need to mount and get some files off of. i've been following the instructions on this site:, but i haven't had any luck. I modprobe my "hfs" and "hfsplus" modules, since i don't have them compiled in, then try to mount the disk image: "mount -t hfs -o loop /home/slinky/pearpc/osx.img /mnt/machd" and i get an error saying it's the wrong filetype. the same thing happens when i try to mount the dmg file, i try to mount it the same way and it gives me the same error about it being the wrong filetype. that site says to run the file command first to make sure its a ture hfs filesystem. the osx drive image says this:
Apple Partition data block size: 512, first type: Apple_partition_map, name Apple, Number of blocks: 63, second type: Apple_Free, name: , number of blcoks: 0, third type: Apple_Free, name: , number of free blocks: 0,
and the .dmg file just says
asdf.dmg: data
which is wierd because i'm sure it's a real dmg file, i've mounted it on my ibook several times.
Old 04-25-2006, 10:30 PM   #2
Registered: May 2003
Location: S.F. Bay Area
Distribution: Ubuntu 9.04 AMD64
Posts: 595

Rep: Reputation: 30
Do you get any messages when you use modprobe to load the HFS modules?

Old 08-06-2008, 04:38 PM   #3
Registered: Aug 2008
Distribution: Ubuntu Hardy Heron 8.04 LTS
Posts: 77

Rep: Reputation: 16
Talking DMG Automounter for Linux

Although you cannot install a *.dmg file in Linux, you can mount it (and unmount it). I actually solved the problem by creating a nautilus script of my own that enables any distribution of Linux to mount a Mac OS X .dmg file (but not install it, since that would require the Mac OS X APIs, which are closed source). Feel free to download it by clicking this link: See the installation notes in the README file in the folder labeled, DOCUMENTATION, which comes with the tar.gz package, for complete install instructions (and I believe that these install instructions are also on the website). Remember, it is under the GNU Public License. The installation notes are absolutely critical for this software to work!

Please reply to this post with your comments and how my software worked (or did not work) for you. Your feedback is greatly appreciated to the improvement of this software!


automounter, dmg, linux, mount, nautilus, script, shell

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Is there cd/dvd image-drive utility in linux? sou.hassel Linux - Software 3 12-25-2005 03:03 PM
mounting linux drives on mac os x littlewing Linux - General 5 04-25-2005 10:24 PM
Mac image problem JoeUser11 Linux - Newbie 2 01-08-2005 10:51 AM
Mounting a SCSI drive to image it. jhill Linux - Hardware 1 07-27-2004 06:30 AM
Linux does NOT install anything from CD ISO image only form hard drive gorgenyi Linux - Newbie 4 02-13-2004 07:27 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:08 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration