[ale] Mounting Drives

Steven A. DuChene at VA Linux Systems sad at valinux.com
Sat Dec 11 23:48:44 EST 1999


On Sat, Dec 11, 1999 at 12:15:54AM -0500, Lee Roy wrote:
> My friend made a script that starts my IP Masquerading and I wanted to
> add something that will mount my kids drives and my notebook drives so I
> can get to them while I was in linux.  I have Samba up and working. The
> windows boxes can see each other and can see the linux box drives
> shares.
> 
> I made a mount point for the drives. To get the linux box to see the
> other drives I do this:  smbmount //kidsbox/c  /mnt/kidsbox    and then
> I get a prompt to enter a password. I enter it and I can see the drive.
> Same thing with:  smbmount //dogbook/c /mnt/dogbook .
> 
> Is there a way I can put in the password so it does it on it's own? Both
> of the ways below don't work.  The first I still get the prompt that
> makes me enter a password. But it gets the drives mounted. The second
> one gives me an error it can not find or there is no mount point.
> 

Take a look at the expect utility. It is perfect for scripting this sort of
interactive sort of thing. One my SuSE system there is a man page for it
so I would think your distribution would include it also since it is a pretty
common tool.
-- 
Steven A. DuChene	sad at valinux.com
--
To unsubscribe: mail majordomo at ale.org with "unsubscribe ale" in message body.






More information about the Ale mailing list