Click to See Complete Forum and Search --> : mounting drives


zboll
08-11-2006, 08:05 PM
ok, I am pretty new to linux and I am currently in the process of changing over to debian as much as I can. I can mount windows drives through smb, and remote linux drives through shfs. I notice that the drives are no longer mounted after a system reboot, so I am guessing that I have to make a startup script to remount the drives each time at boot? I think I could def. write the script in Kornshell, and probally would be able to manage it in python. After I write the script, could someone point me on how to get it to run automatically on startup. If there is easier way that makes the mounted file systems permanent, then I would of course be interested in that too.

thanks for the help,
Zack

je_fro
08-11-2006, 08:45 PM
The thing to do is add them to /etc/fstab.

//host/shared /home/me/shared smbfs username=user1,password=password,users,auto,rw,exe c 0 0
//host2/share2 /home/me/shared2 smbfs username=user2,password=password,users,rw,auto,exe c 0 0

Hmm....there aren't supposed to be any spaces in "exec" above, which appears as "exe c". That's wrong...it's supposed to be exec.

JPnyc
08-11-2006, 09:06 PM
That's to force line breaks so that hor. scrollbars aren't generated by long lines of txt.

gehidore
08-11-2006, 11:14 PM
Pnyc,

It gives it hor scroll bars anyways, on my box at least.

debian sid, opera, 1280x1024

teeitup
08-12-2006, 12:02 AM
Rather than put your username and password in the fstab file explore the "credentials" option.

man smbmount

Put the file in the root home directory and set the permissions so that only root can read it.

chmod 400 <file>

//dingo/download /mnt/I smbfs credentials=/root/bravo,fmask=664,dmask=775,u
id=0,gid=200,ip=192.168.58.14,debug=0,workgroup=DO GPOUND 0 0

zboll
08-12-2006, 02:23 AM
ok, i got it working for my windows local network drives. How would you do it using shfs by editing the etc/fstab file. I already have shfs installed

Thanks,
Zack

zboll
08-12-2006, 06:15 PM
I tried a couple examples online but I can get the mount to work by editing etc/fstab, i can get it to work by shfsmount in terminal window. I dont know how to make it automatic already include my login password. Im trying to have it automatically log into my school unix hard drive.

thanks,
Zack