Linux - GeneralThis 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.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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:http://baghira.sourceforge.net/dmg.htm, 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:
Quote:
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
Quote:
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.
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: http://linux.softpedia.com/get/Deskt...er-39815.shtml. 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!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.