Find the answer to your Linux question:
Results 1 to 6 of 6
this is going to seem like a stupid question, but how do you save the fstab file when editing with vi /etc/fstab...
  1. #1
    Just Joined!
    Join Date
    Mar 2007
    Posts
    4

    how do you save fstab file?

    this is going to seem like a stupid question, but how do you save the fstab file when editing with vi /etc/fstab

  2. #2
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    you must be logged in as root OR gain root privileges in terminal/konsole using sudo or su.
    which distro are you using?
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  3. #3
    Just Joined!
    Join Date
    Mar 2007
    Posts
    4
    I am using Fedora Core 5.

    I inserted a bad line in fstab and now the system wont boot up..
    It asks for root password to do maintenance, but the fstab file displays as read-only.

    Help!

  4. #4
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    boot up from Installation CD/DVD and execute 'linux rescue' at boot: prompt. this will drop you at shell session. execute this
    Code:
    chroot /mnt/sysimage
    vi /etc/fstab
    edit fstab file and reboot.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  5. #5
    Just Joined!
    Join Date
    Mar 2007
    Posts
    4
    how do you save it though?

  6. #6
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    press i, edit file. press full colon ( : ). x and press 'Enter' key to save file.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...