I created a /sbin/fsck.btrfs with:
#!/bin/sh
opts=""
for arg; do
case "$arg" in
-*)
continue
;;
*)
opts="$opts $arg"
;;
esac
done
exec echo /sbin/btrfsck $opts
it's a bit crude, but seems to call btrfsck correctly, however I still can't
boot:
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... [ 3.909118] usb 1-1.1: new high
speed USB device using ehci-omap and address 3
done.
[ 4.003784] device label rootfs devid 1 transid 59
/dev/disk/by-uuid/ff40f0eb-61ad-43d5-a494-ea19859ac634
[ 4.033538] Btrfs detected SSD devices, enabling SSD mode
Begin: Running /scripts/local-bottom ... done.
done.
Begin: Running /scripts/init-bottom ... done.
fsck from util-linux-ng 2.17.2
/sbin/btrfsck /dev/mmcblk0p2
mount: / not mounted already, or bad option
mountall: mount / [240] terminated with status 32
mountall: Filesystem could not be mounted: /
An error occurred while mounting /
Press S to skip mounting or M for manual recovery
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/460246
Title:
fsck.btrfs -a doesn’t work (called from mountall)
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs