![]() |
Re: Help needed to do a backup
Quote:
The Sailfish recovery partition normally has 'xz' available. (So you could pipe xzcat into dd) At less than 300MB, you should be able to even store it on a FAT32 SD Card or safely send it over USB network cable with netcat. It's the base I've rebuilt with my "factory-@" bla partitions. It's formated as stated above (option compatible with Jolla kernel 3.2.108 + using "single" instead of "dup" for metadata). That's the base out of which I've subsequently done my full restore (I copied all my rescued files on "@", "@home" after snapshotting). |
Re: Help needed to do a backup
Thx man, will try asap.
I found out more btw: the instructions I was following were for an older btrfs-tools. It should have been Code:
mkfs.btrfs --label sailfish --nodesize 4096 --features ^extref,^skinny-metadata new-jolla.img Code:
mkfs.btrfs --features list-all EDIT: LOL, just read your previous post. You explained the same thing. |
Re: Help needed to do a backup
Quote:
|
Re: Help needed to do a backup
Quote:
I've bought my phone back in 2014, so the "factroy-@" is some 1.xx old stuff. You'll have to jump through several OTA until you reach the current 2.1.2 if you go this route. Quote:
I would also recommend you to consider two other options, as I've said before :
Quote:
|
Re: Help needed to do a backup
Quote:
Is this because there are blobs incompatible or are there blobs missing at all? |
Re: Help needed to do a backup
Quote:
You might want to either check the tutorials out there for manually resetting to factory, Or see the content of the factory reset script inside the recovery Or try a factory-reset from the recovery. I seem to vaguely remember that the factory-reset needed to also flash a few blobs into the special purpose partition (all the other beside mmcblk0p28) Or you could try to see if you can recover as much as possible using "btrfs restore" (including the file permission, extented attributes, etc.) on your laptop/desktop. It there aren't too many files missing you might as well be able to boot into your latest installation. |
Re: Help needed to do a backup
Yes, I'm getting close!
I reviewed all the steps while creating a new backup image. And I found a major stupidity of mine: I did btrfs restore into a new btrfs img mounted as loop. But I did not create any subvolumes, so the restored data were only directories. There is no visible difference when doing "ls" on the mounted img. In the end, my new image was bootable after putting the backed up data into subvolumes. Now there is on thing left: after boot, I get a white screen. While this tells me, it is booting to a kinda workable state, its not yet usable :( I chrooted from recovery to unapply patches from patchmanager, as I have read these might be the cause. patchmanager --unapply-all didn't help, still only white screen. Is there any other way to fix this? I am not on my home network, so the phone is not on the network automatically. Any reinstall has to come from within the phone I guess? EDIT: on further inspection I found more errors :( Seems all the btrfs scrub, btrfs check and btrfs restore didn't catch some stale file handles. So doing ls -laR from the top is gives me the following stale file handles @/usr/lib/qt5/qml/Sailfish/Store @/usr/lib/qt5/qml/Sailfish/Lipstick @/usr/lib/qt5/qml/Sailfish/Email/libsailfishemailplugin.so @/usr/lib/qt5/qml/Sailfish/Email/qmldir well, its not in factory-@ so I try to get those files... stay tuned ;) |
Re: Help needed to do a backup
YES!!!!
I finally can use my phone again. And there is no reinstalling anything. It is just back normal with all my settings and data (well except, that I reverted patchmanager patches). I will write a summary soon on what was actually needed. There are some catches, if someone (like me) follows older instructions. Right now I am not in the mood for a writeup, just want to relax a moment and just enjoy my J1 ;) EDIT: I put the instructions of what I did into another thread here |
Re: Help needed to do a backup
For the record, if anyone wants to use any such restore :
Quote:
You need to chroot into Sailfish if you're in recovery mode : Code:
mount -o subvolid=0 /dev/mmcblk0p28 /mnt Code:
/var/lib/platform-updates/ flash-bootimg-sbj.sh : will flash the kernel+initrd into the boot partition. flash-persist.sh : will flash the content of /persist flash-platform-images-sbj.sh : will flash all the device-specific blobs into their specific partition (as normally defined in the android standards) : /firmware, /drm, and several other partitions. If you've chrooted from recovery, remember to exit and umount everything in reverse order. |
All times are GMT. The time now is 12:52. |
vBulletin® Version 3.8.8