Mounting a windows drive/folder in Unix
Mounting a windows drive/folder in Unix
Author
Discussion

_Dan_

Original Poster:

2,392 posts

310 months

Thursday 24th May 2007
quotequote all
I need to mount a windows share on a Unix machine. Can anyone point me in the right direction? Been scratching my head at work for a couple of days now! The Unix box is running Solaris 8 and it has Samba 3 installed on it.

Any comments greatly appreciated.

Tonsko

6,299 posts

246 months

Thursday 24th May 2007
quotequote all
_Dan_ said:
I need to mount a windows share on a Unix machine. Can anyone point me in the right direction? Been scratching my head at work for a couple of days now! The Unix box is running Solaris 8 and it has Samba 3 installed on it.

Any comments greatly appreciated.
Not used SMB for a while, but I remember the biggest headache was witht eh configuration file, and having to hard code the password into the samba config file, making sure to tell it FAT32 etc. If you windows machine is NTFS, i think you may have problems.

As I say, that is a few years out of date now, so might not be relevant smile

cottonfoo

6,053 posts

241 months

Thursday 24th May 2007
quotequote all
I might be a bit out of date on the Solaris front, but I don't think you can do it (at least on Sol8) with smbmount because there aren't any kernel drivers available that I'm aware of.

You can still use smbclient to swap files between the two, and smbsh might also help. There's something called Sharity too, but I've never used it.

Steve.

Zumbruk

7,848 posts

291 months

Thursday 24th May 2007
quotequote all
Tonsko said:
_Dan_ said:
I need to mount a windows share on a Unix machine. Can anyone point me in the right direction? Been scratching my head at work for a couple of days now! The Unix box is running Solaris 8 and it has Samba 3 installed on it.

Any comments greatly appreciated.
Not used SMB for a while, but I remember the biggest headache was witht eh configuration file, and having to hard code the password into the samba config file, making sure to tell it FAT32 etc. If you windows machine is NTFS, i think you may have problems.

As I say, that is a few years out of date now, so might not be relevant smile
It isn't. SAMBA servers can join domains (indeed, they can even act as Domain Controllers) these days.

To the OP; You can't. There is no smbmount in Solaris up to Sol10. (Assuming that what you want to do is to access a "share" (spit) that is hosted on a Windows server from a Solaris box. (smbfs may be in Sol11 or OpenSolaris.)

You can either use smbclient to copy files back and forth, or install SAMBA on the Solaris machine and have the Windows machine mount a "share" (spit) on the Solaris host, or install NFS on the PC and have the Unix server mount that instead.

_Dan_

Original Poster:

2,392 posts

310 months

Thursday 24th May 2007
quotequote all
Ok, made a little progress, although I maybe barking up the wrong tree.

I've downloaded and installed NFS server (part of the Windows services for Unix package from MS) and am trying to mount the drive that way. The mount seems to work fine but I get...

NFS access failed for server mycomputername: error 7 (RPC: Authentication error)

or if I turn on 'allow anonymous access' in the NFS sharing tab on the windows box then try to navigate to the mount point I get 'permission denied'

Think it has something to do with the 'anonymous UID' or 'GID' but don't know enough about it!

Cheers for the comments so far all.

malman

2,258 posts

290 months

Thursday 24th May 2007
quotequote all
RPC error 7

you need to map a windows username / password to the unix username UID/GID to get rid of the error. Theres a name mapping service somewhere on the windows NFS stuff

ThePassenger

6,962 posts

266 months

Thursday 24th May 2007
quotequote all
You want to mount a SMB file system on a *nix box?

Not ofey with the differences of Solaris but...

man smbmount should do ya.

or if smbfs is installed.

mount -t smbfs \\<win>\<share> /<mount>/<point> -o username=<windows users>,password=<windows password> should work off the top of my head and if it doesn't it'll bitch and moan about what the correct CL parameters are biggrin


NFS on Windows is a bad move, full of oddbod mojo and very embraced and extended protocols (or very old ones... I think MS slapped NFS v2 in the mix whereas most boxes are looking for NFS v3, but I digress).


Zumbruk

7,848 posts

291 months

Thursday 24th May 2007
quotequote all
ThePassenger said:
You want to mount a SMB file system on a *nix box?

Not ofey with the differences of Solaris but...

man smbmount should do ya.
Like I already said, no such thing.

zumbruk{~}: man smbmount
No manual entry for smbmount.
zumbruk{~}: uname -a
SunOS bactrian 5.10 Generic_118822-30 sun4u sparc SUNW,Ultra-60



cottonfoo

6,053 posts

241 months

Thursday 24th May 2007
quotequote all
ThePassenger said:
Not ofey with the differences of Solaris but...
The problem is that there's no support for smbfs on that version of Solaris.

ThePassenger

6,962 posts

266 months

Friday 25th May 2007
quotequote all
cottonfoo said:
ThePassenger said:
Not ofey with the differences of Solaris but...
The problem is that there's no support for smbfs on that version of Solaris.
And is missing several of the Linux utils (smbmount, smbmnt)... do you have smbget on the machine? Not a wonderfully practice solution if you looking to hook the two machines up permanently or doing large pulls..

Of course, rather than pulling from the Windows machine you could always push from it... set up a quickie share level, guest ok area and splortch the data you want from the Windows machine.

Or

man smbsh ... although that looks kinda like smbget from first squint.


_Dan_

Original Poster:

2,392 posts

310 months

Friday 25th May 2007
quotequote all
ok, managed it in the end. I needed to install windows services for unix (specifically nfs server and user mapping) on the windows pc, then use the username mapping to join my windows account to the unix account, which involved me copying the passwd and groups file from the unix box to the windows box and pointing the username mapping to them. Then mounting the windows pc as an nfs drive on the unix box. Now have my windows c drive mounted as a folder on the unix box. Took two days but result in the end!

Cheers for all your input chaps.

Dan smile