I have an issue which I don’t know how to even start to address properly. In short:
On boot BTRFS is seemingly mounted as Read-Only. I found that out after trying to sudo zypper dup
which returns:
sudo: unable to open /var/lib/sudo/ts/USR: Read-Only file system
The target filesystem is mounted as read-only. Please make sure the target filesystem is writeable.
Then, after some googling, and investigation - here’s the output of mount | grep ro,
,
/dev/nvme0n1p2 on / type btrfs (ro,relatime,ssd,space_cache=v2,subvolid=265,subvol=/@/.snapshots/1/snapshot)
ramfs on /run/credentials/systemd-tmpfiles-setup-dev.service type ramfs (ro,nosuid,nodev,noexec,relatime,mode=700)
ramfs on /run/credentials/systemd-sysctl.service type ramfs (ro,nosuid,nodev,noexec,relatime,mode=700)
/dev/nvme0n1p2 on /.snapshots type btrfs (ro,relatime,ssd,space_cache=v2,subvolid=264,subvol=/@/.snapshots)
/dev/nvme0n1p2 on /boot/grub2/i386-pc type btrfs (ro,relatime,ssd,space_cache=v2,subvolid=263,subvol=/@/boot/grub2/i386-pc)
/dev/nvme0n1p2 on /boot/grub2/x86_64-efi type btrfs (ro,relatime,ssd,space_cache=v2,subvolid=262,subvol=/@/boot/grub2/x86_64-efi)
/dev/nvme0n1p2 on /var type btrfs (ro,relatime,ssd,space_cache=v2,subvolid=257,subvol=/@/var)
/dev/nvme0n1p2 on /usr/local type btrfs (ro,relatime,ssd,space_cache=v2,subvolid=258,subvol=/@/usr/local)
/dev/nvme0n1p2 on /srv type btrfs (ro,relatime,ssd,space_cache=v2,subvolid=259,subvol=/@/srv)
/dev/nvme0n1p2 on /opt type btrfs (ro,relatime,ssd,space_cache=v2,subvolid=261,subvol=/@/opt)
/dev/nvme0n1p2 on /root type btrfs (ro,relatime,ssd,space_cache=v2,subvolid=260,subvol=/@/root)
ramfs on /run/credentials/systemd-tmpfiles-setup.service type ramfs (ro,nosuid,nodev,noexec,relatime,mode=700)
and mount | grep error
/dev/nvme0n1p1 on /boot/efi type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro)
As I’ve noticed that htop shows that systemd’s degraded:
systemctl --failed
returns:
UNIT LOAD ACTIVE SUB DESCRIPTION
● snapper-cleanup.service loaded failed failed Daily Cleanup of Snapper Snapshots
LOAD = Reflects whether the unit definition was properly loaded.
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
SUB = The low-level unit activation state, values depend on unit type.
1 loaded units listed.
Any hints on what is going on here would be nice! It looks as though I might need to boot from pendrive and chroot into my system and mount them or something. I am still quite fresh on openSUSE (or Linux for that matter). Also, a beginner friendly guide, or approach to how to deal with BTRFS would be really nice. I think that filesystem is a selling point for openSuSE (i.e. snapper is!) but then it would seem that it is not straight forward (one good friend of mine still calls it some sort of experimental, obstruse fs…).
But first: Please help me trouble shoot this issue!