Skusal som postupovat ako v tomto navode ale bez uspechu:
Kód: Vybrat vše
[TUTO] - Mount cifs share to a Windows PC
This info was taken from onzifonzi . So thanks onzifonzi!
Here is syntax for mount windows share:
mount -t cifs \\\\IPofWINDOWS\\sharename /media/net -o username=user,password=password
\\\\ 4 backslash's are needed (backslash means that a special character is coming)
IPofWINDOWS = The IP address of the windows PC you want to connect to. It's better to set a static IP for your windows PC because linux isn't too good at using Windows computer names.
\\ 2 backslash's are needed
sharename = The share that you have shared out of your Windows PC.
/media/net = The location that the mount will be accessed.
Example
Make the new directory in media by
Quote:
mkdir /media/movies
To mount the share
Quote:
mount -t cifs \\\\192.168.0.8\\movie /media/movies -o username=roger,password=creamcake
My real password contained a special character a dollar sign $ eg pas$word and I was getting permission denied each time.
The way to fix this is by using a backslash \ So it worked when I used pas\$word
Also (taken from the nfs tutorial)
To automount at each reboot your share please add the command line at the end of the: /etc/init.d/rcS file
Hladal som nejake navody ale marne.
Diky