Cant boot anymore

Hello, I did some updates today and since the second reboot I can’t get into the system:
Bild

Looks like you may have some filesystem issues there.

Boot off a live ISO and check the consistency of your btrfs volumes.

How do I check this?

sudo btrfs check /dev/my/device

Replace /dev/my/device with your actual device. If your device is encrypted, unlock it with luks first and then run btrfs check on the unlocked device name.

2 Likes

what am i doing wrong?

[liveuser@eos-2021.11.30 ~]$ sudo cryptsetup luksOpen /dev/sda2 mnt
Enter passphrase for /dev/sda2: 
[liveuser@eos-2021.11.30 ~]$ sudo btrfs check /dev/sda2
Opening filesystem to check...
No valid Btrfs found on /dev/sda2
ERROR: cannot open file system
[liveuser@eos-2021.11.30 ~]$ 

You are trying to btrfs check on the encrypted device.

When you run cryptsetup luksOpen it creates a new device. Look in /dev/mapper after running cryptsetup.

It will probably be called /dev/mapper/mnt

oh ok thanks
and what exactly do i do with it?

sudo btrfs check /dev/mapper/mnt
Opening filesystem to check...
Checking filesystem on /dev/mapper/mnt
UUID: ae9517fc-9700-4d61-b42f-f93efa6d51c6
[1/7] checking root items
[2/7] checking extents
checksum verify failed on 1225752576 wanted 0x1e1047a9 found 0x26b9c9db
checksum verify failed on 1225752576 wanted 0x1e1047a9 found 0x26b9c9db
Csum didn't match
owner ref check failed [1225752576 16384]
ERROR: errors found in extent allocation tree or chunk allocation
[3/7] checking free space cache
[4/7] checking fs roots
checksum verify failed on 1225752576 wanted 0x1e1047a9 found 0x26b9c9db
checksum verify failed on 1225752576 wanted 0x1e1047a9 found 0x26b9c9db
Csum didn't match
checksum verify failed on 1225752576 wanted 0x1e1047a9 found 0x26b9c9db
checksum verify failed on 1225752576 wanted 0x1e1047a9 found 0x26b9c9db
Csum didn't match
checksum verify failed on 1225752576 wanted 0x1e1047a9 found 0x26b9c9db
checksum verify failed on 1225752576 wanted 0x1e1047a9 found 0x26b9c9db
Csum didn't match
checksum verify failed on 1225752576 wanted 0x1e1047a9 found 0x26b9c9db
checksum verify failed on 1225752576 wanted 0x1e1047a9 found 0x26b9c9db
Csum didn't match
checksum verify failed on 1225752576 wanted 0x1e1047a9 found 0x26b9c9db
checksum verify failed on 1225752576 wanted 0x1e1047a9 found 0x26b9c9db
Csum didn't match
checksum verify failed on 1225752576 wanted 0x1e1047a9 found 0x26b9c9db
checksum verify failed on 1225752576 wanted 0x1e1047a9 found 0x26b9c9db
Csum didn't match
checksum verify failed on 1225752576 wanted 0x1e1047a9 found 0x26b9c9db
checksum verify failed on 1225752576 wanted 0x1e1047a9 found 0x26b9c9db
Csum didn't match
checksum verify failed on 1225752576 wanted 0x1e1047a9 found 0x26b9c9db
checksum verify failed on 1225752576 wanted 0x1e1047a9 found 0x26b9c9db
Csum didn't match
checksum verify failed on 1225752576 wanted 0x1e1047a9 found 0x26b9c9db
checksum verify failed on 1225752576 wanted 0x1e1047a9 found 0x26b9c9db
Csum didn't match
checksum verify failed on 1225752576 wanted 0x1e1047a9 found 0x26b9c9db
checksum verify failed on 1225752576 wanted 0x1e1047a9 found 0x26b9c9db
Csum didn't match
checksum verify failed on 1225752576 wanted 0x1e1047a9 found 0x26b9c9db
checksum verify failed on 1225752576 wanted 0x1e1047a9 found 0x26b9c9db
Csum didn't match
checksum verify failed on 1225752576 wanted 0x1e1047a9 found 0x26b9c9db
checksum verify failed on 1225752576 wanted 0x1e1047a9 found 0x26b9c9db
Csum didn't match
checksum verify failed on 1225752576 wanted 0x1e1047a9 found 0x26b9c9db
checksum verify failed on 1225752576 wanted 0x1e1047a9 found 0x26b9c9db
Csum didn't match
checksum verify failed on 1225752576 wanted 0x1e1047a9 found 0x26b9c9db
checksum verify failed on 1225752576 wanted 0x1e1047a9 found 0x26b9c9db
Csum didn't match
checksum verify failed on 1225752576 wanted 0x1e1047a9 found 0x26b9c9db
checksum verify failed on 1225752576 wanted 0x1e1047a9 found 0x26b9c9db
Csum didn't match
checksum verify failed on 1225752576 wanted 0x1e1047a9 found 0x26b9c9db
checksum verify failed on 1225752576 wanted 0x1e1047a9 found 0x26b9c9db
Csum didn't match
checksum verify failed on 1225752576 wanted 0x1e1047a9 found 0x26b9c9db
checksum verify failed on 1225752576 wanted 0x1e1047a9 found 0x26b9c9db
Csum didn't match
checksum verify failed on 1225752576 wanted 0x1e1047a9 found 0x26b9c9db
checksum verify failed on 1225752576 wanted 0x1e1047a9 found 0x26b9c9db
Csum didn't match
checksum verify failed on 1225752576 wanted 0x1e1047a9 found 0x26b9c9db
checksum verify failed on 1225752576 wanted 0x1e1047a9 found 0x26b9c9db
Csum didn't match
checksum verify failed on 1225752576 wanted 0x1e1047a9 found 0x26b9c9db
checksum verify failed on 1225752576 wanted 0x1e1047a9 found 0x26b9c9db
Csum didn't match
checksum verify failed on 1225752576 wanted 0x1e1047a9 found 0x26b9c9db
checksum verify failed on 1225752576 wanted 0x1e1047a9 found 0x26b9c9db
Csum didn't match
checksum verify failed on 1225752576 wanted 0x1e1047a9 found 0x26b9c9db
checksum verify failed on 1225752576 wanted 0x1e1047a9 found 0x26b9c9db
Csum didn't match
checksum verify failed on 1225752576 wanted 0x1e1047a9 found 0x26b9c9db
checksum verify failed on 1225752576 wanted 0x1e1047a9 found 0x26b9c9db
Csum didn't match
checksum verify failed on 1225752576 wanted 0x1e1047a9 found 0x26b9c9db
checksum verify failed on 1225752576 wanted 0x1e1047a9 found 0x26b9c9db
Csum didn't match
checksum verify failed on 1225752576 wanted 0x1e1047a9 found 0x26b9c9db
checksum verify failed on 1225752576 wanted 0x1e1047a9 found 0x26b9c9db
Csum didn't match
checksum verify failed on 1225752576 wanted 0x1e1047a9 found 0x26b9c9db
checksum verify failed on 1225752576 wanted 0x1e1047a9 found 0x26b9c9db
Csum didn't match
checksum verify failed on 1225752576 wanted 0x1e1047a9 found 0x26b9c9db
checksum verify failed on 1225752576 wanted 0x1e1047a9 found 0x26b9c9db
Csum didn't match
checksum verify failed on 1225752576 wanted 0x1e1047a9 found 0x26b9c9db
checksum verify failed on 1225752576 wanted 0x1e1047a9 found 0x26b9c9db
Csum didn't match
checksum verify failed on 1225752576 wanted 0x1e1047a9 found 0x26b9c9db
checksum verify failed on 1225752576 wanted 0x1e1047a9 found 0x26b9c9db
Csum didn't match
checksum verify failed on 1225752576 wanted 0x1e1047a9 found 0x26b9c9db
checksum verify failed on 1225752576 wanted 0x1e1047a9 found 0x26b9c9db
Csum didn't match
...
root 504 inode 594955 errors 2001, no inode item, link count wrong
	unresolved ref dir 134932 index 742 namelen 4 name root filetype 7 errors 4, no inode ref
root 504 inode 594956 errors 2001, no inode item, link count wrong
	unresolved ref dir 134932 index 743 namelen 5 name steam filetype 7 errors 4, no inode ref
root 504 inode 594963 errors 2001, no inode item, link count wrong
	unresolved ref dir 134932 index 744 namelen 3 name bin filetype 7 errors 4, no inode ref
root 504 inode 594965 errors 2001, no inode item, link count wrong
	unresolved ref dir 134932 index 746 namelen 11 name steam.token filetype 1 errors 4, no inode ref
root 504 inode 594973 errors 2001, no inode item, link count wrong
	unresolved ref dir 134932 index 756 namelen 12 name registry.vdf filetype 1 errors 4, no inode ref
root 504 inode 594976 errors 2001, no inode item, link count wrong
	unresolved ref dir 150796 index 296 namelen 14 name UserPrefs.json filetype 1 errors 4, no inode ref
root 504 inode 596516 errors 2001, no inode item, link count wrong
	unresolved ref dir 257705 index 48 namelen 8 name main.log filetype 1 errors 4, no inode ref
root 504 inode 596517 errors 2001, no inode item, link count wrong
	unresolved ref dir 257705 index 49 namelen 7 name app.log filetype 1 errors 4, no inode ref
root 504 inode 596518 errors 2001, no inode item, link count wrong
	unresolved ref dir 328112 index 1110 namelen 18 name session-state.json filetype 1 errors 4, no inode ref
root 504 inode 596519 errors 2001, no inode item, link count wrong
	unresolved ref dir 328152 index 65 namelen 63 name 1639350000045.3797540a-cc74-470e-929e-e740c055fd38.main.jsonlz4 filetype 1 errors 4, no inode ref
root 504 inode 597101 errors 2001, no inode item, link count wrong
	unresolved ref dir 134505 index 3 namelen 64 name 260b2646c721487ea7fecf273ca9d2329f9ba6c45c440de88024a5978853c16c filetype 1 errors 4, no inode ref
root 504 inode 597102 errors 2001, no inode item, link count wrong
	unresolved ref dir 47421 index 61 namelen 2 name 02 filetype 2 errors 4, no inode ref
root 504 inode 597130 errors 2001, no inode item, link count wrong
	unresolved ref dir 47421 index 62 namelen 2 name 54 filetype 2 errors 4, no inode ref
root 504 inode 597132 errors 2001, no inode item, link count wrong
	unresolved ref dir 47421 index 63 namelen 2 name 09 filetype 2 errors 4, no inode ref
root 504 inode 597312 errors 2001, no inode item, link count wrong
	unresolved ref dir 33131 index 100 namelen 12 name Schicht.xlsx filetype 1 errors 4, no inode ref
root 504 inode 597509 errors 2001, no inode item, link count wrong
	unresolved ref dir 424465 index 5 namelen 38 name 2492708cfad08cb80519e679ce5ea3e31d342e filetype 1 errors 4, no inode ref
root 504 inode 597608 errors 2001, no inode item, link count wrong
	unresolved ref dir 3198 index 1185 namelen 4 name lock filetype 7 errors 4, no inode ref
root 504 inode 597828 errors 2001, no inode item, link count wrong
	unresolved ref dir 3198 index 1230 namelen 24 name broadcast-listeners.json filetype 1 errors 4, no inode ref
root 504 inode 598448 errors 2001, no inode item, link count wrong
	unresolved ref dir 1454 index 495 namelen 33 name Spielerheft 8 Auflage.pdf.desktop filetype 1 errors 4, no inode ref
root 504 inode 598512 errors 2001, no inode item, link count wrong
	unresolved ref dir 1454 index 497 namelen 25 name Kurzregeln_v2.pdf.desktop filetype 1 errors 4, no inode ref
root 504 inode 598515 errors 2001, no inode item, link count wrong
	unresolved ref dir 215905 index 535 namelen 12 name safebrowsing filetype 2 errors 4, no inode ref
root 504 inode 598650 errors 2001, no inode item, link count wrong
	unresolved ref dir 215905 index 539 namelen 37 name activity-stream.discovery_stream.json filetype 1 errors 4, no inode ref
root 504 inode 599021 errors 2001, no inode item, link count wrong
	unresolved ref dir 328112 index 1140 namelen 20 name aborted-session-ping filetype 1 errors 4, no inode ref
root 504 inode 599091 errors 2001, no inode item, link count wrong
	unresolved ref dir 3198 index 1266 namelen 23 name sessionCheckpoints.json filetype 1 errors 4, no inode ref
ERROR: errors found in fs roots
found 151272779776 bytes used, error(s) found
total csum bytes: 139201524
total tree bytes: 1075478528
total fs tree bytes: 850984960
total extent tree bytes: 51560448
btree space waste bytes: 192405148
file data blocks allocated: 675087585280
 referenced 177016950784

do I have to use the repair switch now?

Ok with repair I could boot again but many things do not work; programs do not start e.g. Firefox

Run it from a terminal and see what error you get.

This is many hundreds of lines

I wanted to save this to a file but the file system is read olny

Well…that is probably the problem.

Can we see the output of

findmnt --real
sudo btrfs sub list /
[tealk@tealk-tuxedoaura15 ~]$ sudo btrfs sub list /
ID 257 gen 38736 top level 5 path @home
ID 258 gen 38736 top level 5 path @cache
ID 259 gen 38736 top level 5 path @log
ID 390 gen 38736 top level 5 path @
ID 499 gen 14269 top level 5 path timeshift-btrfs/snapshots/2021-12-12_22-43-46/@
ID 500 gen 38733 top level 5 path timeshift-btrfs/snapshots/2021-12-12_22-43-46/@home
ID 501 gen 14269 top level 5 path timeshift-btrfs/snapshots/2021-12-12_22-49-51/@
ID 502 gen 36011 top level 5 path timeshift-btrfs/snapshots/2021-12-12_22-49-51/@home
ID 503 gen 14270 top level 5 path timeshift-btrfs/snapshots/2021-12-13_18-34-13/@
ID 504 gen 33246 top level 5 path timeshift-btrfs/snapshots/2021-12-13_18-34-13/@home
[tealk@tealk-tuxedoaura15 ~]$ findmnt --real
TARGET                        SOURCE                                                         FSTYPE      OPTIONS
/                             /dev/mapper/luks-9b07ff78-2d70-454b-baf7-cab63b97e158[/@]      btrfs       ro,noatime,compress=lzo,ssd,space_cache,autodefrag,subvolid=390,subvol=/@
├─/run/user/1000/doc          portal                                                         fuse.portal rw,nosuid,nodev,relatime,user_id=1000,group_id=1001
├─/run/media/tealk/EOS_202111 /dev/sdb1                                                      iso9660     ro,nosuid,nodev,relatime,nojoliet,check=s,map=n,blocksize=2048,uid=1000,gid=1001,dmode=500,fmode=400,iocharset=utf8
├─/boot/efi                   /dev/sda1                                                      vfat        rw,relatime,fmask=0077,dmask=0077,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro
├─/var/log                    /dev/mapper/luks-9b07ff78-2d70-454b-baf7-cab63b97e158[/@log]   btrfs       ro,noatime,compress=lzo,ssd,space_cache,autodefrag,subvolid=259,subvol=/@log
├─/home                       /dev/mapper/luks-9b07ff78-2d70-454b-baf7-cab63b97e158[/@home]  btrfs       ro,noatime,compress=lzo,ssd,space_cache,autodefrag,subvolid=257,subvol=/@home
└─/var/cache                  /dev/mapper/luks-9b07ff78-2d70-454b-baf7-cab63b97e158[/@cache] btrfs       ro,noatime,compress=lzo,ssd,space_cache,autodefrag,subvolid=258,subvol=/@cache
[tealk@tealk-tuxedoaura15 ~]$ 

Can we see the contents of /etc/fstab and the output of sudo btrfs sub list / -r

there is no output

# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a device; this may
# be used with UUID= as a more robust way to name devices that works even if
# disks are added and removed. See fstab(5).
#
# <file system>             <mount point>  <type>  <options>  <dump>  <pass>
UUID=E618-31C6                            /boot/efi      vfat    umask=0077 0 2
/dev/mapper/luks-9b07ff78-2d70-454b-baf7-cab63b97e158 /              btrfs   subvol=/@,defaults,noatime,space_cache,autodefrag,compress=lzo 0 1
/dev/mapper/luks-9b07ff78-2d70-454b-baf7-cab63b97e158 /home          btrfs   subvol=/@home,defaults,noatime,space_cache,autodefrag,compress=lzo 0 2
/dev/mapper/luks-9b07ff78-2d70-454b-baf7-cab63b97e158 /var/cache     btrfs   subvol=/@cache,defaults,noatime,space_cache,autodefrag,compress=lzo 0 2
/dev/mapper/luks-9b07ff78-2d70-454b-baf7-cab63b97e158 /var/log       btrfs   subvol=/@log,defaults,noatime,space_cache,autodefrag,compress=lzo 0 2
/dev/mapper/luks-a5bdc478-fb2a-4561-ad1f-b13a703b8c42 swap           swap    defaults,noatime 0 0
tmpfs                                     /tmp           tmpfs   defaults,noatime,mode=1777 0 0

OK, so your btrfs subsolumes are all being mounted read-only. Since there is nothing that is making that happen deliberately, it probably means there are still issues with that partition.

Two things:

  • Before doing anything else, I would backup any important data while you have access to it all
  • After that, I would boot off the ISO again and see if there are still errors with btrfs check

are a few lines too many to post here directly

I am not sure how to fix that. Your btrfs volume is clearly damaged. Unless someone with more btrfs expertise comes along who knows a way to fix that, you may need to reinstall.

1 Like

Thanks for your help, I think I will just reinstall it.

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.