#Read-only file system

125 messages · Page 1 of 1 (latest)

ruby dagger
#

System randomly got stuck in read only, can't do anything or open most applications such as discord to send screenshot.

-mkdir test
mkdir: cannot create directory 'test':read- only file system

#

@lost gazelle @polar patrol

#

here are the logs

lost gazelle
#

sudo dmesg | tail -20

polar patrol
#

btrfs corruption- idk how

ruby dagger
#

yeah that should not exist right? it literally formats the device before installing

ruby dagger
polar patrol
lost gazelle
#

sorry, app didn't scroll down when i clicked in

ruby dagger
#

i installed the one right before 3.30? i think

#

i installed the latest one when i installed omarchy

#

which wasl ike

#

uhh 3 weeks ago or something

polar patrol
ruby dagger
#

i kept updating each update

#

also would you know how do i check if it's my ssd?

#

i actually can't open shit

#

so i can't google the commands

lost gazelle
#

dmesg | grep -i ata

#

those journald entries are noisy

polar patrol
ruby dagger
#

i kinda don't want to unscrew my laptop at like 11 pm when i have an exam tomorrow

polar patrol
lost gazelle
#

well if you need your laptop and works for what you need during the exam... then put it off

#

ro isn't going to hurt it

ruby dagger
#

i can always study on my phone but that'd be a pain in the ass

ruby dagger
#

could not unmount properly

#

interesting

polar patrol
#

lol dawg fixing problems is a pain in the ass- you just have to decide what's worth your time and move forward with that

lost gazelle
#

Might try the Checking Status and Scrub sections. Don't mess with rest of the page since you don't know what the underlying issue is yet.
https://blog.programster.org/btrfs-cheatsheet
typically when the fs remounts to ro, there is a hardware issue e.g. disk, controller, etc...

Programster's Blog

A cheatsheet for when you are interfacing with BTRFS.

#

scrub won't be able to fix anything since it's in ro

#

if you decide to wipe and reinstall, after you backup whatever data you want to keep, try 'mount -o remount,rw /' then see if scrub fixes anything.

ruby dagger
#

I decided to reinstall

#

And I did scrub

#

So far it's working fine

polar patrol
#

plz update this with resolved

ruby dagger
#

I am also doing ssd checks doing smartctl

ruby dagger
#

I still want to know why this happened

polar patrol
# ruby dagger I don't believe it's resolved yet.

that's fine and all- but the omachy dev team tracks things that need their attention based on the tags.

You made a choice to reinstall and scrub, so your issue isn't there anymore- that's one less thing that they have to run through

#

or keep it here if you think its their job to ffigure it out for you

ruby dagger
#

Aren't you a ray of sunshine

polar patrol
#

cheers- i'm fine stepping back from folks who don't want my help

ruby dagger
#

If you actually tried reading what I said, you'd have known that I was running some tests to see if the problem was my ssd or if it was just the system having issues.

ruby dagger
#

@lost gazelle i scrubbed and i am currently trying to do a weekly schedule to scrub automatically

#

would you say there is something else i should try to do? since i really couldn't find a reason as to why the errors were happening in the first place

lost gazelle
#

what does smartctl say?

#

smartctl -A /dev/sdX

#

i'm a little fat happy and slow right now. just got back from sushi

ruby dagger
#

seems pretty healthy

lost gazelle
#

what coomand?

ruby dagger
#

sudo smartctl -A -d nvme /dev/nvme0n1

#

i am not using sdX

lost gazelle
#

ahhyou kept saying ssd

ruby dagger
#

i am using an ssd

lost gazelle
#

nvme

ruby dagger
#

would that not be an ssd?

#

i always called it as such lol

lost gazelle
#

just a hunch but 'Error Information Log Entries: ' should probably be 0

ruby dagger
#

oh yeah that one was weird let me see which one it was

lost gazelle
ruby dagger
#

invalid field in command

#

weird error

lost gazelle
#

you cutoff the command. kind of helps to know what you're doing

#

your nvme might be getting ready croak

ruby dagger
#

i thought that error was not that serious?

lost gazelle
#

here's what a ssd looks like

#

spinner

#

if row 5 has anything that other than 0 in the raw_value column, prepare for disk failure

#

anywho, i would look at replacing your nvme

#

i'm probably wrong, seeing that error doesn't mean a whole lot. interesting.

ruby dagger
#

here again just in case i had a brainfart a while back

#

i don't get it though

#

it acts up like crazy

#

is there any chance there might be another hardware component shitting itself that may cause btrfs issues?

#

also the error "invalid field in command" is not a hardware thing from a quick google search

lone osprey
#

invalid field in command nvme

#

how to prevent this from happening hehe

lost gazelle
#

could be, maybe memory. most linux install isos have memtest in the grub menu. could fire that up on boot. doesn't touch data

#

if you catch it when it goes into ro, do 'dmesg | tail -50' or 'journalctl -n20 -f' to see the last 20 syslog entries and follow. ctrl+c to get out.

#

might be able to spot it

#

i see your buddy left? lol

ruby dagger
#

i vaguely remember this

#

volume was not properly unmounted

lost gazelle
#

that could be from power loss

ruby dagger
lost gazelle
#

lol yepper

ruby dagger
#

yeah weirdo

lost gazelle
#

i try to ignore him until he gets under my skin

ruby dagger
lost gazelle
#

right

ruby dagger
#

how probable is it that btrfs was panicking because of the unsafe shutdowns?

lost gazelle
#

shouldn't. i haven't had issues like that with btrfs

#

did you remount and run a scrub?

ruby dagger
#

yes i did that after you told me a couple messages back

lost gazelle
#

did scrub report any issues?

ruby dagger
#

not at all

#

driving me crazy

lost gazelle
#

has it gone back to ro after the remount?

ruby dagger
#

back then it did remount then went back after

#

but after reinstalling it seems fine for now

lost gazelle
#

oh wow, so fresh system?

ruby dagger
#

yeah i had to reinstall nothing worked

#

it used to happen before when i had fedora

#

and ubuntu before it

lost gazelle
#

well that's a bummer. hopefully you don't see that happen again

ruby dagger
#

welp thanks a lot for the help!

lost gazelle
#

makes me think you have a hardware issue

#

np, run memtest when you can. might have a bad ram stick

#

btrfs is a cow fs. so copy on write with memory issues can cause problems.

ruby dagger
#

yeah i've been doing that as we're speaking

lost gazelle
#

haven't seen it with btrfs yet but have with zfs

ruby dagger
#

the fact that i've never tested my ram yet

#

is mind boggling

#

so yeah it's failing

lost gazelle
#

test one stick in at a time until you find the bad one and replace :(

ruby dagger
#

Thanks a ton!

lost gazelle
#

np, glad to help

#

if it has more than one stick and you figure out which stick, yank it and run with what's left until you get a new one

ruby dagger
#

alright