That will prevent some file system corruption but you can't mount everything read-only, I'm assuming you want to be able to actually write files in your home directory for example.for example I found that the / partition should mount read only.
shutdown -p now
or a series of commands via a script if I preferred. But so far it seems like any existing ports use a serial cable which I really can't be bothered with. So for now I would just use my backups if the requirement arises.... But so far it seems like any existing ports use a serial cable which I really can't be bothered with. .....
I have not bought a UPS yet. Keep meaning to, but life gets in the way of life. I would like to have a system where I can install a port on FreeBSD so that when the UPS battery gets down past the 'low' threshold, it sends a signal/message to FreeBSD (via said port), and then FreeBSD issues ashutdown -p now
or a series of commands via a script if I preferred. But so far it seems like any existing ports use a serial cable which I really can't be bothered with. So for now I would just use my backups if the requirement arises.
That will prevent some file system corruption
Filesystem corruption only happens when the power goes out during a write action.Would you please explain it more?
Well, it's read-only. So you can't write to it. This would make updating a bit trickier as you need to remount the filesystem before you can update.I mean what is the disadvantage of this method?