Fórum Ubuntu CZ/SK
Ubuntu pro osobní počítače => Internet a sítě => Téma založeno: Tho0or 19 Ledna 2017, 18:54:17
-
Potřeboval bych pomoct od odborníků, jelikož jsem víceméně laik.
Snažím se přidat si složku z NASky v domácí síti jako síťový disk, ale nedaří se "nastálo". Podařilo se mi namountovat ručně pomocí:
sudo mount -t cifs -o username=Myname,password=Mypass //192.168.1.121/Public /home/radek/NAS
Myslel jsem, že mám vyhráno a dopsal jsem do fstab řádek:
192.168.1.121/Public /home/radek/NAS cifs username=Myname,password=Mypass,iocharset=utf8 0 0
Ale bohužel po restaru se mi sice objeví ikonka síťového disku v panelu, ale neotevře nic. Musím znovu mount a pak se připojí, ale nemám práva na zápis.
Když ji nenamountuju, ale připojím se přes "záložku" (nebo přes procházet síť) a přihlásím se, tak všecko šlape jak má, ale NAS není viditelná pro aplikace, hlavně pro KTorrent :)
Pokud by byl někdo z Vás tak laskavý a pro blbce popsal, jak to korektně mountovat ihned po startu bez mé pomoci s právem zápisu, budu Vám neskonale vděčný :)
-
Podařilo se díky návodu na EN wiki
CIFS installation
sudo apt-get install cifs-utils
On older systems:
sudo apt-get install smbfs
Mounting unprotected (guest) network folders
First, let's create the mount directory. You will need a separate directory for each mount.
sudo mkdir /media/windowsshare
Then edit your /etc/fstab file (with root privileges) to add this line:
//servername/sharename /media/windowsshare cifs guest,uid=1000,iocharset=utf8 0 0
Where
guest indicates you don't need a password to access the share,
uid=1000 makes the Linux user specified by the id the owner of the mounted share, allowing them to rename files,
iocharset=utf8 allows access to files with names in non-English languages. This doesn't work with shares of devices like the Buffalo Tera Station, or Windows machines that export their shares using ISO8895-15.
If there is any space in the server path, you need to replace it by \040, for example //servername/My\040Documents
After you add the entry to /etc/fstab type:
sudo mount -a
This will (re)mount all entries listed in /etc/fstab.
celá stránka https://wiki.ubuntu.com/MountWindowsSharesPermanently (https://wiki.ubuntu.com/MountWindowsSharesPermanently)