Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    71
    Likes Received:
    1
    Trophy Points:
    58
    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:
    11
    Trophy Points:
    168
    Location:
    Finland
    cPanel Access Level:
    Root Administrator
    Why can't you edit?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. webstuff

    webstuff Well-Known Member

    Joined:
    Jul 19, 2011
    Messages:
    71
    Likes Received:
    1
    Trophy Points:
    58
    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

    Joined:
    Feb 25, 2010
    Messages:
    1,835
    Likes Received:
    21
    Trophy Points:
    143
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice