Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 11-02-2013, 11:06 AM   #1
LQ Newbie
Registered: May 2010
Location: Florida
Distribution: Linux Mint 15 (Mate)
Posts: 5

Rep: Reputation: 0
/etc/fstab entry confusion

I have read 5 other posts regarding /etc/fstab entries which all list similar entries to the one suggested to me. I can't figure out HOW to get into it or where to put the entry within that file.

I can cd into /etc but can go no further. If fstab is in the /etc dir, but fstab isn't a dir then it must be a file? If so, it should open, no?

"I picked a bad week to stop drinking coffee."
Old 11-02-2013, 11:36 AM   #2
Registered: Sep 2012
Distribution: Slackware-14
Posts: 118

Rep: Reputation: Disabled
I can't figure out HOW to get into it or where to put the entry within that file.
It's a text file which you can edit using a text editor such as nano, vi, vim, gedit, kate etc. On command line you can do:
$ nano /etc/fstab
Normally you don't have to edit /etc/fstab as it's done automatically during installation. Using this file kernel mounts filesystem at different mount points mentioned in each line of the file.

Entries or fields in '/etc/fstab' file are separated by spaces or tabs. You can read up on 'fstab' here or just type 'man fstab' on command line.

You can find out if a file is a text/ASCII file or not, by checking it with 'file':
$ file /etc/fstab
Good introduction to Linux.

Edit: '/etc/fstab' can only be changed by 'root' user. When you ask question please mention which distro you are using, it just helps to give an answer that best suits you.

Last edited by GNU/Linux; 11-02-2013 at 11:40 AM.
1 members found this post helpful.
Old 11-02-2013, 12:21 PM   #3
Registered: Sep 2009
Location: Oklahoma
Distribution: Debian, CentOS, windows 7/10
Posts: 879

Rep: Reputation: 113Reputation: 113
As said above using nano (command line text edtior) is the easiest to learn from new linux users. I personally recommend vim editor, but is more complicated.

When editing fstab, besure you have a live disk availible so you can mount and correct fstab if for some reason you make a mistake and can no longer boot.

Also if your using a GUI based Desktop, you can use things such as gedit.
1 members found this post helpful.
Old 11-03-2013, 04:49 PM   #4
LQ Newbie
Registered: May 2010
Location: Florida
Distribution: Linux Mint 15 (Mate)
Posts: 5

Original Poster
Rep: Reputation: 0
Thank you so much for your assistance. The links are very informative, I appreciate your kindness (sorry I didn't mention the distro)

I have Linux Mint 15. When I enabled the 1T drive, I didn't change /etc/fstab before I upgraded. I get "low memory" error messages with the system installed on the 16GB drive and am trying (rather clumsily) to fix the problem.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] fstab entry hasancbe123 Linux - Newbie 4 05-07-2012 06:51 PM
fstab, mtab and KDiskFree confusion charmanr SUSE / openSUSE 2 11-07-2006 09:38 AM
entry into /etc/fstab wetnose23 Slackware 2 01-07-2006 04:30 PM
fstab confusion sniff Fedora 4 10-16-2005 11:19 AM
/etc/fstab entry ryedunn Linux - Newbie 1 01-17-2005 01:45 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:54 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration