remounting /usr readonly
I prefer to mount /boot and /usr readonly.
$ grep ,ro /etc/fstab
LABEL=BOOT /boot ext2 defaults,ro 0 2
LABEL=USR /usr ext2 defaults,ro 0 2
This works nicely. Whenever I need to do an update, I remount the partition in question as rw with "sudo mount -o rw,remount /usr/". Remounting it as readonly after that fails though because there are of course open processes accessing the partition all the time.
$ sudo mount -o ro,remount /usr/
mount: /usr is busy
Is there any way to do this without a complete reboot or dropping into single-user mode? I tried adding the -l switch to mount which sometimes helped me unmounting a busy partition in the past, but in this case this does not do the trick, either.
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Rolf Leggewie
- Solved:
- Last query:
- Last reply: