Link to home
Start Free TrialLog in
Avatar of arunm
arunm

asked on

Mounting NT disks on a UNIX server

Can I have some suggestions to the easiest method of mounting a number of pcs running NT on to a unix server running solaris 2.5.1. This is required to enable the pcs to be regularly backed up. I have attempted to use Samba, but the "smbmount" command, as far as I am aware, does not exist for this version of solaris. A freeware solution would be preferable, but not essential. I would also prefer the pc disks to behave as any other mounted disk.
Avatar of ahoffmann
ahoffmann
Flag of Germany image

If you're looking for a cheap solution, use smbclient to put and get files from your pc.
If you connect to a pc (which must have enabled File and Print Sharing) with smbclient, you have ftp-like functionality. So you may use  ls  to get a list of files, and then in a second step get these files.
smbclient can read from stdin, so it's easy to write scripts doing a backup.

The more expensive way is to buy and install any kind of NFS client on your pc (for example http://www.wrq.com)
Avatar of arunm
arunm

ASKER

Thanks, but im aware of these solutions. As part of the backup process I need to be able to check source code back into a repository on the UNIX box, via SCCS tools such as Sparcworks. So im afraid this wouldnt really help. Installing NFS clients on each of the PC's, although possible, would be less convenient and prove to be rather expensive.
 
how about smbtar
You could use Networker (www.legato.com), it consists of a server program running in your UNIX box and of clients which send the information to be backed up to the server, then you can retrive information in the client or the server as needed.
Avatar of arunm

ASKER

Correct me if im wrong, but although "networker" will meet my backup needs it will not allow me to physically mount disks. So my problem with the source code repository will still exist?
   
did you check smbtar?
I think you can divide the problem in two parts: the backup part and the centralized repository part.

The backup part must get solved with Networker or something similar.

If you need a centralized source code repository why don't you do it the other way around?: mount Solaris disks in the PC's (samba will do this for you) and then you even could use the standard backup commands.

   About the smbmount command, it is strange but it is mentioned in the manpages but I can't find it in my distribution!  I tried to compile it in my Solaris machine (the source code is there) but it complains about a minimum version of Linux! So it looks like it is not implemented in Solaris, but since it is derived from smbclient (that works in Solaris) maybe a little bit or working the code could make it compile....




smbmount just compiles on Linux (failed on AIX, IRIX, HP-UX and Solaris with incompatible header files).
Needs more investigation in the source, probably the reason is that only Linux can re-export mounted filesystems (so far).

Avatar of arunm

ASKER

Im rejecting this answer because ahoffman's answer is the best solution so far. I wasnt aware that you could tar up the pc's shared directories, without first having to mount them on the unix box. But my problem with the repository still remains. Mounting the Sun disks on the pcs is not really a viable solution. For the source code on the pcs to remain under SCCS  they would have to be left on the mounted disks, thus any compiling would have to be performed over the network. This would be too slow, and generate unnecessary network traffic.  
 

Avatar of arunm

ASKER

ahoffman, are you saying if I employ a linux server. I can use it to mount the pc disks, then export these disks to be them mounted by the Sun box? If so, would this be transparent, (i.e, would the Pc disks then behave as any other mounted disk on the Sun?)
ASKER CERTIFIED SOLUTION
Avatar of ahoffmann
ahoffmann
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of arunm

ASKER

Thanks, ahoffmann I may take you up on that.