FS#30007 - fsck mkinitcpio hook does not support btrfs

Attached to Project: Arch Linux
Opened by Heinrich Siebmanns (Harvey) - Friday, 25 May 2012, 06:08 GMT
Last edited by Dave Reisner (falconindy) - Friday, 25 May 2012, 14:52 GMT
Task Type Bug Report
Category System
Status Closed
Assigned To No-one
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

I just build a new install on top of a SSD with _all_ partitions being btrfs, grub2 as bootmanager. The fsck hook does not support btrfsck in initramfs to check the root partition before mounting it.
This task depends upon

Closed by  Dave Reisner (falconindy)
Friday, 25 May 2012, 14:52 GMT
Reason for closing:  Duplicate
Additional comments about closing:   FS#29182 
Comment by Tobias Powalowski (tpowa) - Friday, 25 May 2012, 06:32 GMT
There is no fsck utility for btrfs.
Comment by Heinrich Siebmanns (Harvey) - Friday, 25 May 2012, 07:01 GMT
man btrfsck:
BTRFSCK(8) BTRFSCK(8)

NAME
btrfsck - check a btrfs filesystem

SYNOPSIS
btrfsck device

DESCRIPTION
btrfsck is used to check a btrfs filesystem. device is the device file where the filesystem is stored.

AVAILABILITY
btrfsck is part of btrfs-progs. Btrfs is currently under heavy development, and not suitable for any uses other than benchmarking and
review. Please refer to the btrfs wiki http://btrfs.wiki.kernel.org for further details.

Not the right tool?
Comment by Tobias Powalowski (tpowa) - Friday, 25 May 2012, 07:37 GMT
There is no fsck tool for btrfs which can seriously repair anything.
It was always postponed and afaik it does in fact only exist in fedora/redhat labs.
http://www.phoronix.com/scan.php?page=news_item&px=MTA2MDI
Comment by Heinrich Siebmanns (Harvey) - Friday, 25 May 2012, 07:52 GMT
Kernel 3.4 made some improvements though:
http://kernelnewbies.org/LinuxChanges#head-556161b206bf626d6c84f9973dbdc3c8ef15bd07
BTW: Chris Mason's Video ist quite interesting
There seems to be heavy development in this area.
Comment by Dave Reisner (falconindy) - Friday, 25 May 2012, 12:55 GMT
This doesn't support the command line "API" that /sbin/fsck expects to exist, either (much like XFS). If you're brave enough to run btrfsck on every bootup, you can write your own hook and add it your initramfs.
Comment by Heinrich Siebmanns (Harvey) - Friday, 25 May 2012, 14:51 GMT
OK, I understood the undertone ;)
Never mind, I thought btrfsck is 'ready enough' since there is an offical package btrfs-progs (in core!) which contains it. For the time being I will just be brave and keep a lot of backups...

Loading...