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

howto acces rootfs in recovery mode on xperia x

asked 2019-02-17 14:33:21 +0200

mrtrm gravatar image

Device: Xperia X compact (by g7), SFOS 3.0.1.11 I edited /etc/fstab. Now my phone doesn't boot beyond the Sony logo. The LED turns blueish white. I can enter recovery mode, but from there when I go to 3) shell, I'm at a loss how to acces fstab. I probably have to mount something, but I don't now what or how. Going with vi into /etc/fstab gives me a fstab file in which I don't see my editing. Can anybody help?

edit retag flag offensive close delete

Comments

thank you that you posted your solution, glad to hear that your phone is up an running again!

nas ( 2019-02-18 19:53:34 +0200 )edit

4 Answers

Sort by » oldest newest most voted
2

answered 2019-02-17 23:46:57 +0200

mrtrm gravatar image

updated 2019-02-20 07:56:36 +0200

Finally I could not wait and tried to mount the devices one by one as found by blkid (in recovery mode option 3):

/ # blkid
/dev/dm-1: LABEL="home" UUID="330e4e97-644e-4fcf-8395-95ffa3b32a5e"
/dev/dm-0: UUID="6f5205ff-c6df-43fe-8fbb-15ed92b408c1"
/dev/mmcblk1p1: UUID="44D1-13F0"
/dev/mmcblk0p52: UUID="2f758873-8321-4421-8779-a1b713b072a9"
/dev/mmcblk0p50: UUID="57f8f4bc-abf4-655f-bf67-946fc0f9f25b"
/dev/mmcblk0p49: UUID="57f8f4bc-abf4-655f-bf67-946fc0f9f25b"
/dev/mmcblk0p48: UUID="57f8f4bc-abf4-655f-bf67-946fc0f9f25b"
/dev/mmcblk0p39: LABEL="odm" UUID="e9c0a617-2b70-1a5b-908a-c38456c7e193"
/dev/mmcblk0p36: UUID="57f8f4bc-abf4-655f-bf67-946fc0f9f25b"
/dev/mmcblk0p35: LABEL="cache" UUID="f73de97f-7017-ca5e-9b47-ca9c8f633e83"
/dev/mmcblk0p26: LABEL="dsp" UUID="af32c008-2a39-7e5b-a5dc-201456d93103"
/dev/mmcblk0p24: UUID="00BC-614E"
/dev/mmcblk0p2: UUID="57f8f4bc-abf4-655f-bf67-946fc0f9f25b"
/dev/mapper/sailfish-home: LABEL="home" UUID="330e4e97-644e-4fcf-8395-95ffa3b32a5e"
/dev/mapper/sailfish-root: UUID="6f5205ff-c6df-43fe-8fbb-15ed92b408c1"
/ # mount /dev/dm-0 /mnt
/ # vi /mnt/etc/fstab
/ #

After that I could delete the faulty line in fstab and reboot again ... Sorry to have bothered you all, thanks for your answers!

edit flag offensive delete publish link more
0

answered 2019-02-17 20:10:26 +0200

With my Xperia X Compact I had to mount /dev/mapper/Sailfish-home to get access of /home/nemo. But I only could save my data. I couldn't save my installation so I re-flashed my phone. Still setting up everything.

Hope you are more successful.

edit flag offensive delete publish link more
0

answered 2019-02-17 20:33:19 +0200

nas gravatar image

updated 2019-02-17 20:35:18 +0200

On my device (XperiaX) I see using the mount command: /dev/mapper/sailfish-root mounted on /,so reading also the example from Vieno, I suggest you could try to mount /dev/mapper/sailfish-root on an empty directory - something like /mnt or /media or create a dir /media/root , let's say you are mounting it at /mnt .

mount  /dev/mapper/sailfish-root  /mnt

From there I suppose you may me able to go on /mnt/etc/ (/mnt/etc/) and you will find your fstab. Of course do a backup of the fstab ( I would suggest a full backup anyway ).

Before exit / reboot try the command: sync ; sync ; sync ; (yes, 3 times) which is used to write data on disk.

Please let us know how the process went.

edit flag offensive delete publish link more
0

answered 2019-02-17 21:11:47 +0200

Levone1 gravatar image

Try /rootfs/etc/fstab...

edit flag offensive delete publish link more
Login/Signup to Answer

Question tools

Follow
2 followers

Stats

Asked: 2019-02-17 14:33:21 +0200

Seen: 417 times

Last updated: Feb 20 '19