A look at the Toshiba Portégé R600 with 512GB SSD
July 2, 2009 – | No Comment

There aren’t many better ways of gaining recognition for all the effort you have put in to be greener than from an organisation like Greenpeace. The Toshiba Portégé R600 won its category in the Greenpeace …

Read the full story »
Downloads

Things to download free, from posters and shortcut guides to white-papers and checklists

How To & Tutorials

These handy problem solving tips and advice should save you some time

Industry News

News and commentary from news in the technology industry

Software

Explore recommended software applications from around the Internet

Technology Terms

We regularly take a technology related term and try to make sense of it in the real world.

Home » Blogging

Mounting a Windows Share under AIX using CIFS

Submitted by jasonslater on July 3, 2008 – 6 Comments

aixwin-jasonslater There are several options for transferring files between AIX and Windows, including NFS, SAMBA, SCP and FTP – all have there advantages and disadvantages but a recent connection method that we have been using is to mount a Windows Share as a CIFS (Common Internet File System) VFS (Virtual File System).

Trying to mount a Windows 2003 Share on an AIX Server (v5.3) using the CIFS virtual file system can be a bit tricky but extremely useful once implemented. Initially CIFS support may require installing unless it is already installed – you can check this by looking in the /sbin/helpers folder for a file mount_cifs

#cd /sbin/helpers
#ls -l

total 488
drwxrwxr-x   2 root     system         1024 Dec 05 2004  jfs2
-r-xr-xr-x   1 root     system        17342 Jul 02 18:20 mount_cifs
-r-x——   1 root     system         3576 Jul 02 18:20 mount_smbfs.

If it is not installed then install it from the Base Operating System CD #1

#installp -ac -d /dev/cd0 bos.cifs_fs

Upon completion a reboot may be required. Ensure the nsmbo device is available by running the lsdev command:

#lsdev

mem0       Available
nsmb0      Available
paud0      Available 01-Q2

Create a username and password in the Windows 2003 domain for handling the share and set the necessary permissions on the share and folder (also consider the use of a $ prefix at the end of the share to hide it). You also need to create a mount point on the AIX machine over which to mount the share (you can just create an empty folder, e.g. mkdir /foldername)

You can then attempt to mount the share over over the mount point.

#mount -v cifs -n node/username/password [-o options] /windowsshare /directory

When I initially ran this I received the following error:

There was an error connecting the share or the server.
Make sure the lsdev command shows that device nsmb0 is in
the Available state.  Also make sure that the share name,
user name and password are accurate.

Checking the Security Log on to Windows Server showed the following event had been raised:

Event Type:    Failure Audit
Event Source:    Security
Event Category:    Logon/Logoff
Event ID:    529
User:        NT AUTHORITY\SYSTEM
Computer:    computername
Logon Failure:
     Reason:        Unknown user name or bad password
     User Name:    username
     Domain:        NODOMAIN
     Logon Process:    NtLmSsp
     Authentication Package:    NTLM
     Workstation Name:    \\workstation
     Source Network Address:    xxx.xxx.xxx.xxx

As I was using a domain the command seemed to require the fmode parameter  and the wrkgrp parameter, so running this command fixed it:

#mount -v cifs -n serverip/username/password -o wrkgrp=domain,fmode=755
/sharename /localmountpoint

More details of the mount command can be found in the IBM Command Reference: mount Command

Share and Enjoy:
  • Digg
  • del.icio.us
  • E-mail this story to a friend!
  • StumbleUpon
  • Technorati
  • TwitThis

6 Comments »

  • Marx says:

    Thanks for your note, it helps a lot.

    This parameter was usefull for me :
    -o wrkgrp=test.test,fmode=755,uid=200,gid=201

  • paul says:

    This was entirely awesome – thanks!!! I was using SCP prior to this and now that I have CIFS installed and understand how to use it, you have just saved me a TON of time.

  • alex says:

    thank you. this helped a lot

  • Munna says:

    Hey Dude,

    Thts really owesome…. :-) This article has saved my lots of days…. :-) Is there any way we can make this mount permanent,,,I mean even if we reboot the AIX the mount should be there, it should not be removed after reboot.

    Keep it up for this kind of good articles… :-)

  • simon says:

    great post. thanks so much.

  • Narendra Babu Swarna says:

    For mounting Windows shares in AIX. We can use mkcifsmnt, chcifsmnt and rm cifsmnt commands.

    Check these commands are available in AIX box(If not install complete bos.cifs file system.

    these commands also adding the entries in /etc/filesystems file.

    Note: At present these commands are available in AIX 6.. and if you want them in AIX5.3, copy these files and supported files from AIX 6. :-) . Surely they will work

Leave a comment!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

This is a Gravatar-enabled weblog. To get your own globally-recognized-avatar, please register at Gravatar.