I try to check the device containing /home
and see:
$ sudo btrfs check --force /dev/vg_svelte/home
WARNING: filesystem mounted, continuing because of --force
ERROR: cannot open device '/dev/vg_svelte/home': Device or resource busy
ERROR: cannot open file system
Note: btrfs check
is a read-only operation. Adding --repair
is necessary to make any changes.
The btrfs-check
man page indicates that it should work:
--force
allow to work on a mounted filesystem. Note that this should work
fine on a quiescent or read-only mounted filesystem but may crash if
the device is changed externally, eg. by the kernel module. Repair
without mount checks is not supported right now.
This question is about how to check a btrfs root filesystem.
Why can't I btrfs check --force
without --repair
on a mounted device?
I'm running Manjaro Linux.
/
. So, no you can not check a running OS's/
from it's mounted/
. – Oct 16 '17 at 04:29/home
as well, so I updated the question. @Arrow the man page implies it should work on a quiescent device. I'd assume that if I run it a few times and get non-overlapping errors, it's not worth rebooting. – Tom Hale Oct 16 '17 at 04:41