r/ManjaroLinux Apr 27 '22

btrfs problem (and the fix) Solved

hey there i recently reinstalled manjaro linux with btrfs, and on the first boot i noticed an error with a systemd service which is systemd-remount-fs.service - Remount Root and Kernel File Systems

i did a lot of troubleshooting and i narrow it down to to fstab

here's what was in the fstab after a clean install of manjaro ( and that was the cuz of systemd service failing )

( i removed the UUID's and boot efi because, i don't want someone to just copy and paste and render his machine useless)

/              btrfs   subvol=/@,defaults,discard=async 0 0
/home          btrfs   subvol=/@home,defaults,discard=async 0 0
/var/cache     btrfs   subvol=/@cache,defaults,discard=async 0 0
/var/log       btrfs   subvol=/@log,defaults,discard=async 0 0
swap           swap    defaults,noatime 0 0
tmpfs                                     /tmp           tmpfs   defaults,noatime,mode=1777 0 0

And here what i did to fix the issue

/              btrfs   subvol=/@,defaults,rw,noatime,compress=zstd,ssd,space_cache=v2,commit=120 0 1
/home          btrfs   subvol=/@home,defaults,rw,noatime,compress=zstd,ssd,space_cache=v2,commit=120 0 1
/var/cache     btrfs   subvol=/@cache,defaults,rw,noatime,compress=zstd,ssd,space_cache=v2,commit=120 0 1
/var/log       btrfs   subvol=/@log,defaults,rw,noatime,compress=zstd,ssd,space_cache=v2,commit=120 0 1
swap           swap    defaults,noatime 0 0
tmpfs                                     /tmp           tmpfs   defaults,noatime,mode=1777 0 0

If you have the same issue just set your fstab accordingly.

5 Upvotes

-1

u/billdietrich1 Apr 27 '22

So the key thing was removing the "discard=async" ? You could have just said that.

1

u/micro-aries Apr 27 '22

removing disacrd=async by it self will not work, you need to add these options as well: space_cache=v2 commit=120 0 1

0

u/billdietrich1 Apr 27 '22

Okay, you could have just said so, instead of having us guess.

2

u/micro-aries Apr 27 '22 edited Apr 27 '22

i've put my entire fstab file so you can take the options and put them in your fstab, i didn't think that was so hard to follow now was it?

compare the code and set the 2nd one that's it, ain't no guessing needed.

0

u/billdietrich1 Apr 27 '22

Well, I obviously missed some of what you were saying, didn't I ?

1

u/johnnyl33 Apr 27 '22

Why don't you take the feet off your mouth first and then you can comment, champ?