Mounting a windows drive/folder in Unix
Discussion
_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.Any comments greatly appreciated.
As I say, that is a few years out of date now, so might not be relevant

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.
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.
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.Any comments greatly appreciated.
As I say, that is a few years out of date now, so might not be relevant

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.
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.
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.
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
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).
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

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).
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.Not ofey with the differences of Solaris but...
man smbmount should do ya.
zumbruk{~}: man smbmount
No manual entry for smbmount.
zumbruk{~}: uname -a
SunOS bactrian 5.10 Generic_118822-30 sun4u sparc SUNW,Ultra-60
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.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.
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
Cheers for all your input chaps.
Dan

Gassing Station | Computers, Gadgets & Stuff | Top of Page | What's New | My Stuff


