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 +0200

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 +0200

4dmonster gravatar image

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

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 +0200 )edit

mistake there must be mount home

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

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

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 +0200 )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 +0200 )edit
0

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

É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 +0200 )edit
Login/Signup to Answer

Question tools

Follow
4 followers

Stats

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

Seen: 491 times

Last updated: Jun 27 '17