Package: btrfs-tools
Version: 0.19+20130315-5

When a btrfs filesystem is unmounted uncleanly, it can get in a situation
where it is not possible to mount it anymore, until you run btrfs-zero-log
to clean the log data that the kernel cannot process on its own and will not 
discard the log because it doesn't know that't the right thing to do.

In my case, I have an SSD that unfortunatley locks up on occasion and
triggers this state. At that point, the way to recover is to run 
btrfs-zero-log /dev/mapper/cryptroot
which I cannot do from the initramfs unless it's present in there.

I modified
/usr/share/initramfs-tools/hooks/btrfs
to copy_exec /sbin/btrfs-zero-log

I'm good, but suggesting that you do this to the official package as a handy
rescue other people who might otherwise end up with an umountable filesystem
and no way to self-rescue without boot media.

Note that the admin would still need to know to run that command, Im' not
suggesting to run it automatically if the rootfs somehow failed to mount.

Thanks,
Marc
-- 
"A mouse is a device used to point at the xterm you want to type in" - A.S.R.
Microsoft is to operating systems ....
                                      .... what McDonalds is to gourmet cooking
Home page: http://marc.merlins.org/  


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to