Yesterday this Fedora 39 system was working normally, this morning the whole filesystem appears to be read-only. I saw in the logs multiple mentions of btrfs incorrect extent count
.
I followed the first part of the openSUSE BTRFS troubleshooting section as that was the best-looking info I could find, booted into a live Fedora 40 USB and:
SMART status on the drive (an SSD) passes.
I can successfully mount the partition without errors
root@localhost-live:~# mount /dev/sda3 /mnt
btrfs scrub
shows uncorrectable errors:
root@localhost-live:~# btrfs scrub start /mnt
scrub started on /mnt, fsid 24e4c96e-7bc1-4317-8111-bda90121e386 (pid=3647)
Starting scrub on devid 1
root@localhost-live:~# btrfs scrub status /mnt
UUID: 24e4c96e-7bc1-4317-8111-bda90121e386
Scrub started: Mon May 13 15:13:13 2024
Status: running
Duration: 0:00:10
Time left: 0:06:00
ETA: Mon May 13 15:19:24 2024
Total to scrub: 79.00GiB
Bytes scrubbed: 2.13GiB (2.70%)
Rate: 218.49MiB/s
Error summary: no errors found
root@localhost-live:~# ERROR: there are 1 uncorrectable errors
liveuser@localhost-live:~$ sudo btrfs scrub status /mnt
UUID: 24e4c96e-7bc1-4317-8111-bda90121e386
Scrub started: Mon May 13 15:13:13 2024
Status: finished
Duration: 0:03:39
Total to scrub: 78.98GiB
Rate: 369.28MiB/s
Error summary: csum=2
Corrected: 0
Uncorrectable: 2
Unverified: 0
inxi from the live system:
liveuser@localhost-live:~$ inxi -Fzxx
System:
Kernel: 6.8.5-301.fc40.x86_64 arch: x86_64 bits: 64 compiler: gcc
v: 2.41-34.fc40
Desktop: KDE Plasma v: 6.0.3 tk: Qt v: N/A wm: kwin_wayland dm: SDDM
Distro: Fedora Linux 40 (KDE Plasma)
Machine:
Type: Desktop Mobo: ASUSTeK model: P8P67 LE v: Rev X.0x
serial: <superuser required> part-nu: SKU UEFI: American Megatrends v: 3801
date: 09/12/2013
Battery:
Device-1: hidpp_battery_0 model: Logitech MX Vertical Advanced Ergonomic
Mouse serial: <filter> charge: 55% (should be ignored) status: discharging
Device-2: hidpp_battery_1 model: Logitech MK700 serial: <filter>
charge: 70% (should be ignored) status: discharging
CPU:
Info: quad core model: Intel Core i5-2320 bits: 64 type: MCP
arch: Sandy Bridge rev: 7 cache: L1: 256 KiB L2: 1024 KiB L3: 6 MiB
Speed (MHz): avg: 1612 high: 1648 min/max: 1600/3300 cores: 1: 1600
2: 1600 3: 1648 4: 1600 bogomips: 24724
Flags: avx ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3
Graphics:
Device-1: NVIDIA GM107 [GeForce GTX 750 Ti] vendor: eVga.com.
driver: nouveau v: kernel arch: Maxwell pcie: speed: 2.5 GT/s lanes: 16
ports: active: DVI-I-1 empty: DP-1,HDMI-A-1 bus-ID: 01:00.0
chip-ID: 10de:1380 temp: 30.0 C
Display: wayland server: Xwayland v: 23.2.4 compositor: kwin_wayland
driver: N/A display-ID: 0
Monitor-1: DVI-I-1 res: 1440x900 size: N/A
API: EGL v: 1.5 platforms: device: 0 drv: nouveau device: 1 drv: swrast
gbm: drv: nouveau surfaceless: drv: nouveau wayland: drv: nouveau x11:
drv: nouveau
API: OpenGL v: 4.5 compat-v: 4.3 vendor: mesa v: 24.0.5 glx-v: 1.4
direct-render: yes renderer: NV117 device-ID: 10de:1380 display-ID: :0.0
API: Vulkan v: 1.3.275 surfaces: xcb,xlib,wayland device: 0 type: cpu
driver: N/A device-ID: 10005:0000
Audio:
Device-1: Intel 6 Series/C200 Series Family High Definition Audio
vendor: ASUSTeK P8H67 driver: snd_hda_intel v: kernel bus-ID: 00:1b.0
chip-ID: 8086:1c20
Device-2: NVIDIA GM107 High Definition Audio [GeForce 940MX]
vendor: eVga.com. driver: snd_hda_intel v: kernel pcie: speed: 2.5 GT/s
lanes: 16 bus-ID: 01:00.1 chip-ID: 10de:0fbc
API: ALSA v: k6.8.5-301.fc40.x86_64 status: kernel-api
Server-1: PipeWire v: 1.0.4 status: active with: 1: pipewire-pulse
status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
4: pw-jack type: plugin
Network:
Device-1: Realtek RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet
vendor: ASUSTeK P8P67 and other motherboards driver: r8169 v: kernel pcie:
speed: 2.5 GT/s lanes: 1 port: c000 bus-ID: 05:00.0 chip-ID: 10ec:8168
IF: enp5s0 state: up speed: 100 Mbps duplex: full mac: <filter>
Bluetooth:
Device-1: Broadcom BCM20702A0 Bluetooth 4.0 driver: btusb v: 0.8 type: USB
rev: 2.0 speed: 12 Mb/s lanes: 1 bus-ID: 4-1.2:3 chip-ID: 0a5c:21e8
Report: btmgmt ID: hci0 rfk-id: 0 state: up address: <filter> bt-v: 4.1
lmp-v: 7
Drives:
Local Storage: total: 34.62 TiB used: 86.17 GiB (0.2%)
ID-1: /dev/sda vendor: SanDisk model: SDSSDA240G size: 223.57 GiB
speed: 6.0 Gb/s serial: <filter>
ID-2: /dev/sdb vendor: Western Digital model: WD30EFRX-68EUZN0
size: 2.73 TiB speed: 6.0 Gb/s serial: <filter>
ID-3: /dev/sdc vendor: Western Digital model: WD5000AAKX-00ERMA0
size: 465.76 GiB speed: 3.0 Gb/s serial: <filter>
ID-4: /dev/sdd vendor: Western Digital model: WD180EDGZ-11BLDS0
size: 16.37 TiB speed: 6.0 Gb/s serial: <filter>
ID-5: /dev/sde vendor: Samsung model: Type-C size: 239.02 GiB type: USB
rev: 2.1 spd: 480 Mb/s lanes: 1 serial: <filter>
ID-6: /dev/sdf vendor: Seagate model: ST8000DM004-2CX188 size: 7.28 TiB
type: USB rev: 3.0 spd: 5 Gb/s lanes: 1 serial: <filter>
ID-7: /dev/sdg vendor: Western Digital model: WD80EDAZ-11TA3A0
size: 7.28 TiB type: USB rev: 3.1 spd: 5 Gb/s lanes: 1 serial: <filter>
ID-8: /dev/sdh vendor: Kingston model: DataTraveler 3.0 size: 58.61 GiB
type: USB rev: 2.1 spd: 480 Mb/s lanes: 1 serial: <filter>
Partition:
ID-1: / size: 8.56 GiB used: 6.92 GiB (80.9%) fs: ext4 dev: /dev/dm-0
mapped: live-rw
Swap:
ID-1: swap-1 type: zram size: 8 GiB used: 0 KiB (0.0%) priority: 100
dev: /dev/zram0
Sensors:
System Temperatures: cpu: 38.0 C mobo: N/A gpu: nouveau temp: 30.0 C
Fan Speeds (rpm): N/A
Info:
Memory: total: 16 GiB available: 15.58 GiB used: 2.83 GiB (18.2%)
Processes: 302 Power: uptime: 24m wakeups: 0 Init: systemd v: 255
target: graphical (5) default: graphical
Packages: Compilers: N/A Shell: Bash v: 5.2.26 running-in: konsole
inxi: 3.3.34
One other thing I noticed: it doesn’t appear to be set read-only immediately. I tried booting in, then opened a console and did touch test.txt
, which created the file as expected. I tried again 2 minutes later and the filesystem was read-only again.
I am very not familiar with btrfs and unsure what to do next, with further steps on that wiki warning they can cause damage.