[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Increasing space under an existing directory



Bob Alexander wrote:

Benedict Verheyen wrote:

Maybe not for a home 'puter but isn't putting /usr on a seperate partition prefered for a server? You can then mount the partition read only. That's one of the benefits i can think of.


Benedict,
what you say in principle is very true.

Did you actually try it on a Debian system ?

Not 100% sure but IIRC I did and it does NOT work :)

Bob

It works on my system:
mount -o remount,ro /usr
cd /usr
touch test
touch: cannot touch `test': Read-only file system

Best is to change this in /etc/fstab and then add this to /etc/apt/apt.conf
  DPkg {
           // Auto re-mounting of a readonly /usr
        Pre-Invoke {"mount -o remount,rw /usr";};
        Post-Invoke {"mount -o remount,ro /usr";};
  }

Apparently this doesn't always work:
http://lists.debian.org/debian-devel/2001/11/msg00212.html

Regards,
Benedict



Reply to: