The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

fstab messed up how do I edit it?

Discussion in 'General Discussion' started by webstuff, Jan 16, 2012.

  1. webstuff

    webstuff Well-Known Member

    Joined:
    Jul 19, 2011
    Messages:
    62
    Likes Received:
    0
    Trophy Points:
    6
    When i go into start up it says and error occurred during the file system check dropping into shell the system will reboot when you leave shell... Long as im in shell I can't edit...


    I need to login as root so I can edit /etc/fstab

    How do I get out of shell?
     
  2. quietFinn

    quietFinn Well-Known Member

    Joined:
    Feb 4, 2006
    Messages:
    998
    Likes Received:
    10
    Trophy Points:
    18
    Location:
    Finland
    cPanel Access Level:
    Root Administrator
    Why can't you edit?
     
  3. webstuff

    webstuff Well-Known Member

    Joined:
    Jul 19, 2011
    Messages:
    62
    Likes Received:
    0
    Trophy Points:
    6
    i figured it out.. What i had did was mounted my backup incorrectly. I edited/etc/fstab incorrectly.. but never rebooted the computer untill I got more static ips which was today... so when i went to restart it.. it came up with that maintance thing.. So I put in the dvd and went in typed linux rescue... Went into shell root mode.... Typed in chroot /mnt/sysimage

    then i could edit /etc/fstab correctly... :)

    heres some info i used -

    26.2. Booting into Rescue Mode
    How to edit /etc/fstab when root was mounted as read only - The UNIX and Linux Forums

    30 other sites that helped me piece it all together not included :)

    MARK IT SOLVED!!! :)
     
  4. cPanelJared

    cPanelJared Technical Analyst
    Staff Member

    Joined:
    Feb 25, 2010
    Messages:
    1,842
    Likes Received:
    18
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Thank you for sharing the solution that you found so that others may benefit in the future.
     
Loading...

Share This Page