iOS Mounting a DMG image on a jailbreaked device

vrenken

macrumors newbie
Original poster
Aug 2, 2010
10
0
Is this possible?

Is a jailbreaked iPad/iPhone capable of mounting these images using the default available programs?

Thanks in advance,

Peter Vrenken
 

kainjow

Moderator emeritus
Jun 15, 2000
7,958
5
I'd be very surprised if it did, but don't know 100%.

I can't remember exactly the details, but isn't the diskarbitration daemon in OS X responsible for managing them? If that's not there and that framework isn't there, I'm not sure what can be done.

If you have a non-encrypted, non-compressed DMG you might be able to use open-source code to read the file system directly, but that's ugly, but most likely you have a compressed DMG.

What are you trying to do exactly?
 

vrenken

macrumors newbie
Original poster
Aug 2, 2010
10
0
Hello!

i get confused by all webistes that contain information regarding mounting of dmg files.

And if mounting is not possible, what about something like the snippets below:

dd if=xcode_2.4.1_8m1910_6936315.dmg skip=323904 | gunzip | pax -r

For other versions of the sdk you will need to find the offset of the correct Archive.pax.gz. You can do this with these 2 commands:

od -t x1 xcode.dmg | grep '^[0-7]*000 1f 8b' > offsets.txt
awk '{ print $1 }' offsets.txt | while read x; do dd if=xcode.dmg skip=$((0$x / 512)) count=1 | gunzip | cpio -t | grep -q MacOSX10.4u.sdk && echo $((0$x / 512)); done 2>/dev/null
Source: http://code.google.com/p/iphone-dev/wiki/Building

Is this possible on the iPad / iPhone?
How do i find out what commands are and are not supported on IOS?

Thanks in advance,

Peter Vrenken
 

robbieduncan

Moderator emeritus
Jul 24, 2002
24,873
219
Harrogate
How do i find out what commands are and are not supported on IOS?
I'm not sure there is an officially maintained list (by Apple). They don't really ever want you shelling out to Unix commands from your app. The jailbrake community may have one but on here most posters are not interested in jailbrake app writing...
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.