Ok, typing: mount -t smbfs -o username=username,password=password //Share/File /mnt worked! It loaded the contents of the folder I wanted to acces into the mnt directory. This is goad, but I would like to store them all in one directory. I tired to do a ... /mnt/directoryname but it wouldn't work. Also, how do I set things up so that Linux will automatically load this share on startup and how do I unmount if I need to? -------------- next part -------------- HTML attachment scrubbed and removed
Mike Loiterman wrote:> Ok, typing: mount -t smbfs -o username=username,password=password > //Share/File /mntworked! It loaded the contents of the folder I > wanted to acces into the mnt directory. This is goad, but I would > like to store them all in one directory. I tired to do a ... > /mnt/directoryname but it wouldn't work. > Did you create the mount point /mnt/directoryname? If not, you need to > do so. > Also, how do I set things up so that Linux will automatically load > this share on startup and how do I unmount if I need to? > > smbumount /mnt/directoryname > > should unmount the share for you. > > As for mounting the share automatically at startup, Its tricky, unless > you want your password recorded in /etc/fstab or a script. I would > suggest installing and configuring pam_mount, which will mount the > share when you login... provided your UNIX password is the same as > your SMB password.Shaun -- Shaun Cloherty Graduate School of Biomedical Engineering University of New South Wales
Create whatever directory you want where ever you want it as a mount point. -----Original Message----- From: Mike Loiterman [mailto:mloiterman@hotmail.com] Sent: Tuesday, February 27, 2001 9:31 PM To: samba@lists.samba.org Subject: Update to Mounting Win 98 and 2k shares Ok, typing: mount -t smbfs -o username=username,password=password //Share/File /mnt worked! It loaded the contents of the folder I wanted to acces into the mnt directory. This is goad, but I would like to store them all in one directory. I tired to do a ... /mnt/directoryname but it wouldn't work. Also, how do I set things up so that Linux will automatically load this share on startup and how do I unmount if I need to?