How Do I Mount A Drive In Samba


Recommended Posts

I need to share one of my drives across the network. I configured samba to be on my windows workgroup, but what command do you use to mount the a drive so it can be shared. Also is there a way to turn off the need to type in a user and password to access the drive?

Im using Ubuntu 7.4

Edited by Sir_Siddy
Link to post
Share on other sites

are you trying to mount your linux drive from windows, or your windows drive from linux?

edit added later//

If you want to mount your windows share. You need to make a directory to mount(attach) it to. Then you need to mount it. This will keep it mounted until you reboot

this first command will make a directory called "win" in your home directory

mkdir ~/win

this command should mount it to that newly made directory.

mount -t smbfs -o username=shane,password="" //marsala/backup /home/shane/win

"username" is referring to my windows login name

"password" is referring to my windows password. I don't have one set, so I have nothing inbetween the quotes

//marsala/backup "marsala" is my windows computer name, "backup" is the share name

"/home/shane/win" is the directory I am mounting it to

If this works for you, you can automate this by modifing your fstab file.

It would not surprise my if ubuntu has a gui tool that will do this also. i have never used it, so I am not sure.

Edited by shanenin
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...