maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   MeeGo / Harmattan (https://talk.maemo.org/forumdisplay.php?f=45)
-   -   Weired issue with a N9: /home gone (https://talk.maemo.org/showthread.php?t=91626)

Sfiet_Konstantin 2013-10-18 18:49

Weired issue with a N9: /home gone
 
Hi guys. I'm have a N9 that appeared to have commited suicide: all data from /home just mysteriously dissapeared. I wonder what happened. Did anyone of you expected this issue, and (better) did anyone of you recovered from it ?

Sfiet_Konstantin 2013-10-18 19:06

Re: Weired issue with a N9: /home gone
 
Alright, at least for MyDocs, I brought it back by plugging it as a Mass storage and unplugging it + rebooting. But for /home, it is still missing. Investigating.

Sfiet_Konstantin 2013-10-18 19:17

Re: Weired issue with a N9: /home gone
 
Right: looks like /home is corrupted. Now do anyone know how to run a fsck on /home ...

Eztran 2013-10-18 20:02

Re: Weired issue with a N9: /home gone
 
The relevant fsck is /sbin/e2fsck, and the device mounted to /home is /dev/mmcblk0p3.

Hope that's some help, at least.

peterleinchen 2013-10-18 20:35

Re: Weired issue with a N9: /home gone
 
You cannot fsck a mounted fs. And you cannot umount /home.
So probably do (from heart, so please cross check):
dd if=/dev/mmcblk0p3 of=/home/user/MyDocs/p3.img
fsck /home/user/MyDocs/p3.img

If some error pop up, you may correct them on the img file. But to correct them on device you would need to bring it back to /dev/mmcblk0p3. I am unsure if
dd of=/dev/mmcblk0p3 if=/home/user/MyDocs/p3.img
would work..
Maybe better try that with a Linux system and all partitions mounted to that PC (e.g. via ubiboot. Or are there other rescue systems?).

juiceme 2013-10-18 21:27

Re: Weired issue with a N9: /home gone
 
Did you check that your home is actually mounted?
Happened to me once that, well it was my own fault really as I messed up some boot related things, and /dev/mmcblk0p3 (/home) was not mounted.
What happens then, when the device boots it will create a new /home for you on your root device, and copy the skeleton files to it from /etc.
It will look like your device had been wiped clean, but the old stuff stil exists there on /dev/mmcblk0p3

As for rescuing the device, there are at least 3 differnt rescue kernels but ubiboot is the easiest to use and most versatile.
Just load up ubiboot kernel without flashing it, and telnet to the device & run fsck on filesystems.
(or fsck them on USB mount if you have linux)

Sfiet_Konstantin 2013-10-19 08:35

Re: Weired issue with a N9: /home gone
 
Quote:

Originally Posted by juiceme (Post 1381317)
Did you check that your home is actually mounted?
Happened to me once that, well it was my own fault really as I messed up some boot related things, and /dev/mmcblk0p3 (/home) was not mounted.
What happens then, when the device boots it will create a new /home for you on your root device, and copy the skeleton files to it from /etc.
It will look like your device had been wiped clean, but the old stuff stil exists there on /dev/mmcblk0p3

Don't think so: in /home, lost+found if full of stuff, running a e2fsck on /dev/mmcblk0p3 gives me tons of errors.

Quote:

Originally Posted by juiceme (Post 1381317)
As for rescuing the device, there are at least 3 differnt rescue kernels but ubiboot is the easiest to use and most versatile.
Just load up ubiboot kernel without flashing it, and telnet to the device & run fsck on filesystems.
(or fsck them on USB mount if you have linux)

Great, that's exactly what I was searching for !

bvaibhav 2013-10-22 10:42

Re: Weired issue with a N9: /home gone
 
Quote:

Originally Posted by juiceme (Post 1381317)
Just load up ubiboot kernel without flashing it, and telnet to the device & run fsck on filesystems.
(or fsck them on USB mount if you have linux)

Sorry for this silly question but can you tell me the procedure to load the kernel without flashing it.

juiceme 2013-10-22 17:41

Re: Weired issue with a N9: /home gone
 
Quote:

Originally Posted by bvaibhav (Post 1381788)
Sorry for this silly question but can you tell me the procedure to load the kernel without flashing it.

When you load up a kernel without flashing, start like you would start flashing, (meaning, device switched off). You do not need to specify the emmc or --flash-only parameters on the command line, just enter the kernel name:

"sudo flasher -k <name_of_kernel> -n <name_of_initramfs_if_desided> -l -b"


All times are GMT. The time now is 15:09.

vBulletin® Version 3.8.8