On Wednesday 01 Mar 2006 22:54, Harry Putnam wrote: snip > > One way would be to mount the disk locally using cifs. See > `man mount.cifs' for details but the syntax looks like this: > > From /etc/fstab (This is all one line in fstab) > //harvey/harvey-c /mnt/harvey-c cifs noauto,username=reader,\ > credentials=/etc/samba/CifsCredentials > > Those are `UNC' paths like you would use with smbclient. (But not > Kanqueror). > > A command line might look like: > > mount -t cifs -o user=reader%XXPASSWDXX //harvey/harvey-c /mnt/harvey-c > > The directory /mnt/harvey-c has to be created ahead of time. > The user reader needs to have an account on that windows machine. > > You'll need a windows user account username and password. If you > don't use passwords for windows shares I think you can just leave out > the %SECRET_PASS, but I'm not sure exactly. > > Once the device is mounted locally you can read/write to/from it in > scripting, then umount it at the end of the script. Thanks for the reply, I think I didn't make the problem clear enough. I have a usb server running on my network with 2 external disks connected to it. I can read and write to them using smb://lkg5f.homenet.com/DISK 2/ with no problems. I need to mount these drives so that I can run a backup script to backup all of my gentoo system. I have tried smbmount and mount -t smbfs but even after reading man mount and smbmount I am still unclear as to the correct format.
paul -- This message has been sent using kmail with gentoo linux -- gentoo-user@gentoo.org mailing list