Tech Support > Operating Systems > Linux / Variants > Format of /etc/fstab
Format of /etc/fstab
Posted by Doug Laidlaw on July 17th, 2003


Are the two digits at the end of a line in /etc/fstab separate fields? If
so, they should be separated by a Tab, but I don't think that I have ever
seen them that way. In Mandrake's /etc/fstab, all fields seem to be
separated by spaces, and this is OK until a line is edited, when that line
needs to be changed to Tab.

Doug.
--
Registered Linux user No. 277548.
Linux: in a world without fences, who needs Gates?

Posted by MM on July 17th, 2003


Doug Laidlaw wrote:
From the first paragraph of the fstab manpage:

"Each filesystem is described on a separate line; fields on each
line are separated by tabs or spaces"

MM

Posted by Floyd Davidson on July 17th, 2003


Doug Laidlaw <laidlaws@myaccess.com.au> wrote:
Why?

Have you tried reading the man page?

--
Floyd L. Davidson <http://web.newsguy.com/floyd_davidson>
Ukpeagvik (Barrow, Alaska) floyd@barrow.com

Posted by Chris F.A. Johnson on July 17th, 2003


On Thu, 17 Jul 2003 at 00:26 GMT, Doug Laidlaw wrote:

Yes.

man fstab:

DESCRIPTION
The file fstab contains descriptive information about the
various file systems. fstab is only read by programs, and not
written; it is the duty of the system administrator to properly
create and maintain this file. Each filesystem is described on
a separate line; fields on each line are separated by tabs or
spaces.


This is from a Mandrake system, but it's the same on all I've
looked at; on SunoS 4.1 it doesn't say so explicitly, but the
examples in the man page are space-separated.

--
Chris F.A. Johnson http://cfaj.freeshell.org
================================================== =================
My code (if any) in this post is copyright 2003, Chris F.A. Johnson
and may be copied under the terms of the GNU General Public License

Posted by ynotssor on July 17th, 2003


"Doug Laidlaw" <laidlaws@myaccess.com.au> wrote in message
news:a37hu-ai3.ln1@dougshost.mydomain.org.au

Any ol' whitespace will do.

tony

--
use hotmail com for any email replies


-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 80,000 Newsgroups - 16 Different Servers! =-----

Posted by Doug Laidlaw on July 17th, 2003


MM wrote:

spaces until I edited it. Then I had to change the spaces in the altered
line to tabs.

Doug.

--
Registered Linux user No. 277548.
Linux: in a world without fences, who needs Gates?

Posted by Floyd Davidson on July 17th, 2003


Doug Laidlaw <laidlaws@myaccess.com.au> wrote:
I doubt that Mandrake does anything to change the formatting of
fstab. Post your fstab file so others can see if it is correct.
Also describe *exactly* what did or did not happen using spaces.

Also, please show the output of "mount -V", which will provide the
version number of the mount program you have.

--
Floyd L. Davidson <http://web.newsguy.com/floyd_davidson>
Ukpeagvik (Barrow, Alaska) floyd@barrow.com


Similar Posts