This service will be undergoing maintenance at 20:00 UTC, 2017-04-03. It is expected to last about 30 minutes
Bug 49 - Incorrect (?) error warnings
Incorrect (?) error warnings
Status: CLOSED WORKSFORME
Product: Red Hat Linux
Classification: Retired
Component: mount (Show other bugs)
5.2
i386 Linux
low Severity medium
: ---
: ---
Assigned To: Cristian Gafton
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 1998-11-11 20:55 EST by apeacock
Modified: 2008-05-01 11:37 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 1998-11-20 07:10:52 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description apeacock 1998-11-11 20:55:22 EST
[root@monkey alen]# mount -a
[mntent]: line 0 in /etc/fstab is bad
[mntent]: line 0 in /etc/fstab is bad

Likewise, this error appears about 10 times during boot up,
though, as far as I can tell, everything mounts.

A search on DejaNews revealed the same problem on a debian
mailing list, with the suggested solution of adding a
newline (\n) to the last line in /etc/fstab.  This did not
remedy the problem for me.
Comment 1 Preston Brown 1998-11-16 09:26:59 EST
Please show us the contents of your fstab file.
Comment 2 David Lawrence 1998-11-17 13:43:59 EST
/dev/hda3         /                  ext2    defaults 1 1
/dev/hda1         /dos/c  vfat       exec,dev,suid,rw,umask=000 0 0
/dev/hdc1         /dos/d  vfat       exec,dev,suid,rw,umask=000 0 0
/dev/hdc5         /dos/f  vfat       exec,dev,suid,rw,umask=000 0 0
/dev/cdrom        /mnt/cdrom         iso9660 user,noauto,ro #0 0
/dev/fd0          /mnt/floppy3.5     ext2    user,noauto #0 0
/dev/fd1          /mnt/floppy5.25    ext2    user,noauto
/dev/hdc3         /data              ext2    defaults 1 2
/dev/hdc4         /usr               ext2    defaults 1 3
/dev/hdc2         none               ignore  0 0 0
none              /proc              proc    defaults
/dev/hda2         none               swap    sw
Comment 3 David Lawrence 1998-11-17 13:45:59 EST
Op.  I think I just found the problem.  mount must not be parsing the
file for comments correctly anymore.  Hmm, that sounds like a
relatively
easy fix in the source code...
  For know, here is my solution.  The lines that were:

-----------------
/dev/cdrom        /mnt/cdrom         iso9660 user,noauto,ro # 0 0
/dev/fd0          /mnt/floppy3.5     ext2    user,noauto # 0 0
-----------------

  become:

-----------------
/dev/cdrom        /mnt/cdrom         iso9660 user,noauto,ro
/dev/fd0          /mnt/floppy3.5     ext2    user,noauto
-----------------

And my warnings disappear.
Comment 4 Preston Brown 1998-11-20 07:03:59 EST
assigned to Cristian
Comment 5 Cristian Gafton 1998-11-20 07:10:59 EST
There is also a line that has three zeros at the end, and that is an
invalid line too.
The parser in the new mount is far from perfect; however, this is what
should be expected when the fstab is invalid.

Note You need to log in before you can comment on or make changes to this bug.