I know this may sound too obvious, but I'm going to ask anyway: Are you sure you have an empty fstab file? Did you try to examine it this way--?
The reason I ask is that I've many times gone to edit something and found an "empty" or "new" file staring me in the face--because I didn't specify the full path to the file, OR I failed to be in the file's directory when I opened the editor. So I figure other people have made the same mistake...
Otherwise, if it really is empty I'd be concerned about why it is. It's easy enough to write an fstab file if you know what all your partitions are and where you normally mount them. You can get the names of the devices and their partitions and file types by issuing
but you're on your own when it comes to the rest of the information needed in the file.
The pass_no field is the last field in each entry of the fstab file. A typical entry looks like:
Code:
/dev/hda1 / ext3 defaults,errors=remount-ro 0 1
The "1" in this field is explained in the manual entry for fstab:
Code:
The sixth field, (fs_passno), is used by the fsck(8) program to deter-
mine the order in which filesystem checks are done at reboot time. The
root filesystem should be specified with a fs_passno of 1, and other
filesystems should have a fs_passno of 2. Filesystems within a drive
will be checked sequentially, but filesystems on different drives will
be checked at the same time to utilize parallelism available in the
hardware. If the sixth field is not present or zero, a value of zero
is returned and fsck will assume that the filesystem does not need to
be checked.