'mount: bad usage' when entering previous 'mount -t cifs -o .....' command

Previous with Leap 14.x on my client, I used to mount shared cifs on a older Novell OES 11.3 / SLES 11.4 as follows with root access:

mount -t cifs -o username=xxxxx,uid=1000,gid=users,password='yyyyyy' //oes_ip_adr/shared_cifs /local_mnt

After upgrade to Leap 15 (I believe), this command does not longer work and return only

mount: bad usage
Try 'mount --help' for more information.

Any idea how to solve this?

Thx Terje

On Tue, 14 May 2019 19:06:02 +0000, terjejh wrote:

> Previous with Leap 14.x on my client, I used to mount shared cifs on a
> older Novell OES 11.3 / SLES 11.4 as follows with root access:
>
> Code:
> --------------------
> mount -t cifs -o username=xxxxx,uid=1000,gid=users,password=‘yyyyyy’
> //oes_ip_adr/shared_cifs /local_mnt
> --------------------
>
>
> After upgrade to Leap 15 (I believe), this command does not longer work
> and return only
>
> Code:
> --------------------
> mount: bad usage
> Try ‘mount --help’ for more information.
> --------------------
>
>
> Any idea how to solve this?
>
> Thx Terje

I’d start by checking if the filesystem module for cifs is available -
IIRC, if the module isn’t loaded, ‘mount -t’ doesn’t understand the
parameter and fails with this message.


Jim Henderson
openSUSE Forums Administrator
Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C

It looks now that the message “mount: bad usage” only appears when I add the version parameter i.e (mount -t cifs -o vers=1.0 …) on the command line. The command line without version parameter that worked for previous openSUSE/Leap releases, doesn’t work so far for Leap 15. Not even the command prompt returns, and it looks like the command hang or wait until I quit with Ctrl-C.

cifs-utils looks to be installed but is probably not loaded(?):

zypper se -is cifs
Loading repository data...
Reading installed packages...

S  | Name       | Type    | Version         | Arch   | Repository               
---+------------+---------+-----------------+--------+--------------------------
i+ | cifs-utils | package | 6.8-lp150.2.3.1 | x86_64 | openSUSE-Leap-15.0-Update

lsmod | grep cifs
cifs                  794624  0
dns_resolver           16384  1 cifs
fscache                77824  1 cifs

cifs_mount failed w/return code = -512

dmesg | grep cifs
 1792.334433] FS-Cache: Netfs 'cifs' registered for caching
 1792.334464] Key type cifs.spnego registered
 1792.334467] Key type cifs.idmap registered
 1828.211951] CIFS VFS: cifs_mount failed w/return code = -512

Suggestions to continue here?

Terje

On Wed, 15 May 2019 08:36:03 +0000, terjejh wrote:

> It looks now that the message “mount: bad usage” only appears when I add
> the version parameter i.e (mount -t cifs -o vers=1.0 …) on the
> command line. The command line without version parameter that worked
> for previous openSUSE/Leap releases, doesn’t work so far for Leap 15.
> Not even the command prompt returns, and it looks like the command hang
> or wait until I quit with Ctrl-C.

Looks like the module is loaded from the other info you posted. The hang
forever bit sounds like it can’t connect to the server - what is the
share hosted on (ie, Windows, Linux with SAMBA, something else)?

Jim


Jim Henderson
openSUSE Forums Administrator
Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C

On 17-May-2019, 03:12 hendersj wrote:

Looks like the module is loaded from the other info you posted. The hang
forever bit sounds like it can’t connect to the server - what is the
share hosted on (ie, Windows, Linux with SAMBA, something else)?

As mentioned initially, the shared cifs is hosted on an older Novell Open Enterprise Server 11 SP3 (OES 11.3) based on SUSE Linux Enterprise Server SP4 (SLES 11.4). [FONT=arial]It is novell-cifs version 1.3.2-0.166.22 (x86_64). (There are also several novell-oes-samba packages version 3.6.3 installed on the server, though I don’t know if they are used).

This shared novell-cifs can still be mounted on a Windows 2008 terminal server (as client), while I think Win10 clients had to be set back to an older SMB version to get novell-cifs mounted.

Terje
[/FONT]

I forgot to update this as fixed:
It turned out the issue was caused by a typo and syntax error in the version parameter

mount -t cifs -o ver=1.0 ....

instead of

mount -t cifs -o vers=1.0 ....

Fixing this to the latter, mounting the cifs worked correctly.

Terje H.

Those often cause problems.

I’m glad you have it working.