LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-27-2018, 12:33 PM   #1
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 18.3+19.0, MX-18
Posts: 4,260

Rep: Reputation: Disabled
btrfs: after error only mounted read only


I'm not quite sure what happened. At one time the netbook refused to shut down entirely with tumbleweed "/" on /dev/sda1. After a quarter of an hour I used the old <Alt><SysReq> "R E I S U B" but to no avail, obviously the keyboard was already disconnected. From then on I can boot but "/" (the btrfs system partition) stays read-only.

Luckily this is a dual boot machine. So I booted the second system and ran
Code:
$ sudo btrfs check --repair /dev/sda1
[sudo] Passwort für matthias: 
enabling repair mode
Checking filesystem on /dev/sda1
UUID: ad139220-b50a-49ba-9e33-92ef61edcaf6
checking extents
Fixed 0 roots.
checking free space cache
cache and super generation don't match, space cache will be invalidated
checking fs roots
checking csums
checking root refs
checking quota groups
Counts for qgroup id: 0/5 are different
our:        referenced 13536464896 referenced compressed 13536464896
disk:        referenced 12929011712 referenced compressed 12929011712
diff:        referenced 607453184 referenced compressed 607453184
our:        exclusive 19415040 exclusive compressed 19415040
disk:        exclusive 19415040 exclusive compressed 19415040
Counts for qgroup id: 0/268 are different
our:        referenced 2230190080 referenced compressed 2230190080
disk:        referenced 2171146240 referenced compressed 2171146240
diff:        referenced 59043840 referenced compressed 59043840
our:        exclusive 2230190080 exclusive compressed 2230190080
disk:        exclusive 2171146240 exclusive compressed 2171146240
diff:        exclusive 59043840 exclusive compressed 59043840
Counts for qgroup id: 0/271 are different
our:        referenced 389828608 referenced compressed 389828608
disk:        referenced 303562752 referenced compressed 303562752
diff:        referenced 86265856 referenced compressed 86265856
our:        exclusive 389828608 exclusive compressed 389828608
disk:        exclusive 303562752 exclusive compressed 303562752
diff:        exclusive 86265856 exclusive compressed 86265856
Counts for qgroup id: 0/811 are different
our:        referenced 13865779200 referenced compressed 13865779200
disk:        referenced 13258326016 referenced compressed 13258326016
diff:        referenced 607453184 referenced compressed 607453184
our:        exclusive 4129353728 exclusive compressed 4129353728
disk:        exclusive 4129353728 exclusive compressed 4129353728
Counts for qgroup id: 0/813 are different
our:        referenced 14245126144 referenced compressed 14245126144
disk:        referenced 13637672960 referenced compressed 13637672960
diff:        referenced 607453184 referenced compressed 607453184
our:        exclusive 176185344 exclusive compressed 176185344
disk:        exclusive 176185344 exclusive compressed 176185344
Counts for qgroup id: 0/814 are different
our:        referenced 13536063488 referenced compressed 13536063488
disk:        referenced 12928610304 referenced compressed 12928610304
diff:        referenced 607453184 referenced compressed 607453184
our:        exclusive 1232896 exclusive compressed 1232896
disk:        exclusive 1232896 exclusive compressed 1232896
Counts for qgroup id: 0/815 are different
our:        referenced 13535879168 referenced compressed 13535879168
disk:        referenced 12928425984 referenced compressed 12928425984
diff:        referenced 607453184 referenced compressed 607453184
our:        exclusive 942080 exclusive compressed 942080
disk:        exclusive 942080 exclusive compressed 942080
Repair qgroup 0/5
Repair qgroup 0/268
Repair qgroup 0/271
Repair qgroup 0/811
Repair qgroup 0/813
Repair qgroup 0/814
Repair qgroup 0/815
Repair qgroup status item
found 21416558592 bytes used err is 8
total csum bytes: 17691552
total tree bytes: 553025536
total fs tree bytes: 491503616
total extent tree bytes: 32931840
btree space waste bytes: 100136392
file data blocks allocated: 740017676288
 referenced 31513849856
Oh well. These messages are new. I just ran the command so as to produce the errors to copy them here...

Okay, I can mount the btrfs partition and create a file on it via "touch" from my MX-17 system. Last time I could not write to it when I switche back to tumbleweed. Will test now and report...
 
Old 04-27-2018, 01:01 PM   #2
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 18.3+19.0, MX-18
Posts: 4,260

Original Poster
Rep: Reputation: Disabled
Gaahhhh. This is bordering on witchcraft. Tumbleweed came back to life after I ran at least 4(!) times "sudo btrfs check --repair /dev/sda1". I am posting right now from there. Not without booting twice, since the first time networkmanager core-dumped and refused to start after that.

I'd honestly like to know what happened in the technical mire in the depths of the system . Marking this thread as "solved". So, folks, if btrfs is piddling around on your systems, run btrfs check --repair in a loop .
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Back up btrfs snapshot to NFS-mounted partition tmst Linux - Networking 2 11-29-2016 02:54 AM
EXT3-fs error partition mounted read only karthi26 Linux - Hardware 6 08-03-2009 08:26 AM
Mounted read-write Fat32 partition suddenly becomes read-only?? hohead Linux - General 8 04-05-2007 01:17 PM
NFS: a mounted to b, b mounted to c, c can't read a? Steve Cronje Linux - Networking 9 10-25-2004 10:51 AM
Cannot read table of mounted filesystems: Input/output error k0ljat Linux - Software 1 09-18-2004 02:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration