Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Recently, due to a power failure, my system shut down abruptly and since then I am facing this problem! My laptop hangs very frequently and the filesystem becomes read only. I ran disk utility which showed that there are 120 bad sectors! what should I do?

share|improve this question

closed as off-topic by Rinzwind, Warren Hill, karel, Braiam, Eric Carvalho Nov 10 '13 at 18:03

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This is not about Ubuntu. Questions about other Linux distributions can be asked on Unix & Linux, those about Windows on Super User, those about Apple products on Ask Different and generic programming questions on Stack Overflow." – Rinzwind, Warren Hill, karel, Eric Carvalho
If this question can be reworded to fit the rules in the help center, please edit the question.

2  
Replace it. This is not an Ubuntu problem though ;) –  Rinzwind Nov 9 '13 at 11:50
add comment

1 Answer 1

This is what I do when this happens to me:

  1. Run a Live USB session.

  2. Open "Disks" app (gnome-disks).

  3. Take note of the device addresses(?). They look like /dev/sda1, /dev/sda2, etc.

  4. Unmount the disk or partitions. This is why you need the Live USB.

  5. Open a Terminal to run fsck (for "file system check"). What this would do is essentially mark those bad sectors so they won't be used in the future:

    sudo fsck -a + [the device address; see step 3]

    • -a is the option automatically repair the file system without any questions

    It looks like this:

    sudo fsck -a dev/sda1

    Do this for all the devices.

  6. Reboot out of the session.

I hope this works for you too. Cheers.

share|improve this answer
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.