0

While updating ubuntu my system crashed and after restarting and entering to ubuntu I get the message Root filesystem check failed.Very much similar to the post Ubuntu 13.04 to 13.10: Filesystem check or mount failed. I tried to fix it with the instruction mentioned there as

mount -o remount,rw /
dpkg --configure -a
mount -o remount,ro /
sync
reboot

But the problem is after executing mount -o remount,rw / I get:

mount: cannot remount block device /host/ubuntu/disks/root.disk read-write.
is write-protected.

After executing dpkg --configure -a I get:

dpkg: error: unable to access dpkg status area: Read-only file system. 

After executing the remaining commands, nothing happens apart from a reboot at the end.
Can somebody please suggest a fix.

Rahul Patel
  • 1
  • 1
  • 1

2 Answers2

0

Boot from a live CD or USB and supposing that your HDD will be /dev/sda, issue this command

sudo fsck.ext4 -p -f /dev/sda1

assuming that your root partition is the first one, and you have ext4 on it.

Frantique
  • 8,673
0

Seems that u forgot to add sudo before your commands.You need to be root user if you want to remount( idk if you just ignored the sudos HERE for typing faster)

leighton
  • 383