On 6/5/21 11:00, Russell Coker via luv-main wrote:
On Thursday, 6 May 2021 10:00:43 AEST Trent W. Buck via luv-talk wrote:
I have a very simple trick here.

If (say) /srv/backup/removable-hdd is always meant to be a mountpoint,

     umount         /srv/backup/removable-hdd  # make sure you edit the
parent filesystem, not the root of the mounted filesystem sudo chmod   0
/srv/backup/removable-hdd  # stop non-root users writing to it sudo chattr
+i /srv/backup/removable-hdd  # stop root writing to it mount
/srv/backup/removable-hdd  # put things back how they should be

That's a good trick.

Another thing I've done is mount a tmpfs on /mnt with a small number for
size=.  That means that people or scripts can create /mmt/whatever to mount
things but if anyone tries to copy gigs of data there it won't happen.



Thanks Russell

You got me thinking that if I set /mnt on a very small partition, I'd save myself re-doing all my partitions with every fresh insatll, and save having to remember how I did Trent's and your suggestions.

Thanks again All



--
Keith Bainbridge

[email protected]
_______________________________________________
luv-main mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to