How do I repair a Fat 32 Filesystem Partition "input/output error"

11,161

Try running

sudo dosfsck -r

a few times and see if that fixes things. Good luck.

Share:
11,161
Sch-Tomi
Author by

Sch-Tomi

Updated on September 18, 2022

Comments

  • Sch-Tomi
    Sch-Tomi almost 2 years

    Some how the partition (Dev/sda2) partition got deleted. So I use TestDisk to bring it back... The first time I did it it erase the whole hard drive... The second time it did restore the partition which is good. But now it is giving me a error massage when I try to open it in Files(Gnome).

    enter image description here

    IF you need it in text here: Error when getting information for file '/media/ubuntu-gnome/Backup/User': Input/output error

    • Admin
      Admin about 10 years
      check dmesg after getting this error for more details.
  • Sch-Tomi
    Sch-Tomi about 10 years
    fsck from util-linux 2.20.1 e2fsck 1.42.9 (4-Feb-2014) ext2fs_open2: Bad magic number in super-block fsck.ext2: Superblock invalid, trying backup blocks... fsck.ext2: Bad magic number in super-block while trying to open /dev/sda2 The superblock could not be read or does not describe a valid ext2/ext3/ext4 filesystem. If the device is valid and it really contains an ext2/ext3/ext4 filesystem (and not swap or ufs or something else), then the superblock is corrupt, and you might try running e2fsck with an alternate superblock: e2fsck -b 8193 <device> or e2fsck -b 32768 <device>
  • Naveen
    Naveen about 10 years
    What is the filesystem of /dev/sda2?
  • Milor123
    Milor123 over 7 years
    This work for me, allows me delete the Orphaned long file name part "2013-12-31--18-26-31 ALPS.KK1.MP1.V2.46" thanks
  • Jamie Hutber
    Jamie Hutber over 5 years
    THIS JUST FORMATTED MY DRIVE!!!
  • Mohammad Kholghi
    Mohammad Kholghi over 5 years
    I'm so sorry for what happened to your drive. I had to tell that this format the partition but fixes the problem. I can recovery your hard just like it was before, but don't know how to send you a message. Give me your Gmail or telegram or Instagram ID, I'll help you recovery it as fast as possible. Sorry Again.
  • Mohammad Kholghi
    Mohammad Kholghi over 5 years
    read above comment @JamieHutber
  • sansa
    sansa over 4 years
    Lol I wish I could downvote you. When adding solutions like this, also say what it does, especially when it FORMATS YOUR DRIVE!!
  • Mohammad Kholghi
    Mohammad Kholghi over 4 years
    @sansa I did so, didn't I?:)
  • simo-zz
    simo-zz about 2 years
    Using -a option restores the FS automatically.