Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password

    Weired issue with a N9: /home gone

    Reply
    Sfiet_Konstantin | # 1 | 2013-10-18, 18:49 | Report

    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 ?

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Sfiet_Konstantin | # 2 | 2013-10-18, 19:06 | Report

    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.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Sfiet_Konstantin | # 3 | 2013-10-18, 19:17 | Report

    Right: looks like /home is corrupted. Now do anyone know how to run a fsck on /home ...

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Eztran | # 4 | 2013-10-18, 20:02 | Report

    The relevant fsck is /sbin/e2fsck, and the device mounted to /home is /dev/mmcblk0p3.

    Hope that's some help, at least.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    peterleinchen | # 5 | 2013-10-18, 20:35 | Report

    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?).

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to peterleinchen For This Useful Post:
    Sfiet_Konstantin

     
    juiceme | # 6 | 2013-10-18, 21:27 | Report

    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)

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following 2 Users Say Thank You to juiceme For This Useful Post:
    peterleinchen, Sfiet_Konstantin

     
    Sfiet_Konstantin | # 7 | 2013-10-19, 08:35 | Report

    Originally Posted by juiceme View Post
    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.

    Originally Posted by juiceme View Post
    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 !

    Edit | Forward | Quote | Quick Reply | Thanks

     
    bvaibhav | # 8 | 2013-10-22, 10:42 | Report

    Originally Posted by juiceme View Post
    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.

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to bvaibhav For This Useful Post:
    almamo

     
    juiceme | # 9 | 2013-10-22, 17:41 | Report

    Originally Posted by bvaibhav View Post
    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"

    Edit | Forward | Quote | Quick Reply | Thanks

     
vBulletin® Version 3.8.8
Normal Logout