How to edit /etc/fstab on a read only filesystem on linux repair mode

by Ras 19. January 2012 01:38

When linux is on a single user and repair model, as the filesystem is read only you cannot edit the files.

Here I am going to show you how to edit /etc/fstab when at Fedora “Repair filesystem” prompt.


You might get Read-Only error when you try to change the fstab file, to save it try wq! on vi :

Repair filesystem # mount -w -o remount /
Repair filesystem # vi /etc/fstab

Tags:

Linux

Comments (4) -

rajesh
rajesh India
7/29/2012 10:40:36 PM #

thanks friend .its should be very helpfull for our redhat exam

Reply

arman
arman United States
9/12/2012 8:43:44 PM #

Just wanted to thank you, you've helped a lot. I've been struggling with this issue for a while

Reply

Stevo
Stevo United States
3/27/2013 10:45:58 AM #

Thanks that worked perfectly..

Reply

AJ
AJ United States
4/12/2013 9:31:56 AM #

Thank you my friend! It helped alot!

Reply

Add comment

  Country flag

biuquote
  • Comment
  • Preview
Loading

About the author

Ras is a network/Security professional working on multiple areas with multiple certificates like CCNP, CCIP, CCSP, CCSA, CCSE, LPI, PM, IPv6, ..

Month List