Difference between revisions of "/private/var"

From The iPhone Wiki
Jump to: navigation, search
(Folders)
 
(24 intermediate revisions by 10 users not shown)
Line 1: Line 1:
  +
{{lowercase}}
== Overview ==
 
/private/var is the mount point for /dev/disk0s2, which is the iPhone's user/data partition. It is the larger of the two partitions, and stores all App Store applications, iTunes media, settings, photos, etc. Pre-1.1.3, 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.
+
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.
== Parents ==
 
  +
* [[/]]
 
  +
Before [[iOS|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]].
* [[/private]]
 
   
 
== Children ==
 
== Children ==
  +
=== Folders ===
* [[/private/var/backups|backups]] (not used in iOS)
 
  +
* audit (unused; [[iOS]] 6.0+?)
* [[/private/var/cache|cache]] (not officially used in iOS)
 
  +
* [[/private/var/backups|backups]] (unused)
  +
* [[/private/var/buddy|buddy]] (unused)
  +
* cache (used by <code>[[wikipedia:Advanced Packaging Tool|apt-get]]</code> and <code>[[wikipedia:GNU Find Utilities|GNU Find Utilities]]</code>)
  +
* [[/private/var/containers|containers]]
 
* [[/private/var/db|db]]
 
* [[/private/var/db|db]]
  +
* ea (unused; [[iOS]] 6.0+?)
 
* [[/private/var/empty|empty]]
 
* [[/private/var/empty|empty]]
* [[/private/var/folders|folders]] (not used in iOS)
+
* [[/private/var/folders|folders]] (unused)
  +
* keybags ([[iOS]] 4.0+)
* [[/private/var/Keychains|Keychains]]
 
  +
* Keychains
* [[/private/var/Keybags|Keybags]] (on iOS 4.0 and above)
 
 
* [[/private/var/lib|lib]]
 
* [[/private/var/lib|lib]]
 
* [[/private/var/local|local]]
 
* [[/private/var/local|local]]
 
* [[/private/var/lock|lock]]
 
* [[/private/var/lock|lock]]
* [[/private/var/log|log]]
+
* {{ipfw|log}}
* [[/private/var/logs|logs]]
+
* [[/private/var/logs|logs]] (which contains [[/private/var/logs/AppleSupport]])
* [[/private/var/Managed Preferences|Managed Preferences]]
+
* Managed Preferences
* [[/private/var/mobile|mobile]] (Home folder for user <nowiki>mobile</nowiki>)
+
* [[/private/var/mobile|mobile]] (home folder for mobile user)
  +
* [[/private/var/MobileAsset|MobileAsset]]
 
* [[/private/var/MobileDevice|MobileDevice]]
 
* [[/private/var/MobileDevice|MobileDevice]]
  +
* MobileSoftwareUpdate (used for [[OTA Updates]]; [[iOS]] 5.0+)
* [[/private/var/msgs|msgs]]
 
  +
* msgs
  +
* [[/private/var/networkd|networkd]]
  +
* personalized_factory (unused)
 
* [[/private/var/preferences|preferences]]
 
* [[/private/var/preferences|preferences]]
* [[/private/var/root|root]] (Home folder for user <nowiki>root</nowiki>)
+
* [[/private/var/root|root]] (home folder for root user)
* [[/private/var/run|run]]
+
* [[/private/var/run|run]] (used by lockdownd)
  +
* select (unused)
* [[/private/var/spool|spool]] (not used in iOS)
 
  +
* spool (unused)
* [[/private/var/stash|stash]] (not officially used in iOS, created by [[Cydia Application|Cydia]]'s root partition freeing code)
 
* [[/private/var/tmp|tmp]]
+
* [[/private/var/staged_system_apps|staged_system_apps]] (empty)
* [[/private/var/vm|vm]] (not officially used in iOS because it doesn't support swap files or hibernation)
+
* [[/private/var/stash|stash]] (created by [[Cydia.app|Cydia]])
* [[/private/var/wireless|wireless]] (on iOS 4.0 and above)
+
* [[/private/var/tmp|tmp]] (/dev/disk0s3)
* [[/private/var/www|www]] (Created after installin phppod)
+
* [[/private/var/vm|vm]] (unused in [[iOS]] =<11, [[iOS]] 12+ added swapfile support.)
  +
* wireless ([[iOS]] 4.0+)
  +
  +
=== Files ===
  +
(none)
  +
  +
== Parents ==
  +
{{parent|private}}
  +
  +
[[Category:Filesystem]]

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