Manjaro - 22.00 | Sikaris
KDE - 5.26.4
CPU - Ryzen 5900x
GPU - RX 6700 XT
File system - btrfs
My system randomly becoming Read-Only, both Home & Root folders. I get error messages that read
Configuration file "/home/harmtan13/.config/dolphinrc" not writable.
Please contact your system administrator.
Iāve checked the permissions and my user āharmtan13ā still owns the home Directory with all the read write & execute permissions.
In the terminal I can SU and write a test text file anywhere in the root directory but in the Home directory, I get a error message that reads
touch: cannot touch 'test.txt': Read-only file system
When I restart I the computer I get an error message that tells me Iām in an emergency mode half the time and other times itāll boot in, but Iām stuck in this state of not being able to do anything whatsoever.
This is the 2nd time within a week this has happened. The 1st time this happened, I just backed up what I needed and nuked the drive and started fresh. It had been a while, so I figured what the hell. This reinstall has been going less than a week and itās happened again.
Anyone know what is going on? Iām unable to find anything on the matter or maybe Iām dumb & missed it. Part of me is confused on what I should be looking for.
Edit: Below is the output for "sudo dmesg --level err -L
[ 4.862394] kvm: support for 'kvm_amd' disabled by bios
[ 5.720340] kvm: support for 'kvm_amd' disabled by bios
[ 5.943127] kvm: support for 'kvm_amd' disabled by bios
[ 6.140412] kvm: support for 'kvm_amd' disabled by bios
[ 6.344152] kvm: support for 'kvm_amd' disabled by bios
[ 6.506878] kvm: support for 'kvm_amd' disabled by bios
[ 6.654450] kvm: support for 'kvm_amd' disabled by bios
[ 6.836678] kvm: support for 'kvm_amd' disabled by bios
[ 7.013950] kvm: support for 'kvm_amd' disabled by bios
[ 7.123449] kvm: support for 'kvm_amd' disabled by bios
[ 9327.958002] _swap_info_get: Bad swap file entry 3ffffffffffff
[ 9327.958042] _swap_info_get: Bad swap file entry 3ffffffffffff
[ 9327.958076] _swap_info_get: Bad swap file entry 3ffffffffffff
[ 9364.334241] BTRFS error (device nvme0n1p3): block=59469742080 write time tree block corruption detected
[12763.456781] BTRFS error (device nvme0n1p3: state EMA): Remounting read-write after error is not allowed
UPDATE:
Bad RAM was indeed the culprit. I tried that stick in multiple slots and other sticks in its original slot. That stick indeed always failed the memtest. It also aligns with other random issues Iād run I to every once in a while.
I had 64gb of RAM, so I had plenty to go around, which is probably why it didnāt happen super frequently.
I use a custom DVR (Channels DVR) solution for my TV which allows me to keep recordings locally. For shows that I stockpile episodes for, Iāll take the video files from over the network, load them into a RAM disk, rip out the commercials, compress them, and output them back to the RAM disk before transferring them back to the original network drive the came from.
Every now & again a file would become corrupted or go missing on the RAM disk, but it was so random that I just chalked it up to kdenlive being screwy or I forgot to actually do what I was supposed to do. But literally everything has been fine since removing the stick.
The last entry on the error log seems to show whats going on.
[ 9364.334241] BTRFS error (device nvme0n1p3): block=59469742080 write time tree block corruption detected
[12763.456781] BTRFS error (device nvme0n1p3: state EMA): Remounting read-write after error is not allowed
If you have your home folder on nvme0n1p3 its being mounted as read only because ātree block corruption detectedā. The last line says that because of the error mounting read-write isnt allowed. I would backup anything you want to keep before it fails.
This is a clear warning that the device has massive problems!
The last time I ignored such warning signs, it cost me more than 100⬠for data recovery. It was still a spinning disk though. Since then Iāve been healed!
Since you are the admin:
Donāt repair, replace !
Most other file systems would only have reported this when data had already been lost! Because BTRFS writes (and checks) checksums, it notices the error IMMEDIATELY.
BTRFS will not allow you to write more data to a defective drive !
All data written before the message is normally intact (eventually do a btrfs scrub from within a live manjaro). But if the drive finally fails, there is no rescue other than the professionals (which costs a lot of money)
P.S.:
You will be able to mount the filesystem readonly for recovery (with rsync)
Or you could clone it with btrfs send/receive
Do recover your data using a live manjaro (iso/usb). Not with your broken system !
You got the corrupted swapfile. I think RAM is probably damaged.
After full backup, take out all RAM from your mainboard and test each individual RAM with mprime or memtest to see which one is faulty.
If all RAM are fine, your disk or mainboard (bus system) is probably faulty.
If you need a automatic Btrfs notification, you can install btrfs-desktop-notification-git from AUR ( it was created by me). It notifies you immediately to easily notice when any error/warning Btrfs message appears.
Haha yes, I am the admin. Unfortunately, this Admin is under-qualified for this issue by himself.
Very glad to have chosen BTRFS then.
My data is all backed up on a Separate drive. Iāve lost massive amounts of data before, so I keep multiple backups now. Iāll have to do some testing on this drive. I got it from Best Buy less than a year ago.
So Iām actually not in Read-Only Mode anymore. I got frustrated and booted into windows (Installed on a completly seperate SATA drive) to play a game to blow off some steam and when I went back, everything is operating normally again. But here is the output of that below.
[quote="Zesko, post:4, topic:130880"]
`sudo btrfs scrub status /`
[/quote]
UUID: 83c860f4-f59b-4098-99fd-52b0ccc90010
no stats available
Total to scrub: 19.55GiB
Rate: 0.00B/s
Error summary: no errors found
I might venture to say that the Motherboard might be an issue. Iāve had the same RAM, CPU, GPU, and drives all on a different board with zero issues. Maybe my drive isnāt slotted in properly? I do remember having to make due with someth when I swapped cuz my brother didnāt send me all the stuff for the board. I have that now. Iāll do some investigating there.
Appreciate it and appreciate your time in helping.
This was it, one of my most recent RAM modules failed immediately after starting a memtest. Still under warranty, so Iāll get it replaced and just live with less RAM until itās replaced. Thanks for the help!!!