Cannot Download Updates; /usr mistakenly marked read-only?

Struggling with a persistent issue: for the past few days I’ve been unable to download updates, from the Software App, or from the terminal. App returns this error log:

Failed to run transaction: cannot open file: (30) - Read-only file system [/usr/lib/sysimage/libdnf5/offline/offline-transaction-state.toml]

And running sudo dnf upgrade --refresh returns this error:

Error: /usr is configured to be read-only. You may be running an image-based or immutable operating system. For more information, refer to your distribution's documentation.

…However, when I check the file permissions of /usr, everything seems normal- and besides the issue with updates, everything else is working fine. I can’t find anything obvious in dmesg, (admittedly not 100% sure what I should be looking for), and I’ve tried unmounting and remounting, fiddled a bit with a live boot, and now I’m kind of at a loss.

Am I missing something obvious? I think the problem started when I was trying to get some h264 codecs working for Firefox, but I’m not sure if it’s related. I’m also very new to Fedora, and Linux in general, so any help is appreciated…

Try running the command mount | grep \(ro which should return a list of all file systems that are mounted as read only. Post those results so we may be able to identify the issue.
This is one of my mounted file systems and the details within the () tell us it is mounted read/write rw. If the file system is mounted read only it will show ro instead.
/dev/nvme0n1p2 on /boot type ext4 (rw,relatime,seclabel)

You did not say which edition of fedora is installed, so I must assume Workstation since that is most common. You say you are using the software app, so that is another hint that you are on Workstation.

We do need more info so please provide the output of inxi -ezxx so we can see more info about the system. Post that as preformatted text using the </> button.

If you are using btrfs, see the discussion at https://discussion.fedoraproject.org/t/kernel-6-10-9-causes-system-to-boot-to-read-only-mode-for-btrfs/131472.

Do you have or can you get a bootable Live USB installer? This will allow you safely check an unmounted btrfs filesystem. You can also install inxi, run ‘inxi -ezxx` in a terminal and post the output (as web-discoverable pre-formatted text).

I’ve got Fedora Workstation 44; here’s the result of mount | grep \(ro: (…I suspect the last one may be the problem, and may have something to do with h264 after all…?)

none on /run/credentials/systemd-cryptsetup@luks\x2dbc68a39a\x2d2c7d\x2d4be4\x2dba3a\x2d5806b7ab6133.service type tmpfs (ro,nosuid,nodev,noexec,relatime,nosymfollow,seclabel,size=1024k,nr_inodes=1024,mode=700,inode64,noswap)
none on /run/credentials/systemd-journald.service type tmpfs (ro,nosuid,nodev,noexec,relatime,nosymfollow,seclabel,size=1024k,nr_inodes=1024,mode=700,inode64,noswap)
none on /run/credentials/systemd-resolved.service type tmpfs (ro,nosuid,nodev,noexec,relatime,nosymfollow,seclabel,size=1024k,nr_inodes=1024,mode=700,inode64,noswap)
sysext on /usr type overlay (ro,nodev,relatime,seclabel,lowerdir=/run/systemd/sysext/meta/usr:/run/systemd/sysext/extensions/openh264/usr:/usr,redirect_dir=on)

I’m having some trouble with Inxi; sudo dnf install inxi returns the error about /usr being ro. I’ve got a bootable usb installer though, I can try installing and running it from there…

…And from the bootable drive, here’s the result of inxi -ezxx

System:
  Kernel: 6.19.10-300.fc44.x86_64 arch: x86_64 bits: 64 compiler: gcc
    v: 16.0.1
  Desktop: GNOME v: 50.0 tk: GTK v: 3.24.52 wm: gnome-shell dm: GDM
    Distro: Fedora Linux 44 (Workstation Edition)
Machine:
  Type: Laptop System: HP product: Victus by HP Gaming Laptop 15-fb2xxx v: N/A
    serial: <superuser required> Chassis: type: 10 serial: <superuser required>
  Mobo: HP model: 8D07 v: 34.17 serial: <superuser required>
    part-nu: 9Z7L4UA#ABA Firmware: UEFI vendor: AMI v: F.09 date: 12/10/2025
Battery:
  ID-1: BAT0 charge: 42.6 Wh (100%) condition: 42.6/42.6 Wh (100%)
    volts: 13.01 min: 11.55 model: HP Primary serial: <filter> charging:
    status: full cycles: 129
CPU:
  Info: 6-core model: AMD Ryzen 5 7535HS with Radeon Graphics bits: 64
    type: MT MCP arch: Zen 3+ rev: 1 cache: L1: 384 KiB L2: 3 MiB L3: 16 MiB
  Speed (MHz): avg: 1110 min/max: 416/4605 boost: enabled cores: 1: 1110
    2: 1110 3: 1110 4: 1110 5: 1110 6: 1110 7: 1110 8: 1110 9: 1110 10: 1110
    11: 1110 12: 1110 bogomips: 79051
  Flags-basic: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a
    ssse3 svm
Graphics:
  Device-1: Advanced Micro Devices [AMD/ATI] Navi 24 [Radeon RX 6400/6500
    XT/6500M] vendor: Hewlett-Packard driver: amdgpu v: kernel arch: RDNA-2
    pcie: speed: 16 GT/s lanes: 16 ports: active: none
    empty: HDMI-A-1,Writeback-1 bus-ID: 03:00.0 chip-ID: 1002:743f
  Device-2: Advanced Micro Devices [AMD/ATI] Rembrandt [Radeon 680M]
    vendor: Hewlett-Packard driver: amdgpu v: kernel arch: RDNA-2 pcie:
    speed: 16 GT/s lanes: 16 ports: active: eDP-1 empty: DP-1, DP-2, DP-3,
    DP-4, DP-5, DP-6, DP-7, DP-8, Writeback-2 bus-ID: 08:00.0
    chip-ID: 1002:1681 temp: 47.0 C
  Device-3: Luxvisions Innotech HP Wide Vision HD Camera driver: uvcvideo
    type: USB rev: 2.0 speed: 480 Mb/s lanes: 1 bus-ID: 1-3:2 chip-ID: 30c9:0069
  Display: wayland server: Xwayland v: 24.1.9 compositor: gnome-shell
    driver: gpu: amdgpu display-ID: 0
  Monitor-1: eDP-1 model: ChiMei InnoLux 0x1560 res: 1920x1080 dpi: 142
    diag: 394mm (15.5")
  API: OpenGL v: 4.6 vendor: amd mesa v: 26.0.3 glx-v: 1.4 es-v: 3.2
    direct-render: yes renderer: AMD Radeon 660M (radeonsi rembrandt ACO DRM
    3.64 6.19.10-300.fc44.x86_64) device-ID: 1002:1681 display-ID: :0.0
  API: EGL Message: EGL data requires eglinfo. Check --recommends.
  Info: Tools: api: glxinfo x11: xdriinfo, xdpyinfo, xprop, xrandr
Audio:
  Device-1: Advanced Micro Devices [AMD/ATI] Navi 21/23 HDMI/DP Audio
    driver: snd_hda_intel v: kernel pcie: speed: 16 GT/s lanes: 16
    bus-ID: 03:00.1 chip-ID: 1002:ab28
  Device-2: Advanced Micro Devices [AMD/ATI] Radeon High Definition Audio
    vendor: Hewlett-Packard driver: snd_hda_intel v: kernel pcie: speed: 16 GT/s
    lanes: 16 bus-ID: 08:00.1 chip-ID: 1002:1640
  Device-3: Advanced Micro Devices [AMD] Audio Coprocessor
    vendor: Hewlett-Packard driver: snd_pci_acp6x v: kernel pcie: speed: 16 GT/s
    lanes: 16 bus-ID: 08:00.5 chip-ID: 1022:15e2
  Device-4: Advanced Micro Devices [AMD] Ryzen HD Audio
    vendor: Hewlett-Packard driver: snd_hda_intel v: kernel pcie: speed: 16 GT/s
    lanes: 16 bus-ID: 08:00.6 chip-ID: 1022:15e3
  API: ALSA v: k6.19.10-300.fc44.x86_64 status: kernel-api
  Server-1: PipeWire v: 1.6.2 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: Hewlett-Packard driver: r8169 v: kernel pcie: speed: 2.5 GT/s
    lanes: 1 port: f000 bus-ID: 04:00.0 chip-ID: 10ec:8168
  IF: eno1 state: down mac: <filter>
  Device-2: Realtek RTL8852BE PCIe 802.11ax Wireless Network
    vendor: Hewlett-Packard driver: rtw89_8852be v: kernel pcie: speed: 2.5 GT/s
    lanes: 1 port: e000 bus-ID: 05:00.0 chip-ID: 10ec:b852
  IF: wlo1 state: up mac: <filter>
Bluetooth:
  Device-1: Realtek Bluetooth Radio driver: btusb v: 0.8 type: USB rev: 1.0
    speed: 12 Mb/s lanes: 1 bus-ID: 1-4:3 chip-ID: 0bda:b85c
  Report: btmgmt ID: hci0 rfk-id: 0 state: up address: <filter> bt-v: 5.2
    lmp-v: 11
Drives:
  Local Storage: total: 491.59 GiB used: 0 KiB (0.0%)
  ID-1: /dev/nvme0n1 vendor: KIOXIA model: N/A size: 476.94 GiB
    speed: 63.2 Gb/s lanes: 4 serial: <filter> temp: 31.9 C
  ID-2: /dev/sda model: General USB Flash Disk size: 14.65 GiB type: USB
    rev: 2.0 spd: 480 Mb/s lanes: 1 serial: <filter>
Partition:
  ID-1: / size: 1.39 GiB used: 524.5 MiB (36.8%) fs: overlay source: ERR-102
Swap:
  ID-1: swap-1 type: zram size: 6.95 GiB used: 0 KiB (0.0%) priority: 100
    dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 77.5 C mobo: 40.0 C
  Fan Speeds (rpm): fan-1: 2688 fan-2: 0
  GPU: device: amdgpu temp: 47.0 C mem: 42.0 C fan: 0 device: amdgpu
    temp: N/A
Info:
  Memory: total: 8 GiB note: est. available: 6.95 GiB used: 2.64 GiB (38.0%)
  Processes: 424 Power: uptime: 2m wakeups: 0 Init: systemd v: 259
    default: graphical
  Packages: pm: rpm pkgs: N/A note: see --rpm Compilers: N/A Shell: Bash
    v: 5.3.9 running-in: ptyxis-agent inxi: 3.3.41

It’s running dual-booted with Windows, and the Windows partition’s been basically unusable lately, if that’s relevant…

Are you sure your running the workstation media or are you using the atomic media which is read only

This really doesn’t look normal, there isn’t a fs type or source

Partition:
  ID-1: / size: 49.09 GiB used: 32.25 GiB (65.7%) fs: ext4 dev: /dev/nvme0n1p4

That is impossible for us to tell. However, it might be a good idea to undo every modifications that has been done related to that codec issue. Or is there any other modifications done recently which needs to be undone.

Can you show the output of this command?

systemd-sysext list

As others have noted, [quote=“Pierce Richards, post:5, topic:203726, username:mindthemoods”]

  ID-1: /dev/nvme0n1 vendor: KIOXIA model: N/A size: 476.94 GiB
    speed: 63.2 Gb/s lanes: 4 serial: <filter> temp: 31.9 C

[/quote]
is not normal. Gnome Disks has “Drive Health” — what does it report? You can also try running sudo nvme fw-log /dev/nvme0 in a terminal. This should show your firmware version. You should open the system to check that the drive is properly seated in the socket and get the model code.

What is abnormal there?

For example on my system:

  ID-1: /dev/nvme0n1 vendor: Smart Modular Tech. model: SHGP31-2000GM
    size: 1.82 TiB speed: 31.6 Gb/s lanes: 4 serial: <filter> temp: 58.9 C

The “Partition ID-1” doesn’t look right, but this is unlikely to be a hardware issue, more likely an inappropriate use of systemd-sysext on a non-immutable system.

Agree: Something or someone installed an overlay file system on /, which is read-only.

We saw that from

sysext on /usr type overlay (ro,nodev,relatime,seclabel,lowerdir=/run/systemd/sysext/meta/usr:/run/systemd/sysext/extensions/openh264/usr:/usr,redirect_dir=on)

Yes. My guess is that maybe OP followed a guide for installing codecs on immutable distros using systemd-sysext - but if you try that on a mutable distro, you’ll end up with read-only /usr.

On most non-atomic systems, especially Workstation, /usr is not a separate partition/file system (unless the user custom defined his partitions). That he has it as such seems to indicate that something strange is going on. I also see that his /usr shows as an overlay and not a normal file system which could support the idea that he may have used the wrong instructions for installing the codecs.

It is clear from his inxi output that at least the USB used for booting the live system is the non-atomic Workstation.

Here’s the result of systemd-sysext list':

NAME     TYPE PATH                             TIME                       
openh264 raw  /var/lib/extensions/openh264.raw Sat 2026-05-09 16:06:13 CDT

And here’s the result of sudo nvme fw-log /dev/nvme0

Firmware Log for device:nvme0
afi  : 0x1
frs1 : 0x30304e4132305048 (HP02AN00)
frs2 : 0x30304e4132305048 (HP02AN00)

I can try opening up the computer; but I’m pretty sure it’s something I did something wrong installing the codecs. (Have since learned my lesson about running dubious terminal stuff late at night.) I’ll retrace my steps, but I recall something about a ‘dynamic overlay’ that supposedly gets the codecs working every time Firefox is opened, which required a suspicious amount of terminal prompting…

Delete that sysext: it’s not going to work on Fedora Workstation.

sudo rm /var/lib/extensions/openh264.raw

Then reboot and you should hopefully be running normally. If Fedora doesn’t already have openh264 installed, then your first successful DNF update should install it.

@pg-tips That did it, whew… ironically, turns out I’d already got h264 working, just not specifically on Firefox for some reason. Thank you all for the help!

You often need more than h264 for firefox. Usually, installing ffmpeg from rpmfusion would fix most codec problems with firefox.