WHAT'S NEW?
Loading...

[SOLVED] [UBUNTU] Repairing fstab - Cannot edit fstab, the Filesystem is read only

I had a typo in my fstab and it boots to a commandline but is readonly, I know what the error is but i can't change it because it's mounted as readonly. I want to mount the filesystem and make the changes.


We must mount / in read-write mode. If /etc/fstab is correct, you can simply type:

 mount -n -o remount /

But if /etc/fstab is wrong (as it was in my case), you must give the device name and possibly the type, too: e.g.

 mount -n -o remount -t extX /dev/hdaX /

Where extX is your filesystem type and /dev/hdaX is partition you use for your root mount point. To see all your available partitions just type

ls /dev/[sh]d*

To list out all your partitions, type

 lvmdiskscan

0 comments:

Post a Comment