damaged file system

  • My RPi fell off the shelf, now the ext4 partition of the SD card is not mountable, automatic repair ran "force fsck" and says it is beyond repair.

    There is a file or 2 I would like to try to get off it, is there any hope?

    I put it on my Ubuntu 16.04 machine, I cannot read the ext4 partition, but gparted can see it.
    I tried gpart; it could not read it.

  • did you try running fsck manually from another machine?

    short of that you can try mounting it in read-only mode to pull data off it

    Edited once, last by lrusak (December 4, 2016 at 11:04 PM).

  • What I have done on another Ubuntu 16.04 machine:

    sudo dd if=/dev/mmcblk0p2 of=/home/don/Sdcard
    sudo losetup /dev/loop0 /home/don/SDcard
    sudo mkdir /media/don/rpi_card
    Sudo mount /dev/loop0 /media/don/rpi_card

    So, now I can read the files!

    Is there a way to re create the partition with a new super block; since all of the super blocks were corrupt?

    Maybe make a new LibreELEC SD card, then cp everything over?

    Edited once, last by donbrew (December 6, 2016 at 4:11 AM).