So lets check out the iPhones filesystem. Some interesting things to be found.
mobile:/ root# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/disk0s1 500M 448M 48M 91% /
devfs 26K 26K 0 100% /dev
/dev/disk0s2 15G 2.1G 13G 14% /private/var
/dev/disk1 66M 27M 39M 42% /Developer

Some of those actualy may been created by the jailbreak stuff.

/etc, /var link to folders in /private as in osx. /private/var is what seems to be the main working device.  It contains most of the Disks space. Some Folders have been linked to places inside there. /tmp and /Applications are 2 examples.

The basic Layout is very similar to the osx one.  /System/Library is present and organized like the usualy osx. Same goes for /Library. These sure will help to code fore the iPhone since they contain the Libraries that are installed. Some essential stuff in /bin, /sbin, /lib. Seeing the root Disk be almost full, i dont think there will be a lot changes. Looks like this is a stable image.

Generaly we see this concept a lot. If some directory outside /private/var is modified a lot, it gets linked to /var/private in some way.

As mentioned before, the iPhone has 2 main user accounts.

  • root: standart password is alpine home dir is /private/var/root
  • mobile: home dir is /private/var/mobile

Even we have some Log directories (if outside /private/var, they are usualy linked into) the iPhone realy dont like to log stuff to files. Most directory and files are empty. note to myself: have syslog send the stuff to my debug machine somehow.

The realy interesting stuff is mobiles home.

All in all, the iPhones Disk isnt organized too unfamiliar. I sure will have fun.

Flattr this!

Comments are closed.