Difference between revisions of "Mount ReadWrite"
(Updated syntax to use abbreviated remount syntax) |
|||
Line 5: | Line 5: | ||
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. | ||
+ | |||
+ | Note that /Users, /etc, /tmp, and /var are mounted on the Scratch volume, which is always writable. | ||
==Alternative One Liners== | ==Alternative One Liners== | ||
ReadWrite On: | ReadWrite On: | ||
− | mount - | + | sudo mount -uw / |
ReadWrite Off: | ReadWrite Off: | ||
− | mount - | + | sudo mount -ur / |
− | I prefer to leave it mounted read only when | + | I prefer to leave it mounted read only when I'm not writing |
Revision as of 23:54, 29 April 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:
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.
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