I am following the tutorial for emergency power off in case the UPS runs out of battery power: http://www.networkupstools.org/docs/use ... S_shutdown
The tutorial suggests, that I should unmount any file systems and remount only the required file systems in read-only mode, before I do the shutdown.
How to remount a filesystem in the read-only mode and how to unmount all other file systems?
Code: Select all
~ $ cat /etc/fstab # /etc/fstab: static file system information. # # Use 'blkid -o value -s UUID' to print the universally unique identifier # for a device; this may be used with UUID= as a more robust way to name # devices that works even if disks are added and removed. See fstab(5). # # <file system> <mount point> <type> <options> <dump> <pass> proc /proc proc nodev,noexec,nosuid 0 0 # / was on /dev/sda1 during installation UUID=d9ca59cc-ae56-45f7-80c0-56f0a06b9ab2 / xfs defaults 0 1 # /home was on /dev/sda3 during installation UUID=f4941b96-067d-4aff-90da-47aac2f92208 /home xfs defaults 0 2 # swap was on /dev/sda2 during installation UUID=5e1845c4-ed48-47d5-be4b-3956d105ea47 none swap sw 0 0 # /dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0 LABEL="important" /mnt/important xfs defaults 0 0 LABEL="data" /mnt/data xfs defaults 0 0 LABEL="small" /mnt/small ext3 suid,dev,exec 0 0 LABEL="big" /mnt/big xfs defaults 0 0 LABEL="huge" /mnt/huge xfs defaults 0 0