Whither smbmount?

openSuse v11.1

What has replaced “smbmount”?

I have been slogging through the samba installation learning how to access resources on a remote server. I went to mount a drive with smbmount only to find that the application does not exist in the current installation.

~> smbclient --version
Version 3.2.7-11.3.2-2154-SUSE-CODE11

On Tue August 18 2009 11:06 pm, jimoe666 wrote:

>
> openSuse v11.1
>
> What has replaced “smbmount”?
>
> I have been slogging through the samba installation learning how to
> access resources on a remote server. I went to mount a drive with
> smbmount only to find that the application does not exist in the current
> installation.
>
> ~> smbclient --version
> Version 3.2.7-11.3.2-2154-SUSE-CODE11
>
>
jimoe66;
try:
mount.cifs

see: man mount.cifs for the details.

P. V.
“We’re all in this together, I’m pulling for you.” Red Green

>try:
>mount.cifs

…/mount.cifs …
mount error(112): Host is down

The server is an old os/2 system. It probably does not support CIFS. smbclient has no problem accessing the server.

What is an alternative to mount.cifs or smbmount that would mount the resource?

openSUSE v11.1 will mount using cifs:

mount -t cifs -o username=abc,password=xyz //192.168.44.100/share /path_to/mount

FFI: Samba: HowTo Mount a CIFS Network Share [AKA Map Network Drive] in openSUSE 10 & 11 plus FAQs

Filling with the locally appropriate data:

mount -t cifs -o username=abc,password=xyz //192.168.44.100/share /path_to/mount

yields:
mount error(112): Host is down

Can you browse to the share from this computer using Nautilus or Konqueror?
What do you get when you run this command: smbtree -N ?

Can you browse to the share from this computer using Nautilus or Konqueror?

I do not know what you are asking. Using the “My Computer” link I can view the “Network Services” which has a pseudo-protocol of “remote:/”. I can then list all of the servers which has the “smb://” protocol. From there I can select and access a share on the target server, <sma-server1>.

I can list the shares on the server using <smbclient -L //sma-server1>, and access a share using <smbclient //sma-server1/pub-data -A …>.

What do you get when you run this command: smbtree -N?

sma-server1 is the host I am trying access.

~> smbtree -N
WORKGROUP
SOHNEN-MOE
    \\SMASTN1
        \\SMASTN1\ADMIN$                Remote Admin
        \\SMASTN1\IPC$                  Remote IPC
    \\SMA-STATION2
    \\SMA-SERVER1
anonymous failed session setup with NT_STATUS_ACCESS_DENIED

What kind of server is sma-server1

What access / authorisation is required there?

Have you installed cifs (probably that’s a “yes”)?

What kind of server is sma-server1?

os/2 server v4.52 (MCP)

What access / authorisation is required there?

Username and Password.

Have you installed cifs (probably that’s a “yes”)?

Yes. Unlike smbfs it came as part of the kernel.

Have you installed cifs-mount?

Have you installed cifs-mount?

Yes, the cifs-mount is installed.

I have no further ideas. Hopefully your duplicate thread will yield better results.

The following command mounts the remote shares:

mount -t cifs //server-name/pub-data /t-drv -o username=ABC,password=XYZ,sec=lanman

“sec=lanman” is the required option.

As I said in the other thread: bravo!

I’ve added this to my tutorial:

FAQ: Attaching to legacy servers (OS/2, Windows 98/Me: I have not tried these. I am just reporting them for you. Older servers require a few extra options in the mount strings. You appear to need the security option sec=lanman in mounts for OS/2 and Windows 98/ME servers. And it seems you need the server-name option as well for 98/ME servers (servern=netbios_name)
Does that bout sum it up, or is there more?

Does that 'bout sum it up, or is there more?

Yes, there is more. Both the “servern” and “sec” options are required. I had dropped the servern option since it seemed to work without it, but after a reboot is was required again. Note that the servern value must be capitalized. The “nocase” option makes navigating a case-insensitive filesystem like in os/2 much easier.

Here is a complete /etc/fstab entry (text is no doubt wrapped):

//sma-server1/pub-data /t-drv cifs credentials=/home/user/.smb/.smbpw,uid=uuserid,gid=guserid,sec=lanman,file_mode=0664,dir_mode=0775,servern=SMA-SERVER1,nocase   
 0 0

Many thanks. I have added the information into the FAQ list in this tutorial:
Samba: HowTo Mount a CIFS Network Share [AKA Map Network Drive] in openSUSE 10 & 11 plus FAQs