edit the etc/fstab

Discussion in 'Installation/Configuration' started by StFuoR, Dec 1, 2013.

  1. StFuoR

    StFuoR New Member

    Hi all
    i make an installation of quota "yum install quota"
    i made a mistake and centos 6.4 don't start. i know the problem but i cant
    vi /etc/fstab because is on read mode only.
    how i can change the file so i can edit from the console ?
    i try change it and i give the :wq even with ! to overwrite but with no luck.

    New user here as you see is my first post, also its my first attempt ever to install centos in a pc !!! :)

    any help will do :)

  2. StFuoR

    StFuoR New Member


    i find the solution in here somewhere i needed to mount -n -o remount,rw / to make the change i need in the /etc/fstab

    ty again :)
  3. m.xander

    m.xander New Member

    Hi StFuoR,
    I've had a similar experience. You'll need to boot into your server in recovery mode to get write access. Then you can vi /etc/fstab to correct typos or bad entries.
  4. StFuoR

    StFuoR New Member

    Like i said i dint need to reboot in any rescusce disk etc. i just mount -n -o remount,rw / and i was able to edit the /etc/fstab file without a problem.:cool:

Share This Page