Where is the dividing line (mount point) of the two iOS partitions?

I know that iOS has two partitions, but I've never found anywhere that gives clues as to where they split. Is one partition on / and the other on /var/mobile/, or are all the user profiles (/var/root/, /var/wireless/, etc) on the second partition (at /var)? Is it possible to resize these partitions? On the same note, is /var a symbolic link to /private/var/ or is it the other way around?


Solution 1:

/ is the mount point for /dev/disk0s1s1; /private/var is the mount point for /dev/disk0s1s2.

Cydia's storage info

disk0s1s1 is reserved for iOS system files. It is equivalent to OS X's /System and /Library directories. It is the smaller of the two partitions (the size can be set using Redsn0w or Sn0wbreeze during the jailbreak process). The default size is set to 1 GB for iOS 5 and around 600-700 MB in previous versions.

disk0s1s2 is reserved (as of iOS 1.1.3) for user data (3rd party applications, music, photos, etc.). It is the larger of the two and varies depending on the flash memory available (which is dependent on the device purchased).

The layout of the disk is stored in /etc/fstab, which is also used by jailbreak tools to make the system partition writable.

  • Source: iOS Forensic Analysis

  • Additional reading: The iPhone Wiki

Solution 2:

One partition is mounted as "/" and contains OS, basic apps and firmware upgrades. The other is mounted as "/private/var" and contains pretty much everything else (apps, iPhoto data, SMS etc.).

Why would you want to resize these partitions? I don't believe it is possible.