You are not logged in.

#1 2013-02-04 18:30:10

pogeymanz
Member
Registered: 2008-03-11
Posts: 1,020

Systemd gets mad because it can't find a 'fsck.btrfs' on boot.

Can I just symlink btrfsck to it?

Offline

#2 2013-02-04 18:44:28

mariusmeyer
Member
From: Norway
Registered: 2009-04-25
Posts: 244

Re: Systemd gets mad because it can't find a 'fsck.btrfs' on boot.

"Mad"? What is the problem exactly? I don't have any problem with it. Just set the pass option in fstab to 0. Btrfsck cannot yet actually repair most problems anyway, at least that's my understanding of it.

Offline

#3 2013-02-04 19:02:45

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,822

Re: Systemd gets mad because it can't find a 'fsck.btrfs' on boot.

Nice anthropomorphism tongue

Where does the btrfs volume get mounted?  Is it root?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#4 2013-02-04 19:09:21

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: Systemd gets mad because it can't find a 'fsck.btrfs' on boot.

No, you cannot symlink it. disable fsck in /etc/fstab. btrfs volumes do not require religious fsck'ing after N mounts like journaled filesystems do.

Last edited by falconindy (2013-02-04 19:09:45)

Offline

#5 2013-02-04 19:13:43

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,929
Website

Re: Systemd gets mad because it can't find a 'fsck.btrfs' on boot.

No, don't symlink btrfsck. It's not designed to be used as a fsck.* tool.

I don't see what systemd's got to do with anything. mkinitcpio will tell you that it can't find fsck.btrfs, and I guess the ramdisk will reiterate that if you have the fs_passno set to 1 or 2 for a btrfs filesystem in fstab, but neither of these have anything to do with systemd.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#6 2013-02-04 19:21:58

pogeymanz
Member
Registered: 2008-03-11
Posts: 1,020

Re: Systemd gets mad because it can't find a 'fsck.btrfs' on boot.

Systemd tried to fsck my partitions when I booted and it gave some error that it couldn't find fsck.btrfs. My root partition is btrfs, as are most of my others (not boot).

Thanks for the info guys.

Offline

#7 2013-02-05 09:20:36

tomegun
Developer
From: France
Registered: 2010-05-28
Posts: 661

Re: Systemd gets mad because it can't find a 'fsck.btrfs' on boot.

In case it was not clear: systemd is trying to fsck your partition because you told it to in your fstab, just set the fs_passno (the sixth field) for your btrfs entries to 0.

Offline

#8 2013-02-05 14:20:19

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: Systemd gets mad because it can't find a 'fsck.btrfs' on boot.

falconindy wrote:

No, you cannot symlink it. disable fsck in /etc/fstab. btrfs volumes do not require religious fsck'ing after N mounts like journaled filesystems do.

The default configuration shipped with e2fsprogs does not enable periodic fsck for newly formatted filesystems, so I guess journaled filesystems do not need to be religiously fscked after N mounts / M days although 'man tune2fs' says otherwise.


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#9 2013-02-05 17:37:53

ANOKNUSA
Member
Registered: 2010-10-22
Posts: 2,141

Re: Systemd gets mad because it can't find a 'fsck.btrfs' on boot.

I don't think any of these actually need to be checked to operate properly; it's just a matter of redundancy/contingency.  Periodic filesystem checks are one of those things most folks don't think of unless they already have a problem, so the system is set to check every so often (21 mounts?) just in case.

Offline

#10 2013-02-05 17:43:44

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,929
Website

Re: Systemd gets mad because it can't find a 'fsck.btrfs' on boot.

Indeed. These filesystems generally know when the need fscking, the n mounts thing seems like more of a safety net, which I guess is no longer deemed necessary.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

Board footer

Powered by FluxBB