Forum
  • Search
  • Member List
  • Calendar
Hello There, Guest! Login Register — Login with Facebook

[SOLVED] After updating yesterday...
Thank you for your donation

Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
Solved: After updating yesterday...
16th Aug, 2016, 03:18 AM
Post: #19
Nachteule Offline
Administrator
******
Posts: 2,406
Joined: Dec 2014
Reputation: 122
RE: After updating yesterday...
(16th Aug, 2016 02:12 AM)duno Wrote:  BTRFS: bad superblock - solved

Please mark as solved.

Really good news Smile

Quote:I bought another SD-Card, because my PI3 will not boot with Xbian as it do with Ubuntu or Raspbian.

Maybe my fault ... will try to figure out that later.

Good decision

Quote:What i have done:

I downloaded

Code:
XBian_2016.08.05_rpi.img.gz
Code:
XBian_2016.08.12_rpi.img.gz

Tried both images via dd to the SD-Card, not booting.

Is this typo or did you tried an image for RPi1 running on an RPi2 or 3?

This can not work Exclamation (Kernel is too different)

Quote:Then i found my old one, XBian_preliminary_rpi3.img.gz.

Dumped it to the SD-Card and the PI2 was booting.

After that i connected the PI2 with a Multi-Card-Reader (incl. the "broken" SD-Card) and then i connected via ssh.

Code:
uname -a
Linux xbian 4.4.3+ #2 SMP Thu Mar 3 18:44:04 CET 2016 armv7l GNU/Linux

Code:
sudo btrfs-show-super /dev/sda2
...

Code:
sudo btrfs-show-super -a /dev/sda2
...

Code:
sudo btrfsck -s 1 /dev/sda2
using SB copy 1, bytenr 67108864
Checking filesystem on /dev/sda2
UUID: 2dcbf32f-7a95-41ff-bf52-65d5b4f547a5
checking extents
checking free space cache
checking fs roots
checking csums
checking root refs
found 2153108657 bytes used err is 0
total csum bytes: 5325724
total tree bytes: 217186304
total fs tree bytes: 191053824
total extent tree bytes: 18137088
btree space waste bytes: 41469442
file data blocks allocated: 7247892480
referenced 6437621760
Btrfs v3.16-4-ga81918d-dirty

Code:
sudo apt-get install btrfs-tools

Restoring the matching superblock

Code:
sudo btrfs-select-super -s 1 /dev/sda2
ERROR: superblock checksum mismatch
using SB copy 1, bytenr 67108864

Code:
sudo mount /dev/sda2 /mnt

After that i was able to copy (backup) all the files from /mnt that i need.

But, the greatest success is, the PI2 is booting again from the "broken" SD-Card after restoring the superblock Smile

BTW. As i have seen, last Kernel was 4.14+ (last_good_known) and not 4.15+ when i upgraded to 4.16+

Hmmm, very interesting. So btrfs tool running on a RPi2 was able to repair damaged fs, and ubuntu was not able to do this, very strange.

Quote:Btrfs v3.16-4-ga81918d-dirty[

I`m only a bit confused about the version number of btrfs tools. On debian there is 3.17, and ahh, hold on, on our repo there is 3.16 in stable and 4.3 in staging
Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Post Reply 


Messages In This Thread
After updating yesterday... - Peiote - 7th May, 2016, 10:41 PM
RE: After updating yesterday... - Nachteule - 7th May, 2016, 11:38 PM
RE: After updating yesterday... - duno - 10th Aug, 2016, 10:09 PM
RE: After updating yesterday... - Peiote - 7th May, 2016, 11:49 PM
RE: After updating yesterday... - Nachteule - 8th May, 2016, 12:33 AM
RE: After updating yesterday... - Nachteule - 11th Aug, 2016, 12:53 AM
RE: After updating yesterday... - Nachteule - 11th Aug, 2016, 03:48 AM
RE: After updating yesterday... - duno - 11th Aug, 2016, 05:44 AM
RE: After updating yesterday... - Nachteule - 11th Aug, 2016, 06:37 AM
RE: After updating yesterday... - duno - 11th Aug, 2016, 07:49 AM
RE: After updating yesterday... - Nachteule - 11th Aug, 2016, 08:37 AM
RE: After updating yesterday... - f1vefour - 11th Aug, 2016, 12:51 PM
RE: After updating yesterday... - Nachteule - 11th Aug, 2016, 10:54 PM
RE: After updating yesterday... - duno - 14th Aug, 2016, 01:52 AM
RE: After updating yesterday... - Nachteule - 14th Aug, 2016, 03:43 AM
RE: After updating yesterday... - duno - 14th Aug, 2016, 06:20 AM
RE: After updating yesterday... - Nachteule - 14th Aug, 2016, 08:09 AM
RE: After updating yesterday... - duno - 16th Aug, 2016, 02:12 AM
RE: After updating yesterday... - Nachteule - 16th Aug, 2016 03:18 AM
RE: After updating yesterday... - duno - 16th Aug, 2016, 03:58 AM
RE: After updating yesterday... - Nachteule - 16th Aug, 2016, 04:14 AM
RE: After updating yesterday... - duno - 16th Aug, 2016, 05:25 AM
RE: After updating yesterday... - Nachteule - 16th Aug, 2016, 03:20 AM
RE: After updating yesterday... - ThePumisher - 19th Apr, 2017, 07:55 AM
RE: After updating yesterday... - rikardo1979 - 19th Apr, 2017, 04:54 PM
RE: After updating yesterday... - Nachteule - 20th Apr, 2017, 12:10 AM
RE: After updating yesterday... - ThePumisher - 20th Apr, 2017, 04:31 AM
RE: After updating yesterday... - Nachteule - 20th Apr, 2017, 04:47 AM
RE: After updating yesterday... - ThePumisher - 20th Apr, 2017, 05:04 AM
RE: After updating yesterday... - Nachteule - 20th Apr, 2017, 05:16 AM
RE: After updating yesterday... - ThePumisher - 20th Apr, 2017, 06:09 AM
RE: After updating yesterday... - rikardo1979 - 20th Apr, 2017, 06:12 AM
RE: After updating yesterday... - Nachteule - 20th Apr, 2017, 06:22 AM
RE: After updating yesterday... - ThePumisher - 22nd Apr, 2017, 07:35 AM
RE: After updating yesterday... - ThePumisher - 26th Apr, 2017, 02:14 AM
RE: After updating yesterday... - Nachteule - 26th Apr, 2017, 06:02 AM
RE: After updating yesterday... - ThePumisher - 8th May, 2017, 02:02 AM
RE: After updating yesterday... - Nachteule - 8th May, 2017, 02:20 AM
RE: After updating yesterday... - Antonio - 18th May, 2020, 09:27 PM

  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:

Current time: 2nd Jun, 2025, 07:04 PM Powered By MyBB, © 2002-2025 MyBB Group.