The latest edition of the Linux Journal Weekly News <see "Free
Newsletter" link featured on the main page of
http://linuxjournal.com/> has the following tip. I don't know if this
applies to MacOS X PB or not.
Tech Tip of the Week
You can spare yourself unnecessary "fscks" by mounting your /usr
partition as read-only. Mounting a partition read/write counts toward
the mount count for fsck but mounting it read-only doesn't. Also, if
for some reason your system gets shut down improperly, any partitions
mounted read-only won't get fscked when you reboot.
To do this, just edit /etc/fstab and put "ro" in the options field in
the line for /usr, like this:
/dev/hda7 /usr ext2 ro 0 2
The options you can use here are the same as in the -o option to the
mount command. See man mount.
So what happens when you need to install software on /usr? Just do
mount -o remount,rw /usr
to remount /usr as read/write without unmounting it. To make /usr
read-only again when you're done,
mount -o remount,ro /usr
Another useful option to put in /etc/fstab is "noatime", which
prevents access times from being updated when files on that partition
are read. Webmasters of busy servers use noatime on the partition
where their document root lives to get better performance.
Newsletter" link featured on the main page of
http://linuxjournal.com/> has the following tip. I don't know if this
applies to MacOS X PB or not.
Tech Tip of the Week
You can spare yourself unnecessary "fscks" by mounting your /usr
partition as read-only. Mounting a partition read/write counts toward
the mount count for fsck but mounting it read-only doesn't. Also, if
for some reason your system gets shut down improperly, any partitions
mounted read-only won't get fscked when you reboot.
To do this, just edit /etc/fstab and put "ro" in the options field in
the line for /usr, like this:
/dev/hda7 /usr ext2 ro 0 2
The options you can use here are the same as in the -o option to the
mount command. See man mount.
So what happens when you need to install software on /usr? Just do
mount -o remount,rw /usr
to remount /usr as read/write without unmounting it. To make /usr
read-only again when you're done,
mount -o remount,ro /usr
Another useful option to put in /etc/fstab is "noatime", which
prevents access times from being updated when files on that partition
are read. Webmasters of busy servers use noatime on the partition
where their document root lives to get better performance.