Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

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?

share|improve this question
1  
/var is a symlink to /private/var (same in OS X). As is /etc a symlink to /private/etc. –  cksum Mar 22 '12 at 6:07
add comment

2 Answers

up vote 7 down vote accepted

/ 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.

share|improve this answer
add comment

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.

share|improve this answer
    
I've heard that they get resized during the JailBreaking process, and I seem to run out of space quickly on the Syetem partition. If they could be resized, I could install more tweaks and system applications. –  Andrew Larsson Mar 22 '12 at 5:39
    
Are there any references you could give in your answer? Does the "Storage: ---MB on / ----MB on /var" information in SBSettings have anything to do with the partitions? –  Andrew Larsson Mar 22 '12 at 5:46
    
Sorry I don't know SBSettings - I don't jailbreak. My information comes from the two books I know on iPhone Forensics, there is one by Jonathan A. Zdziarski (published 2008) and one by Andrew Hoog and Katie Strzempka (published 2011). There's another by Sean Morrissey (published 2010) but I don't have it. –  Adam Eberbach Mar 22 '12 at 7:07
1  
@AndrewLarsson Yes, the values in SBSettings reflect how much space is used/remaining in each partition. –  cksum Mar 25 '12 at 4:24
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.