We have moved to a new Sailfish OS Forum. Please start new discussions there.
5

how to mount mmcblk0p28 image file on PC

asked 2017-06-27 10:18:32 +0300

4dmonster gravatar image

My Jolla C fall into recovery mode again. I could save image to file:

 dd if=/dev/mmcblk0p28 of=/mnt/BackupCard/jolla-fullBackup-p28.img

After that i could do factory reset. But executing dd back doesn't help as root partition contains error wich cannot be fixed by fsck on the Jolla C. So i want to fix them on PC. I set loop back device:

losetup /dev/loop1 ./jolla-fullBackup-p28.img

Now i am trying to mount image on PC. But command

mount -t ext4 /dev/loop1 /media/sailfish/root

shows error as mmcblk0p28 is not simple device:

mount: wrong fs type, bad option, bad superblock on /dev/loop1,
       missing codepage or helper program, or other error

   In some cases useful info is found in syslog - try    dmesg | tail or so.

How can i setup and mount this image on PC ?

edit retag flag offensive close delete

3 Answers

Sort by » oldest newest most voted
3

answered 2017-06-27 13:06:41 +0300

4dmonster gravatar image

updated 2017-06-27 14:10:48 +0300

I could mount as follow:

sudo apt-get install lvm2

sudo reboot

I don't know why it is necessary to reboot, but at my work computer i couldn't succeed without it.

as root:

losetup /dev/loop1 ./Backup20170624.img
vgscan 
vgchange -ay
mkdir -p /media/sailfish/root
mkdir -p /media/sailfish/home
mount -t ext4 /dev/sailfish/root /media/sailfish/root/
mount -t ext4 /dev/sailfish/home /media/sailfish/home/
edit flag offensive delete publish link more

Comments

the last command?

jovirkku ( 2017-06-27 14:07:05 +0300 )edit

mistake there must be mount home

4dmonster ( 2017-06-27 14:10:32 +0300 )edit
1

answered 2017-06-27 11:43:34 +0300

coderus gravatar image

sudo mount -o loop jolla.img /mnt

edit flag offensive delete publish link more

Comments

a better error: mount: unknown filesystem type 'LVM2_member'

4dmonster ( 2017-06-27 11:48:41 +0300 )edit
2

Setup loopback device, run 'vgscan && vgchange -ay', should print something about new volume group being active, then check /dev/mapper/ for new devices.

raimue ( 2017-06-27 12:40:02 +0300 )edit
0

answered 2017-06-27 11:35:53 +0300

Éibhear gravatar image

Hi, try -t btrfs instead of -t ext4. Éibhear

edit flag offensive delete publish link more

Comments

Just the same error.

4dmonster ( 2017-06-27 11:39:25 +0300 )edit
Login/Signup to Answer

Question tools

Follow
4 followers

Stats

Asked: 2017-06-27 10:18:32 +0300

Seen: 466 times

Last updated: Jun 27 '17