On a Linux system, I used the following command to mount a Windows Share folder:
mount.cifs -o user=xxxx,pass=xxxx '//host/folder' /mnt Above command finished without giving any errors or output at all. I could see files in /mnt, which means the mount was successful. Then I ran command mount, and the 1st line of the output says:
[mntent]: line 14 in /etc/mtab is bad And the share folder I just mounted doesn't appear in the output.
Then I checked the content of /etc/mtab and found that there are a whole lot of options for the just mounted share. like this:

While on another Linux Machine running the same OS(SLE 11SP3), I did the exact same thing(but using a different share on a different Windows machine), but the content in /etc/mtab is very simple, like this(and mount shows the mounted share correctly and doesn't say mtab is bad):
//server/folder /mnt cifs rw 0 0 So the question is, on the 1st machine:
1. why are there so many option for this windows share in /etc/mtab?
2. why does the mount command say "mtab is bad"?
mountis complaining because the blank in the folder name is making it miscount the fields on that line.unc=\\xxx\xxx. I definitely didn't specify such an option, no idea why it's there. In the 1st field of line 14 of mtab, the blank is replaced by\040./etc/fstabthat also mounts/mntor something under it?