Difference between revisions of "/private/etc/fstab"

From The iPhone Wiki
Jump to: navigation, search
m (category mark)
(Added that fstab was removed in iOS 14.)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
fstab controls the read/write access of the root and media partitions. A barebones jailbreak can be put in place simply by modifying this file to grant full read/write access to the user.
+
fstab controls the read/write access of the root and media partitions. A barebones jailbreak can be put in place simply by modifying this file to grant full read/write access to the [[/|root partition]] ([[/dev/disk0s1s1]]). fstab was removed in iOS 14.
   
 
== File Contents ==
 
== File Contents ==
Line 5: Line 5:
 
=== Before [[jailbreak]] ===
 
=== Before [[jailbreak]] ===
 
[[/dev/disk0s1s1]] / hfs ro 0 1
 
[[/dev/disk0s1s1]] / hfs ro 0 1
[[/dev/disk0s1s2]] /private/var hfs rw 0 2
+
[[/dev/disk0s1s2]] /private/var hfs,nosuid,nodev rw 0 2
 
 
 
=== After jailbreak ===
 
=== After jailbreak ===
 
/dev/disk0s1s1 / hfs rw 0 1
 
/dev/disk0s1s1 / hfs rw 0 1
/dev/disk0s1s2 /private/var hfs rw 0 2
+
/dev/disk0s1s2 /private/var hfs,nosuid,nodev rw 0 2
 
 
 
== Parents ==
 
== Parents ==
 
{{parent|private|etc}}
 
{{parent|private|etc}}
   
[[Category:Filesystem]]
+
[[Category:Ramdisk Patches]]

Latest revision as of 18:29, 25 April 2021

fstab controls the read/write access of the root and media partitions. A barebones jailbreak can be put in place simply by modifying this file to grant full read/write access to the root partition (/dev/disk0s1s1). fstab was removed in iOS 14.

File Contents

Note the empty line. This is required for the file to be parsed correctly.

Before jailbreak

/dev/disk0s1s1 / hfs ro 0 1
/dev/disk0s1s2 /private/var hfs,nosuid,nodev rw 0 2

After jailbreak

/dev/disk0s1s1 / hfs rw 0 1
/dev/disk0s1s2 /private/var hfs,nosuid,nodev rw 0 2

Parents

(root)/private/etc