Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 857 - /etc/fstab parsing error. Not loading all filesystems
Summary: /etc/fstab parsing error. Not loading all filesystems
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: initscripts
Version: 5.2
Hardware: i386
OS: Linux
Target Milestone: ---
Assignee: David Lawrence
QA Contact:
Depends On:
TreeView+ depends on / blocked
Reported: 1999-01-17 22:28 UTC by stewart
Modified: 2008-05-01 15:37 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 1999-01-17 23:09:23 UTC

Attachments (Terms of Use)

Description stewart 1999-01-17 22:28:06 UTC
Got around to upgrading to 5.2 today.  Was wondering why it
was not mounting my nfs filesystems...

Found I had:
	/dev/hda1       none                  ignore  0 0 0
in /etc/fstab.  Anything after this line would not mount.
/dev/hda1 is an extended partition.  Forget where this line
originated from, I think an old install inserted it...

If I tried (which was after the above line)
	mount /home/user3
it would say that it was not found in /etc/fstab or

Deleting the above line from /etc/fstab, appears to have
fixed the problem.

Would it not be better for /etc/rc.d/init.d/nfsfs and
anything else, that parses /etc/fstab to ignore lines that
it does not understand, instead of quiting with no

Below is my old /etc/fstab file:

# /etc/fstab
# <device>      <mountpoint>   <filesystemtype> <options>
<dump> <fsckorder>

/dev/hda5       /                       ext2    defaults 1 1
/dev/hda6       /var                    ext2    defaults 1 2
/dev/hda7       none                    swap    sw
/dev/hda8       /usr                    ext2    defaults 1 2
/dev/hda2       /home/user1             ext2    defaults 1 2
/dev/hdc1       /mirrors                ext2    defaults 1 2
/dev/hda3       /mirrors/netwinder      ext2    defaults 1 2
/dev/hdc2       /mirrors/other          ext2    defaults 1 2

none            /proc                   proc    defaults
/dev/hda1       none                    ignore  0 0 0

/dev/fd0        /mnt/floppy            ext2    noauto    0 0
/dev/fd0        /mnt/msdos             msdos   noauto    0 0
/dev/hdb        /mnt/cdrom             iso9660 ro        1 2
/dev/sbpcd0     /mnt/cdrom1            iso9660 noauto,ro 0 0
/dev/sbpcd1     /mnt/cdrom2            iso9660 noauto,ro 0
0134.117.76.10:/home/user3       /home/user3     nfs
nexus:/home/ftp         /home/ftp-nexus nfs
nexus:/home/httpd       /home/httpd-nexus   nfs
nexus:/var/spool/mail   /var/spool/mail nfs

spoo:/home/user2        /home/user2     nfs

zhadum:/mirrors/versioned-winder   /home/ftp/pub/winder
nfs     rw,soft,rsize=8192,wsize=8192

Comment 1 Jeff Johnson 1999-01-17 23:09:59 UTC
This looks more like a syntax error in /etc/fstab than a bug to me.
Ignoring lines that are not understood is dangerous -- /etc/fstab
has well defined syntax. Possibly mount should complain if it
doesn't understand a line. This is difficult to implement correctly
when mount is a wrapper passing opaque options to back-end tasks.

Reopen if you have strong opinions otherwise.

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