Difference between revisions of "Mount ReadWrite"

From AwkwardTV
Jump to: navigation, search
m
(Note re permissions)
Line 1: Line 1:
 
To have the boot drive automatically mounted as read/write, create a file at the root of the drive named <tt>.readwrite</tt>; you can create it with this command:
 
To have the boot drive automatically mounted as read/write, create a file at the root of the drive named <tt>.readwrite</tt>; you can create it with this command:
 
<pre>
 
<pre>
touch .readwrite
+
sudo touch .readwrite
 
</pre>
 
</pre>
  
The hidden <tt>/etc/rc</tt> boot script checks for the existence of the file, and if found, the drive is mounted read/write automatically.
+
The hidden <tt>/etc/rc</tt> boot script checks for the existence of the file, and if found, the drive is mounted read/write automatically. <b>To create this file, you need to mount read-write first using one of the one-liners below.</b>
  
 
Note that /Users, /etc, /tmp, and /var are mounted on the Scratch volume, which is always writable.
 
Note that /Users, /etc, /tmp, and /var are mounted on the Scratch volume, which is always writable.

Revision as of 13:57, 10 May 2007

To have the boot drive automatically mounted as read/write, create a file at the root of the drive named .readwrite; you can create it with this command:

sudo touch .readwrite

The hidden /etc/rc boot script checks for the existence of the file, and if found, the drive is mounted read/write automatically. To create this file, you need to mount read-write first using one of the one-liners below.

Note that /Users, /etc, /tmp, and /var are mounted on the Scratch volume, which is always writable.

Alternative One Liners

ReadWrite On:

sudo mount -uw /

ReadWrite Off:

sudo mount -ur /

I prefer to leave it mounted read only when I'm not writing