5/3/2023 0 Comments Configure fstab mediacentralNow that you can see your files on the command line, it’s time to access them in Kodi. On the command line, you just use a \ followed by a space.Īnd if all is well, you will see your files! ![]() Notice the difference! In the fstab file, you use \040 for a space. Or if you used the TV Shows example (TV\040Shows): $ cd /mnt/TV\ Shows To test, simply try to go to the share: $ cd /mnt/Server_Movies $ sudo systemctl restart remote-fs.targetĪt this point, your shares should just work. Once you get a prompt with no errors, you will need to reload systemd: $ sudo systemctl daemon-reload ![]() If you get any errors looks again at your /etc/fstab for the errors. Now verify that there are no errors in your fstab file: $ sudo mount -a Once done editing /etc/fstab, save the file and exit nano with CTRL-x YES If your server is Windows 10, you probably will have to supply a SMB version, supported versions are 2.0, 2.1, 3.0 or 3.02, so in the above fstab line, replace the vers=1.0 with vers=3.0 (pick the version you want) If the version you chose does not work, try a different version. When trying to mount, add vers=1.0 to your fstab: //192.168.1.2/Movies /mnt/Server_Movies cifs tomount,noauto,rw,iocharset=utf8,guest,uid=osmc,gid=osmc,file_mode=0770,dir_mode=0770,vers=1.0 0 0 Some changes were made to make SMB more secure. With the latest version of OSMC, you may get an error if using guest access. If your shares are setup as guest shares that do not require user/password you can use the guest option like this: //192.168.1.2/Movies /mnt/Server_Movies cifs tomount,noauto,rw,iocharset=utf8,guest,uid=osmc,gid=osmc,file_mode=0770,dir_mode=0770 0 0 If you have more than one share (like Music) to add, I’d recommend adding them after you get your first share working. Or if you prefer to not use a credentials file: //192.168.1.2/Movies /mnt/Server_Movies cifs tomount,noauto,rw,iocharset=utf8,username=my_username,password=my_password,uid=osmc,gid=osmc,file_mode=0770,dir_mode=0770 0 0Īn example with spaces: //192.168.1.2/TV\040Shows /mnt/TV\040Shows cifs tomount,noauto,rw,iocharset=utf8,username=user\040with\040space,password=password\040with\040space,uid=osmc,gid=osmc,file_mode=0770,dir_mode=0770 0 0 Sometimes (depending on your server) you need to include a SMB version to the fstab entry: //192.168.1.2/Movies /mnt/Server_Movies cifs tomount,noauto,rw,iocharset=utf8,credentials=/home/osmc/.credentials,uid=osmc,gid=osmc,file_mode=0770,dir_mode=0770,vers=3.0 0 0 Go to the end of the file (use the down arrow key) and add this line: //192.168.1.2/Movies /mnt/Server_Movies cifs tomount,noauto,rw,iocharset=utf8,credentials=/home/osmc/.credentials,uid=osmc,gid=osmc,file_mode=0770,dir_mode=0770 0 0 credentials-server2Įdit your /etc/fstab file: $ sudo nano /etc/fstab Personally if I had 2 servers I’d use the names. If you have more than one server and want to use credentials files, you can name them anyway you like. Creating the file is simple: $ sudo nano ~/.credentials For better security, we recommend instead that you use a credentials file. Previously we had you putting your username/pw in the fstab. Once you know that information, log into your OSMC system: Accessing the command line - General - OSMC ![]() This can be the same name as the share, so Movies is OK also.What you would like the share to be named on OSMC?.We will be using my_username and my_password.Username and password used to access those shares. ![]()
0 Comments
Leave a Reply. |