I need to edit the uuid of my swap file... how to edit fstab file.. step by step please

Asked by Kev

I need to change a uuid foe my swap file... and need to edit the fstab file...
I tried gedit but says not having permission to do so. Could not save the file /media/disk/etc/fstab.
I am using live cd to beat the permission thing but did not work.
please step by step walk through...
if you want me to use terminal then step by step as well thanks

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu sudo Edit question
Assignee:
No assignee Edit question
Solved by:
Kev
Solved:
Last query:
Last reply:
Revision history for this message
Kev (kevvroxx) said :
#1

it;s ok i sorted it... found the hidden root terminal.. and now my problem is sorted

Revision history for this message
Alan Haggai Alavi (alanhaggai) said :
#2

You have to add your user to /etc/sudoers to use the sudo command. Else, su to root and edit the file. The latter is not a good method.

To add yourself to sudoers, do the following in a terminal:
su
visudo

To the end of the file, add this:
kev ALL=ALL

Save and exit the file.
exit
Now, you can use sudo to execute all commands as root.

For example: sudo gedit /etc/fstab