1753928 Members
8858 Online
108810 Solutions
New Discussion юеВ

Re: Filesystem - SMBFS

 
sudhapage
Regular Advisor

Filesystem - SMBFS

Dear all,

Is there any way to mount windows folder(or)partition to unix.

Using samba we can mount our unix filesystem to windows, but we can mount windows filesystem to unix using samba? or anyother alternate way is there?

I have found Diskshare software, but before that I would like to confirm whether it'
possible without using that diskshare software?

I have to do this task in hpux server as well as solaris server.

Regards,
Sudhakaran.K
9 REPLIES 9
Dennis Handly
Acclaimed Contributor

Re: Filesystem - SMBFS

I think you also use samba:
1) smbclient for a ftp like interface
2) CIFS client using cifsmount to mount it
Luk Vandenbussche
Honored Contributor

Re: Filesystem - SMBFS

Wim Rombauts
Honored Contributor

Re: Filesystem - SMBFS

You can certainly do that with the CIFS-Client product. It is part of the Samba bundle, I think, but it is a separate product that can be installed separately.
Try "swlist -l product | grep -i cifs"

If you have CIFS-Client installed (and running !) you can use commands like cifsmount, cifslogin, ...
Court Campbell
Honored Contributor

Re: Filesystem - SMBFS

I usually just load cygwin on the windows servers. I am not a big fan of MS SFU.

http://www.csparks.com/CygwinNFS/index.xhtml

It has all the info for the install and the setup.
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
Court Campbell
Honored Contributor

Re: Filesystem - SMBFS

Sorry, I just realized that answer was off course. You can use cifsmount as suggested above.
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
Steven E. Protter
Exalted Contributor

Re: Filesystem - SMBFS

Shalom,

smbclient functions just like the one in Linux (same source code)

This will permit you to connect and test on windows shares. Its a lot like command line ftp and can be used in scripted procedures.

/usr/bin/cifsmount

is the way to handle mounting in HP-UX

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Gavin Clarke
Trusted Contributor

Re: Filesystem - SMBFS

I'm sure a search of the forums will provide lots of information.

Try these commands.

mount -t smbfs ///

/usr/bin/cifsmount "//winserver/winshare" /mountpoint -U winuser -P winpassword -I winIP (or hostname)

Also have a look in /opt/samba, I'm under the impression that cifs (HP's samba) is already there from 11.11 upwards, although I may well be wrong.
Steven E. Protter
Exalted Contributor

Re: Filesystem - SMBFS

Shalom,

Realized my incomplete answer

There is not anything native in HP-UX to permit mounting of windows(samba/cifs) shares. Additional software must be installed. Its now available at install time on the Core OS DVD.

There are security problems however and the lates CIFS/9000 client and server(optional to this question) should be installed to connect to or mount windows shares.

http://software.hp.com
search for CIFS/9000

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Gavin Clarke
Trusted Contributor

Re: Filesystem - SMBFS

Thanks SEP, install time was a long time ago.