I have a weird problem with my Pi since a few days:
A lot of commands result in "segmentation fault". Any "apt-get install" does, some normal programs do.
I've googled it and found out it might be a broken file system, so I tried $ sudo fsck.ext4 -pfvc /dev/sde2
on a linux computer. That command returned /dev/sde2: Updating bad block inode.
, but this did not fix the issue.
Anything I can do about that without re-flashing a backup onto the SD card? And, why does my Pi always "eat" (destroy) my SD cards in a short amount of time? I've reinstalled the Pi like four months ago ...
rsync
would help here, but you could try checksumming all files. I wouldn't bother unless I had special reasons. By all means backup your home directory, and any particular customisation. You may be interested in trying to backup files using http://raspberrypi.stackexchange.com/questions/5427/can-a-raspberry-pi-be-used-to-create-a-backup-of-itself/28087#28087 – Milliways Nov 17 '15 at 04:54fsck
can be considered undamaged in a sense; files that aren't coherent are placed as chunks intolost+found
. They could always, of course, have corrupted bytes in them at any point -- there's no way to tell except some comparison such as checksumming;fsck
's job is just to leave things coherent. There are some filesystems that will do checksum inherently (zfs?) but such is not the case here. – goldilocks Nov 17 '15 at 15:07