Results 1 to 4 of 4

Thread: Is there a Linux App that can fix corrupt file system

  1. #1
    Join Date
    Mar 2008
    Beans
    9

    Is there a Linux App that can fix corrupt file system

    Hi,

    I am wondering if there is a Linux application that can fix a file corruption issue I have. It is a FAT system on an SD card that I use in my digital camera.

    The directory structure is still intact but when I try to enter into a directory with files through dolphin or thunar etc I get an input/output error.

    If I navigate to the directory in terminal and run ls I get loads of lines with similar message

    ls: cannot access /2M^i»L.▀m!: No such file or directory

    I have tried running testdisk on it and also ddrescue but I cannot resolve the issue. Has anyone come across this before and is there a way to fix it?

  2. #2
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Kubuntu

    Re: Is there a Linux App that can fix corrupt file system

    Part of testdisk is photorec. It scans device for files and tries to recover anything that looks like a file. It only recovers file with extension, but photos have data inside them you can use for renaming.

    http://www.cgsecurity.org/wiki/PhotoRec
    http://www.psychocats.net/ubuntucat/...rdeletedfiles/
    http://ubuntu4beginners.blogspot.com...otorec-in.html

    Use scripts to help sort and rename files:
    http://www.cgsecurity.org/wiki/After_Using_PhotoRec
    use flac tags to rename files
    http://lglinux.blogspot.com/2008/10/...ame-files.html
    http://system-tricks.com/index.php/d...overy-results/
    Best GUI Indexing/Search Tool for Local Files?
    http://ubuntuforums.org/showthread.php?t=1739701
    UEFI boot install & repair info - Regularly Updated :
    https://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  3. #3
    Join Date
    Mar 2011
    Location
    Germany
    Beans
    330
    Distro
    Ubuntu Mate 18.04 Bionic Beaver

    Re: Is there a Linux App that can fix corrupt file system

    Hello, Stonerz.

    The commandline version of the application to fix corrupt filesystems is named fsck. Run man fsck to get the fsck help pages.

    You may also use the GUI programme GParted. Inside the Partition menu there is an action item labelled Check or Verify (Sorry, I'm translating back from German to English.).

    As we are talking about an SD card: No SD card will live forever. Is it imaginable that the problem is not the damaged filesystem as such, but that the SD card is getting closer to the end of its lifetime?

    Kind regards,
    Karl
    Last edited by Karlchen; October 16th, 2012 at 09:58 AM.
    "I killed her in pure self-defense", said the bear after crushing the mouse. "She threatened my life."
    War (What is it good for)

  4. #4
    Join Date
    Mar 2008
    Beans
    9

    Re: Is there a Linux App that can fix corrupt file system

    photorec recovered the files. I created an image of the SD card using testdisk and then recovered the image to another SD card just in case the original was damaged. Then I ran photorec on the recovered image. Looks like all the files are recovered

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •