Difference between revisions of "/private/var"

From The iPhone Wiki
Jump to: navigation, search
m
(Folders)
 
(14 intermediate revisions by 8 users not shown)
Line 1: Line 1:
  +
{{lowercase}}
This folder is the mount point for [[:/dev/disk0s2]], which is the [[iDevice|device]]'s user/data partition. This deviates from the [[wikipedia:Filesystem Hierarchy Standard|Filesystem Hierarchy Standard]] which places this at <code>/var</code>, however, a sym-link is placed at <code>/var</code> that redirects to <code>private/var</code>, so it is at least somewhat complient.
 
  +
This folder is the mount point for <code>/dev/disk0s2</code> (<code>/dev/disk0s1s2</code> on modern iOS versions), which is the [[iDevice|device]]'s user/data partition. This deviates from the [[wikipedia:Filesystem Hierarchy Standard|Filesystem Hierarchy Standard]] which places this at <code>/var</code>, however, a sym-link is placed at <code>/var</code> that redirects to here, so it is at least somewhat compliant.
   
 
It is the larger of the two partitions, and stores all App Store applications, iTunes media, settings, photos, etc.
 
It is the larger of the two partitions, and stores all App Store applications, iTunes media, settings, photos, etc.
Line 7: Line 8:
 
== Children ==
 
== Children ==
 
=== Folders ===
 
=== Folders ===
* {{ipfw|audit}} (unused; [[iOS]] 6.0+?)
+
* audit (unused; [[iOS]] 6.0+?)
* {{ipfw|backups}} (unused)
+
* [[/private/var/backups|backups]] (unused)
  +
* [[/private/var/buddy|buddy]] (unused)
* {{ipfw|cache}} (used by <code>[[wikipedia:Advanced Packaging Tool|apt-get]]</code> and <code>[[wikipedia:GNU Find Utilities|GNU Find Utilities]]</code>)
 
  +
* cache (used by <code>[[wikipedia:Advanced Packaging Tool|apt-get]]</code> and <code>[[wikipedia:GNU Find Utilities|GNU Find Utilities]]</code>)
* {{ipfw|db}}
 
  +
* [[/private/var/containers|containers]]
* {{ipfw|ea}} (unused; [[iOS]] 6.0+?)
 
  +
* [[/private/var/db|db]]
* {{ipfw|empty}}
 
  +
* [[/private/var/empty|empty]]
* {{ipfw|keybags}} ([[iOS]] 4.0+)
 
  +
* [[/private/var/folders|folders]] (unused)
* {{ipfw|Keychains}}
 
  +
* keybags ([[iOS]] 4.0+)
* {{ipfw|lib}}
 
  +
* Keychains
* {{ipfw|local}}
 
  +
* [[/private/var/lib|lib]]
* {{ipfw|lock}}
 
* {{ipfw|folders}} (unused)
+
* ea (unused; [[iOS]] 6.0+?)
  +
* [[/private/var/local|local]]
  +
* [[/private/var/lock|lock]]
 
* {{ipfw|log}}
 
* {{ipfw|log}}
  +
* [[/private/var/logs|logs]] (which contains [[/private/var/logs/AppleSupport]])
* {{ipfw|logs}}
 
* {{ipfw|Managed Preferences}}
+
* Managed Preferences
* {{ipfw|mobile}} (home folder for [[Users#mobile|mobile user]])
+
* [[/private/var/mobile|mobile]] (home folder for mobile user)
  +
* [[/private/var/MobileAsset|MobileAsset]]
* {{ipfw|MobileDevice}}
 
  +
* [[/private/var/MobileDevice|MobileDevice]]
* {{ipfw|MobileSoftwareUpdate}} (used for [[OTA Updates]]; [[iOS]] 5.0+)
 
  +
* MobileSoftwareUpdate (used for [[OTA Updates]]; [[iOS]] 5.0+)
* {{ipfw|msgs}}
 
  +
* msgs
* {{ipfw|preferences}}
 
  +
* [[/private/var/networkd|networkd]]
* {{ipfw|root}} (home folder for [[Users#root|root user]])
 
  +
* personalized_factory (unused)
* {{ipfw|run}} (used by [[lockdownd]])
 
  +
* [[/private/var/preferences|preferences]]
* {{ipfw|spool}} (unused)
 
  +
* [[/private/var/root|root]] (home folder for root user)
* stash (created by [[Cydia.app|Cydia]])
 
  +
* [[/private/var/run|run]] (used by lockdownd)
* {{ipfw|tmp}} ([[/dev/disk0s3]])
 
  +
* select (unused)
* {{ipfw|vm}} (unused as [[iOS]] doesn't support swap files or hibernation)
 
  +
* spool (unused)
* {{ipfw|wireless}} ([[iOS]] 4.0+)
 
  +
* [[/private/var/staged_system_apps|staged_system_apps]] (empty)
  +
* [[/private/var/stash|stash]] (created by [[Cydia.app|Cydia]])
  +
* [[/private/var/tmp|tmp]] (/dev/disk0s3)
  +
* [[/private/var/vm|vm]] (unused in [[iOS]] =<11, [[iOS]] 12+ added swapfile support.)
  +
* wireless ([[iOS]] 4.0+)
  +
 
=== Files ===
 
=== Files ===
 
(none)
 
(none)

Latest revision as of 19:21, 31 August 2020

This folder is the mount point for /dev/disk0s2 (/dev/disk0s1s2 on modern iOS versions), which is the device's user/data partition. This deviates from the Filesystem Hierarchy Standard which places this at /var, however, a sym-link is placed at /var that redirects to here, so it is at least somewhat compliant.

It is the larger of the two partitions, and stores all App Store applications, iTunes media, settings, photos, etc.

Before iPhone OS 1.1.3 (1.1.2 and below) all of this data was stored in /private/var/root. However, for security reasons, in 1.1.3 Apple made most applications run under the user mobile, and moved all of the data to /private/var/mobile.

Children

Folders

Files

(none)

Parents

(root)/private