This is my first official post I guess and it's going to be about me mounting my win2003 server shares in ubuntu. First off, this might sound quite uninteresting but it took me long enough to work out all the kinks that someone else might find this information useful, so here I go.
First off, you have to share the appropriate folders on the windows machines. That was simple enough, just right click on the folders, then go to sharing > New share, give it a name , set permissions and voila.
Now the fun part. I had my ubuntu machine set up already on the same home network as the win2003 box on the same workgroup. By default I could even see the windows machines on the network, but when I double clicked on them no files appeared in the folders. My first reflex was to google my problem and I found this application called LinNeighbourhood, which is supposed to enable you to access windows servers through linux. Well after about a week of trying to get it to work, I though there should be an easier way and I was right. I googled my problem again.
This time I found a few people with the same problem on the ubuntu forums. I started reading up on it and after a few minutes it hit me. You have to mount the folders! Of course, you have to mount everything in linux when it's not part of the tree. Piece of cake I thought... So I happily opened up my terminal and typed in "man mount" to get the exact syntax and try to mount my shared folders. After hours of trying with different syntax and options, I still couldn't mount them. I kept on reading and realised, that since ubuntu and windows aren't the same filesystem, you have to specify this. So at this point my query looked something like this:
" sudo mount -t smbfs //192.168.1.100/music /media/music"
and I was still getting error messages. Important thing in linux, capitalization counts, so you have to know exactly how your folders are named. Next, make sure you have the right to the folders. So I had to do this (note: didn't have to give full rights to everyone buy I did) :
"sudo chmod 777 /media/music"
Still it told me not authorized. This is when I realized I had to put in the username/password to the windows machine. So after looking it up I got this:
"sudo mount -t smbfs -o username=user,password=pass //192.168.1.100/music /media/music"
And finally it worked!!! Hooray, I can now access all my files on ubuntu! Next step, automating it all. Not to hard I think , but I'll have to read up on it a little.
0 comments:
Post a Comment