Results 1 to 7 of 7
how do I save an amendment that I have made to the /etc/fstab file?...
- 03-02-2010 #1Just Joined!
- Join Date
- Mar 2010
- Posts
- 4
how do I save an amendment that I have made to the /etc/fstab file?
how do I save an amendment that I have made to the /etc/fstab file?
- 03-02-2010 #2
Have you edited fstab using vi editor? If you then use : x command in command mode to save and exit the file.
For more on vi editor : -- run command,
vimtutor- Lakshmipathi.G
-------------------
FOSS India Award winning ext3fs Undelete tool and tutorials www.giis.co.in
First they criticize you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
-------------------
- 03-02-2010 #3Just Joined!
- Join Date
- Mar 2010
- Posts
- 4
- 03-02-2010 #4Just Joined!
- Join Date
- Mar 2010
- Posts
- 4
- 03-02-2010 #5
# indicates comments
$ indicate commands run on shell
For example,
I will open a file called file.txt
$vi file.txt
#Now you are into vi editor -
#press "i" - you can see it saying something like insert mode is on.
# then type somthing into it
#now save and quit press "Esc" key and press : and press x and Enter
#it should get back to shell
$cat file.txt
#should display the file content.
There is an easy tutor program called "vimtutor" try it
I like vimtutor 
Remember you need to have root access to edit fstab, always take a backup before editing important system files like fstab.- Lakshmipathi.G
-------------------
FOSS India Award winning ext3fs Undelete tool and tutorials www.giis.co.in
First they criticize you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
-------------------
- 03-02-2010 #6
You must have root privileges to save changes in /etc/fstab.
Execute su - command to gain root privileges. You can use nano editor to edit file.
Press Ctrl+X, Y and hit Enter key to save file.Code:su - nano /etc/fstab
It is amazing what you can accomplish if you do not care who gets the credit.
New Users: Read This First
- 03-04-2010 #7Linux User
- Join Date
- Sep 2008
- Location
- UK
- Posts
- 353
Everything in /etc is only editable by a root account. To make changes you have to edit it as root user.
So as devils casper says, open a terminal and type su and give the root password.
Then type nano (or gedit or any other text editor of choice)/etc/fstab.
You will find that you can also open nautilus as a normal user and drag and drop the file onto a gedit window if this makes it easier for you..


Reply With Quote

