HFS, HFS+ and DMG's [Solved]

If you are new to Linux or new to Sabayon Linux and just not sure where to post, here ya go. Post without fear of being told to RTFM :-)

Moderator: Moderators

HFS, HFS+ and DMG's [Solved]

Postby teryaki » Thu Aug 27, 2009 21:34

I am trying to load up a dmg file in sabayon linux. Before I did anything I wanted to make sure it would handle the hfs or hfs+ filesystem the dmg would expand into so i did this...

Code: Select all
sudo modprobe hfsplus


and got

FATAL: Module hfsplus not found.



I also tried this with hfs, squashfs, ect. Obviously, Sabayon has no hfs support whatsoever. My first inclination was to

Code: Select all
sudo apt-get hfsplus



but to my dismay Sabayon has no apt-get :(

So I dug and dug through the forums and I found a kernel module that is supposed to do this, hfsplus.o.

Code: Select all
insmod Desktop/hfsplus.o


returns
insmod: error inserting 'Desktop/hfsplus.o': -1 Invalid module format


when I do a
Code: Select all
grep hfs /proc/filesystems



it returns

squashfs
hfsplus
hfs


What am I missing here?
teryaki
Baby Hen
 
Posts: 5
Joined: Thu Aug 27, 2009 21:09

Re: HFS, HFS+ and DMG's

Postby teryaki » Thu Aug 27, 2009 23:23

Okay apparently DMG's are some compressed version of an hfs or hfs+ filesystem. Upon running

Code: Select all
mount -t hfs -o loop Desktop/mydmg.dmg /mnt/disk


I get

wrong fs type, bad option, bad superblock on /dev/loop/0,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so


Same result with

Code: Select all
mount -t hfsplus -o loop Desktop/mydmg.dmg /mnt/disk


Any suggestions?
teryaki
Baby Hen
 
Posts: 5
Joined: Thu Aug 27, 2009 21:09

Re: HFS, HFS+ and DMG's

Postby Stupot » Thu Aug 27, 2009 23:42

Maybe this will help: http://viaforensics.com/computer-forens ... linux.html

P.S. dmg2img isn't in entroypy, but it is in portage.

Code: Select all
#emerge dmg2img
Stupot
Sagely Hen
 
Posts: 1011
Joined: Wed Feb 14, 2007 3:44
Location: St. Louis, MO, USA

Re: HFS, HFS+ and DMG's

Postby teryaki » Fri Aug 28, 2009 2:22

Code: Select all
!!! Couldn't download 'download.pl?dmg2img-1.6.tar.gz'. Aborting.
 * Fetch failed for 'sys-fs/dmg2img-1.6'


Hrm...it failed for some reason. Anyway I was able to download dmg2img from another source but I think I have to make and install the program. How do I do that?
teryaki
Baby Hen
 
Posts: 5
Joined: Thu Aug 27, 2009 21:09

Re: HFS, HFS+ and DMG's

Postby teryaki » Fri Aug 28, 2009 2:38

Nevermind, I figured it out. THANKS!!
teryaki
Baby Hen
 
Posts: 5
Joined: Thu Aug 27, 2009 21:09

The total noobs guide to accessing (not mounting) DMG files

Postby teryaki » Fri Aug 28, 2009 5:41

Allright...

DMG does not always translate into HFS or HFS+. I learned this lesson the hard way, which as it happens, is apparently the best way :P

Some DMG's are compressed, and connot be mounted in the traditional style, for example
Code: Select all
mount -t hfs -o loop myImage.dmg /myfolder

or
Code: Select all
mount -t hfsplus -o loop myImage.dmg /myfolder

sometimes will not work.

To remedy this, we'll install wine, which will allow us to run windows programs on linux, then, use a regular old windows ISO program to extract our information.

Look down on the bottom left of your screen. Theres a big blue button there with a "K" on it, kinda like a "start" button..click it. Now hover your mouse on the part there on the bottom that says "applications". Now move your mouse up to "system" and click it. The menu will slide to the left and you'll want to find "Terminal"; go ahead and give that a click.

Now you have a new window that resembles a "dos" box with a cool little flashing cursor, urging you to begin typing, and thats exactly what your going to do. Type this...

Code: Select all
sudo equo install wine


Password? Type it in. hit enter. you'll get...
Code: Select all
@@ Calculating dependencies ...     
>>  @@ Packages needing to be installed/updated/downgraded: 1
>>  @@ Packages needing to be removed: 0                     
>>  @@ Download size: 0b                                     
>>  @@ Freed disk space: 0.0b                               
>>  @@ You need at least: 37.3MB of free space
>>  :: (1/1) >>> app-emulation/wine-1.1.23
>>    ## Package checksum matches: app-emulation:wine-1.1.23~0.tbz2
>>       : SHA1 matches
>>       : SHA256 matches
>>       : SHA512 matches
>>  ++ (1/1) >>> app-emulation/wine-1.1.23
>>    ## Unpacking package: app-emulation:wine-1.1.23~0.tbz2
>>    ## Installing package: app-emulation/wine-1.1.23
>>    ## Updating database: app-emulation/wine-1.1.23
>>    ## Regenerating /etc/ld.so.cache
>>    ## Cleaning: app-emulation/wine-1.1.23
>>  @@ Installation complete.
>>  @@ Caching complete.


WOOHOO! Now we will be able to install windows programs(that read DMG's) on our Sabayon installation.

Right after a restart. :D

Done it yet? Good.

Now fire up Firefox or any old web browser of your choice, and navigate to...

Code: Select all
http://www.ezbsystems.com/ultraiso/download.htm


Download and install ultraiso. Just like on windows. When the program finishes downloading, double-click the installer icon (uiso9_pe.exe) and it will install. That easy. Just like windows....did I already say that? :P

Now click the ultraiso icon on your desktop, click "continue to try", click file, go down to open,and locate your target DMG file.

Now, not only do you have a way to open (and work with) your DMG file, but you can install and use (almost) any windows program! :cyclops:
teryaki
Baby Hen
 
Posts: 5
Joined: Thu Aug 27, 2009 21:09


Return to Beginners|Newbies Area

Who is online

Users browsing this forum: No registered users and 1 guest