7

I'm using ubuntu 16.04LTS on intel Core i3-6006U, 2.0GHz Asus pc.When I boot the pc I realized that there are some hard drive problems and it's not able to boot on ubuntu. I tried the answer mentioned in this question: fsck error on boot: /dev/sda6: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY and I run this command:

fsck -fy /dev/sda2 

After that I rebooted the pc and it's able to boot on ubuntu successfully.However when I run :

apt-get update

I got many warnings and errors mentioned that the file system is read-only.

I tried different propositions mentioned in this question: How to fix “sudo: unable to open … Read-only file system”? such as:

  1. sudo fsck -Af -M
  2. mount -o remount / it returns : mount: cannot remount /dev/sda2 read-write, is write-protected

and the other solutions mentioned in the question but no vain.How can I fix this? Should I reinstall ubuntu or does this due to a hardware problem?

Xetra
  • 121
Slim
  • 255

1 Answers1

3

From the comments...


You don't need to install smartmontools to check SMART status. Just start the Disks application, select the disk, select SMART Data & Tests.

@heynnema I selected Smart Data & Tests and I try the tests

in the Overall Assessment I have Disk is OK, 5776 bad sectors


Because of the number of bad sectors, your hard disk may be defective.

Be prepared to backup your data, if possible.

However, lets try the following test.

To check the file system on your Ubuntu partition...

  • boot to the GRUB menu
  • choose Advanced Options
  • choose Recovery mode
  • choose Root access
  • at the # prompt, type sudo fsck -f /
  • repeat the fsck command if there were errors
  • type reboot

If for some reason you can't do the above...

  • boot to a Ubuntu Live DVD/USB
  • start gparted and determine which /dev/sdaX is your Ubuntu EXT4 partition
  • quit gparted
  • open a terminal window
  • type sudo fsck -f /dev/sdaX # replacing X with the number you found earlier
  • repeat the fsck command if there were errors
  • type reboot
heynnema
  • 73,649