btrfs problem / home dir gone
Hello,
few days ago my Jolla1 show me that memory was almost full. Yesterday I empty a lot of space (~3Gb) and yesterday noon I started btrfs-balancer balance . Today I saw it stuck at 10% and the phone was unresponsive. I took out the battery (which as I read after wasn't very good idea), and now the phone when it starts, it shows the Jolla logo, then it is gone and the white light remains and stops there.
I went to recovery mode, where I tried:
/ # mount -o subvol=@home /dev/mmcblk0p28 /myhome
mount: mounting /dev/mmcblk0p28 on /myhome failed: No space left on device
I mounted /dev/mmcblk0p28 (mount /dev/mmcblk0p28 /myhome
) and I saw that the /home directory is totally empty :( .
When I do a check, I get these errors:
/ # btrfs check --repair /dev/mmcblk0p28
enabling repair mode
Checking filesystem on /dev/mmcblk0p28
UUID: 808158a7-ac77-4713-e316-7a3191b759cf
checking extents
checking free space cache
cache and super generation don''t match, space cache will be invalidated
checking fs roots
root 257 inode 26327 errors 400, nbytes wrong
root 258 inode 4859363 errors 400, nbytes wrong
root 258 inode 7984606 errors 400, nbytes wrong
root 258 inode 10125125 errors 2400, nbytes wrong, link count wrong
root 258 inode 10125126 errors 2400, nbytes wrong, link count wrong
root 258 inode 10125127 errors 2400, nbytes wrong, link count wrong
root 258 inode 10125128 errors 2400, nbytes wrong, link count wrong
root 258 inode 10125129 errors 2400, nbytes wrong, link count wrong
root 258 inode 10125130 errors 2400, nbytes wrong, link count wrong
root 258 inode 10125131 errors 2400, nbytes wrong, link count wrong
root 258 inode 10125132 errors 2400, nbytes wrong, link count wrong
root 258 inode 10125133 errors 2400, nbytes wrong, link count wrong
root 258 inode 10125134 errors 2400, nbytes wrong, link count wrong
root 258 inode 10125135 errors 2400, nbytes wrong, link count wrong
root 258 inode 10125136 errors 2400, nbytes wrong, link count wrong
root 258 inode 10125137 errors 2400, nbytes wrong, link count wrong
root 258 inode 10125138 errors 2400, nbytes wrong, link count wrong
found 4667207882 bytes used err is 1
total csum bytes: 10819840
total tree bytes: 236953600
total fs tree bytes: 205643776
total extent tree bytes: 16134144
btree space waste bytes: 70494524
file data blocks allocated: 15631282176
referenced 10313031680
Btrfs v3.16
/ #
Did I lost my entire home directory? Is there ANY chance I get it back, or at least I can save some parts of it? Mostly I am interested of the phonebook, smses, bookmarks and notes.
Any suggestions welcome..
Factory reset and then copy back your data from your backups.
olf ( 2018-06-07 12:50:22 +0200 )editI made a dd image from the partition once upon a time, mounted it on a moderer linux distro with newer btrfs, and fixed it (just enough) there.
Direc ( 2018-06-13 00:17:50 +0200 )editDirec your other post (Dec 2017) on tjc was huge source of inspiration, thanks ;) . But unfortunately didn't work for me. As the #btrfs guys told me:
This may get tricky. There was a feature introduced some time ago to improve the performance of receive. That's the UUID tree. If a more recent kernel sees a filesystem without one, it'll try to build one. However, if you've hit ENOSPC, it can't create a UUID tree, and you can't do anything to fix the ENOSPC because you can't mount the FS... I'm also not 100% certain what happens when you try to mount an FS with a UUID tree on an older kernel that doesn't know abou tit.
The next step would be to try to use older/ different linux operating systems, hopefully didn't need to.
nas ( 2018-06-19 11:13:44 +0200 )edit