maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   SailfishOS (https://talk.maemo.org/forumdisplay.php?f=52)
-   -   Help needed to do a backup (https://talk.maemo.org/showthread.php?t=93849)

phantomR6 2014-09-13 15:59

Help needed to do a backup
 
Hi everyone!
Can anyone make dd backup of /dev/mmcblk0p28 of factory resetted device to help me unbrick my Jolla partition?

fk_lx 2014-09-13 16:36

Re: Help me guys!
 
That's how it goes when there is no OS image to flash device. And Jolla talks something about openness.... what a bs...

pichlo 2014-09-13 16:40

Re: Help me guys!
 
So what I'm hearing is, if I ever get a Jolla, the first thing to do is dd to make a backup.

Meanwhile, may I ask:
1. The OP to change the thread title to something meaningful;
2. The techstaff to add a filter to ban this kind of thread title.

nieldk 2014-09-13 19:46

Re: Help me guys!
 
I would like to add here, that while Jolla will (can) not distribute such an image, they (stskeeps) have now agreed to - and is - giving assistance in community efforts on creating this image, just as actively (on IRC) been seriously taking this issue up for discussion as to what possible solutions could be.

nieldk 2014-09-13 19:53

Re: Help me guys!
 
Can you enter recovery ?

https://together.jolla.com/question/...-in-boot-loop/

If so, do a factory reset from there, and update device afterwardd.
A full dd of mmcblk0p28 is ~16Gb a bit much for uploading somewhere.

for a system flashable image. It should become far smaller as a dd is not needed, but should be created from filesystem. Not including blank - not used space

coderus 2014-09-13 22:07

Re: Help me guys!
 
@nieldk i tried to help him, but recovery is not possible because a lot of errors in btrfs and volume can't be mounted. btrfs check --repair log: http://paste.ubuntu.com/8333525/

P.S. dd if=/dev/mmcblk0p28 for me is 4.1GB

nieldk 2014-09-14 05:37

Re: Help me guys!
 
Quote:

Originally Posted by coderus (Post 1439150)
@nieldk i tried to help him, but recovery is not possible because a lot of errors in btrfs and volume can't be mounted. btrfs check --repair log: http://paste.ubuntu.com/8333525/

P.S. dd if=/dev/mmcblk0p28 for me is 4.1GB

That doesnt make sense ?

that partition is 14.8 GB big
http://talk.maemo.org/showpost.php?p...&postcount=243

coderus 2014-09-14 06:01

Re: Help needed to do a backup
 
but dd dump /dev/mmcblk0p28 still 4.3 GB, not 14.8, even after seeing this parted information it didnt changed :P

nieldk 2014-09-14 06:24

Re: Help needed to do a backup
 
Quote:

Originally Posted by coderus (Post 1439160)
but dd dump /dev/mmcblk0p28 still 4.3 GB, not 14.8, even after seeing this parted information it didnt changed :P

just a wild guess, that is on N9 device ? and not Jolla device.
Unless You did some magic, the partition on Jolla is 14.8 Gb and doing a 1/1 dump will make a dd copy that size.
Will see if tar/gz can compress, but that will make a few further steps required for putting it on device ;)

peterleinchen 2014-09-14 07:26

Re: Help needed to do a backup
 
Quote:

Originally Posted by nieldk (Post 1439161)
...
Unless You did some magic, the partition on Jolla is 14.8 Gb and doing a 1/1 dump will make a dd copy that size.
...

Right. Unless you put that file onto a storage with compression, like NTFS4 introduced (as I assume lots of zeros on p28).

coderus 2014-09-14 07:59

Re: Help needed to do a backup
 
@nieldk mmcblk0p28 on N9? you smoking weeds? just do dd dump yourself before writing more answers please ;)

nieldk 2014-09-14 08:16

Re: Help needed to do a backup
 
I have dd dump from the very start, and also, it wouldnt be a dd dump if the size was not equal to the actual partition - it is a RAW partition copy dude, read up on it ;)

coderus 2014-09-14 08:41

Re: Help needed to do a backup
 
please do sudo dd if=/dev/mmcblk0p28 of=/media/sdcard/yoursdcard/image.bin now and tell it's size :)

Wonko 2014-09-14 08:55

Re: Help needed to do a backup
 
Quote:

Originally Posted by coderus (Post 1439171)
please do sudo dd if=/dev/mmcblk0p28 of=/media/sdcard/yoursdcard/image.bin now and tell it's size :)

Just a wild guess and to double check:
The filesystem on your SD card does not have a 4GB file size limit, like FAT32?
That would explain why you only get a file of ~4GB size.

nieldk 2014-09-14 09:04

Re: Help needed to do a backup
 
Quote:

Originally Posted by Wonko (Post 1439173)
Just a wild guess and to double check:
The filesystem on your SD card does not have a 4GB file size limit, like FAT32?
That would explain why you only get a file of ~4GB size.

That could be a reason for @coderus filesize, yes.

@coderus, I do a dd after every update, and you are wrong!

I DARE you to do a dd if=/dev/random of=/dev/mmcblk0p28 ;)
then dd if=yourbackup.bin if=/dev/mmcblk0p28
If your filesize is 4Gb , youre probably screwed ;)

coderus 2014-09-14 09:05

Re: Help needed to do a backup
 
hm, that explain everything. Thanks D:

nieldk 2014-09-14 09:07

Re: Help needed to do a backup
 
Quote:

Originally Posted by coderus (Post 1439175)
hm, that explain everything. Thanks D:

;)
You should create a new backup

coderus 2014-09-14 09:09

Re: Help needed to do a backup
 
I have not enough storage to do that.

So, is there any way to restore this broken partition like recreating fs without using raw dump?

nieldk 2014-09-14 09:17

Re: Help needed to do a backup
 
Quote:

Originally Posted by coderus (Post 1439177)
I have not enough storage to do that.

So, is there any way to restore this broken partition like recreating fs without using raw dump?

yes, create a tar.gz of the content.
Then you can untar that for restoring.

that would probably fit within 4Gb size

or, you could create the dd through ssh tunnelling to your PC

juiceme 2014-09-14 11:16

Re: Help needed to do a backup
 
Quote:

Originally Posted by nieldk (Post 1439178)
yes, create a tar.gz of the content.
Then you can untar that for restoring.

that would probably fit within 4Gb size

or, you could create the dd through ssh tunnelling to your PC

Or, you could connect USB networking and pipe it thru netcat, a lot faster than thru ssh via WLAN :)

coderus 2014-09-14 11:38

Re: Help needed to do a backup
 
thanks, i mean restoring partition WITHOUT using backup is possible or not? Currently mmcblk0p28 failed to mount, filesystem is very damaged. Is there any way to recreate it with no backups?

nieldk 2014-09-14 12:22

Re: Help needed to do a backup
 
hmm
wonder if something like setting version to say 1.0.2.5 (ssu) and then doing version --dup would make a difference

coderus 2014-09-14 13:28

Re: Help needed to do a backup
 
@nieldk what are you talking about when mean ssu?

nieldk 2014-09-14 13:31

Re: Help needed to do a backup
 
ssu re 1.0.2.5
ssu ur
version --dup

perhaps that would force a download and fresh install of files, and give you a functional filesystem

jalyst 2014-09-14 13:52

Re: Help needed to do a backup
 
Fillip you have one warning, one, derail this thread once more & your posts will be removed, that goes for anyone else.
And no I won't waste my time relocating them to a new thread in the off-topic sub-forum, they will just be deleted...

N.B.
I'm not subscribed to this thread so if the BS continues please use the report facility, going to bed in about ~30min so I may not respond quickly.

pichlo 2014-09-14 14:41

Re: Help needed to do a backup
 
Quote:

Originally Posted by peterleinchen (Post 1439163)
Quote:

Originally Posted by nieldk (Post 1439161)
Unless You did some magic, the partition on Jolla is 14.8 Gb and doing a 1/1 dump will make a dd copy that size.

Right. Unless you put that file onto a storage with compression, like NTFS4 introduced (as I assume lots of zeros on p28).

I am sure you realize that a file stored on a compressed FS still has the original size (as does a sparse file for that matter, although that is not discussed here). The available space left on the drive may decrease by less than the new file size but that is irrelevant.

IOW, a 14GB file will not magically turn into a 4GB file when copied to a compressed FS. It will still be a 14GB file, albeit it may occupy only 4GB (or less) real space.

coderus 2014-09-14 14:45

Re: Help needed to do a backup
 
@nieldk please read carefully: mmcblk0p28 cannot be mounted, because of filesystem errors! we need solution to restore filesystem to working state to be able to mount it and restore factory image.

nieldk 2014-09-14 14:49

Re: Help needed to do a backup
 
Quote:

Originally Posted by coderus (Post 1439212)
@nieldk please read carefully: mmcblk0p28 cannot be mounted, because of filesystem errors! we need solution to restore filesystem to working state to be able to mount it and restore factory image.

Yes, will see how much I can compress a "factory" image for uploading somewhere.

coderus 2014-09-14 14:54

Re: Help needed to do a backup
 
so, there are no way to just recreate filesystem on mmcblk0p28 device? i think factory btrfs snapshot was not damaged and can be restored as soon as mmcblk0p28 can be mounted. is there any way to fix filesystem without using dd image?

nieldk 2014-09-14 15:04

Re: Help needed to do a backup
 
if btrfs is not damaged You should be able to use recovery to factory reset the device (perhaps even the btrfs repair option)

nieldk 2014-09-14 15:10

Re: Help needed to do a backup
 
for more on the btrfs and how it perhaps can help

https://together.jolla.com/question/...ious-problems/

coderus 2014-09-14 15:26

Re: Help needed to do a backup
 
@nieldk at first page i already posred result of [btrfs check --repair /dev/mmcblk-p28] output: http://paste.ubuntu.com/8333525/
btrfs recover failed too

nieldk 2014-09-14 15:35

Re: Help needed to do a backup
 
then you will need either
1 that dd copy (i will see)
or
2 send to Jolla

coderus 2014-09-14 15:48

Re: Help needed to do a backup
 
so it means there are no btrfs tool to recreate empty partition? o_O

coderus 2014-09-25 14:33

Re: Help needed to do a backup
 
ok, talking about restoring dd backup back to device. the only option os using ext4/btrfs formatted sd card?

coderus 2014-09-26 13:32

Re: Help needed to do a backup
 
story ends. author successfully received dd backup and restored it.

SvenBertil 2014-10-18 19:01

Re: Help needed to do a backup
 
Hi!

Do you have the backup of the mmcblk0p28 left?
If you have, are you willing to send it to me?

dgolcher 2014-11-02 06:34

Re: Help needed to do a backup
 
Hey guys, new here but in dire need of help. I got the corrupted app registry error and trying to save the phone I tried to create a bootable SD with sailfish .19 and pretty much destroyed my phone. It seems my problem is akin to what you guys just managed to fix. When in telnet and in shell I get:

# btrfs check --repair /dev/mmcblk0p28
# enabling repair mode
# No valid Btrfs found on /dev/mmcblk0p28
# Couldn't open file system

So can you guys help me with a factory img and the instructions on how to restore it... Thanks in advance.

Eminem 2014-11-03 21:17

Re: Help needed to do a backup
 
http://www.jollausers.com/2014/10/fi...recover-jolla/

dgolcher 2014-11-06 06:15

Re: Help needed to do a backup
 
Quote:

Originally Posted by Eminem (Post 1445673)

Thanks, a bit more help as following those instructions is that I basically toasted my jolla...

2) Unpack jolla-sailfish-1.0.8.21.tar.xz and put jolla-sailfish-1.0.8.21.img to sdcard

unpack the tar.bz2 file... so I unpack it to the ext4 formatted SD, but what exactly is the second part? Should I label the SD jolla-sailfish-1.0.8.21.img should I unpack it to that named folder in the SD or should I convert the tar to an .img under that name?

I know it's very basic stuff, but having a toasted jolla in less than a month has me down... thanks to that "critical app registry" error and not knowing on my behalf how to follow instructions.

Thanks in advance once again


All times are GMT. The time now is 10:08.

vBulletin® Version 3.8.8