Warning: /sbin/fsck.btrfs doesn't exist, can't install to initramfs, ignoring.

Bug #1499035 reported by Cristian Aravena Romero
80
This bug affects 18 people
Affects Status Importance Assigned to Milestone
btrfs-tools (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Upgrade distrobution Ubuntu 15.10 (Development):

Warning: /sbin/fsck.btrfs doesn't exist, can't install to initramfs, ignoring.

ProblemType: Bug
DistroRelease: Ubuntu 15.10
Package: btrfs-tools 4.0-2
ProcVersionSignature: Ubuntu 4.2.0-10.12-generic 4.2.0
Uname: Linux 4.2.0-10-generic x86_64
ApportVersion: 2.18.1-0ubuntu1
Architecture: amd64
CurrentDesktop: GNOME
Date: Wed Sep 23 15:24:29 2015
InstallationDate: Installed on 2015-07-26 (59 days ago)
InstallationMedia: Ubuntu-GNOME 15.10 "Wily Werewolf" - Alpha amd64 (20150723)
SourcePackage: btrfs-tools
UpgradeStatus: No upgrade log present (probably fresh install)

This is because fsck.btrfs (as well as mkfs.btrfs) were being installed into /bin instead of /sbin proper.

The consequence is severe. Because fsck.btrfs isn't copied into the ramdisk, if the root filesystem is btrfs and an unclean shutdown occurs to the point where it requires a manual check, the admin will not be able to do a manual check, and thus the file system remains corrupted and irreparable. The admin may be able to work around by booting from an Ubuntu DVD, grabbing the btrfs-tools package and fix the disc from there, but it is additional work and time consuming.

Revision history for this message
Cristian Aravena Romero (caravena) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in btrfs-tools (Ubuntu):
status: New → Confirmed
Revision history for this message
Winckler (winckler) wrote :
Revision history for this message
Alberto Salvia Novella (es20490446e) wrote :

Please:

1. Edit the bug description, show it is crystalline what the consequences of this error are.
2. Set this bug status back to "confirmed".

Thank you.

Changed in btrfs-tools (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Cristian Aravena Romero (caravena) wrote :

==Solution tmp==
1) $sudo ln -s /bin/fsck.btrfs /sbin/
2) $sudo update-initramfs -u

Sam Segers (sam-sgrs)
Changed in btrfs-tools (Ubuntu):
status: Incomplete → New
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in btrfs-tools (Ubuntu):
status: New → Confirmed
Revision history for this message
vsechto (blogspot) wrote :

thanks Cristian Aravena Romero (caravena) is work!

Revision history for this message
Alberto Salvia Novella (es20490446e) wrote :

Please:

1. Edit the bug description, show it is obvious what the consequences of this error are.
2. Set this bug status back to "confirmed".

Thank you.

Changed in btrfs-tools (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
David Lee (ramchyld) wrote :

Yes, I've noticed and reported this error under bug 1514203. It's not only fsck.btrfs, mkfs.btrfs also gets installed to /bin.

David Lee (ramchyld)
description: updated
Changed in btrfs-tools (Ubuntu):
status: Incomplete → Confirmed
description: updated
description: updated
Revision history for this message
Thomas (t-hartwig) wrote :

@Alberto: Can you explain please what is unclear in the bug description, "can't install to initramfs" is a crystal clear problem which has to be addressed to, it is absolutely independent of any consequences.

BTW, thanks Christian for the workaround.

Revision history for this message
Jason Straight (jason-jeetkunedomaster) wrote :

Perhaps this is because btrfs fsck is the last thing you're supposed to do in recovering a btrfs filesystem, currently?

https://btrfs.wiki.kernel.org/index.php/Btrfsck

"btrfs check --repair, aka btrfsck is your last option if the ones above have not worked"

Revision history for this message
vitalii (vitalii-voloshyn) wrote :

@Jason, no you are wrong:
fsck.btrfs - do nothing, successfully
it was intentionally made this way

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.