[SOLVED] OSMC, Transmission, fstab

Hello! I am using a router with DD-WRT. I configured SMB and NAS, USB Hard drive is connected to my router and it is works fine. I am installed Transmission client for OSMC. I want download torrents to my NAS. For it I am add my user with password for client to config and one line to /etc/fstab for mounting, but this issue not helped for me and Transmission says error permission… My config:

NAS:48

Transmission config:

"download-dir": "smb://192.168.1.1/MEDIA/Torrents/",
"incomplete-dir": "smb://192.168.1.1/MEDIA/Torrents/",
"rpc-enabled": true,
"rpc-password": "osmc",
"rpc-port": 9091,
"rpc-url": "/transmission/",
"rpc-username": "osmc",

sudo nano /etc/init.d/transmission-daemon:

    User=osmc

sudo nano /etc/fstab:

192.168.1.1:/tmp/mnt/diskmedia /mnt/diskmedia nfs rsize=8192,wsize=8192,timeo=14,intr,rw,x-systemd.automount,auto

Is where my error? Please help me!

Since you mounted the NAS using fstab you should be able to see the files on it by doing:

ls /mnt/diskmedia

If you see them, just change the “download-dir” and “incomplete-dir” to /mnt/diskmedia, it should work.

osmc@osmc:~$ ls /mnt/
diskmedia
osmc@osmc:~$ ls /mnt/diskmedia
ls: unable to open catalog /mnt/diskmedia: No device

Hi,

Please post the output of:

sudo mount -t nfs 192.168.1.1:/tmp/mnt/diskmedia /mnt/diskmedia

Then:

ls /mnt/diskmedia

Thanks Tom.

Connection timeout…

Reboot the router?

One moment

Rebooted, typed a command - terminal is thinking

UPD

osmc@osmc:~$ sudo mount -t nfs 192.168.1.1:/tmp/mnt/diskmedia /mnt/diskmedia
mount.nfs: Connection timed out

192.168.1.1 - router, 192.168.1.135 - my osmc (for example)

Hi,

Are you able to ping your router from the pi?

Thanks Tom.

ping 192.168.1.1
...
236 packets transmitted, 236 packets received, 0% packet loss

Hi,

Just re-read your first post where you say you’ve configured SMB, but your fstab shows nfs. Which is it?

Any way try:

sudo mount -t cifs 192.168.1.1:/tmp/mnt/diskmedia /mnt/diskmedia

and post the output

Thanks Tom.

If you are using nfs it would also be useful to see the output of sudo showmount -e 192.168.1.1

Yes, I am turned on Samba and NAS in my routrer.
07
51

And it is works fine for my devices

Hi,

Yes but my point is if your using samba, your not going to able to connect to it using nfs, which is what you’ve in your fstab.

Have you tried the command in my last post?

Thanks Tom.

osmc@osmc:~$ sudo showmount -e 192.168.1.1
clnt_create: RPC: Port mapper failure - Unable to receive: errno 111 (Connection refused)

Terminal is thinking about 5 minutes and next

next what?

Terminal didn’t respond since I typed your command. Okay, try again. I am using two partitions of my hard drive in NTFS, ntfs-3g in my router for NTFS support. I turned on Samba file sharing in NAS tab. I am configured for this partitions username and password plus allow it for guests. Now I can connect to NAS from my computer, my phone and OSMC. Now I want download torrents to my NAS via Transmission. Via SSH from OSMS:

mkdir /mnt/diskmedia
sudo mount -t cifs 192.168.1.1:/tmp/mnt/diskmedia /mnt/diskmedia

But terminal didn’t respond after 2 line.
I find in settings CIFS, maybe I must configure this?

33

Hi,

Long shot, but have you removed the nfs entry from fstab? Unlikely but maybe causing conflict with the mount -t command.

Remove the fstab entry, reboot and try the command again.

Thanks Tom.