I want to create a permanent samba mount on my AC66r. For example - I have a share on a Windows 7 machine that I want to always be accessible from my router. I also want this to show up if I network browse to \\RT-AC66r. Hopefully this will show up in AiCloud as well but I'm not as concerned with that.
I have successfully mounted my samba share on the router through SSH using:
mount \\\\192.168.0.4\\MOV_VOL1 /mnt/MOV_VOL1 -t cifs -o username=user,pass=pass
Confirmed by doing a directory listing on /mnt/MOV_VOL1 - my files show up.
Next I began looking at the samba config and potentially storing a jffs add-on script to add a similar entry like this to smb.conf:
[TOSHIBA_EXT]
comment = TOSHIBA External USB 3.0's TOSHIBA_EXT
path = /tmp/mnt/TOSHIBA_EXT
writeable = yes
_________________________________________________
So this is where I ran into issues - I assume I need to use nmbd somehow and add that as an add-on script as well. I can see in the log files where it does a hotplug to find a USB device that just got added to the router and then the router does a samba share. I want to emulate this with my network share whenever my router reboots.
Things to keep in mind: I *do* have one USB hard drive connected to the router currently so as to keep the samba running (I read somewhere that samba isn't available if something is not plugged in).
The reason I'm doing all of this, is because I've found with multiple file handlers opened on the drives connected to my router, I end up getting errors with I/O reads and then the USB device catastrophically fails - disconnects from the router, and then upon resetting the USB device - the file system is corrupt. I have to take the drive over to a windows machine to fix the file system - this is becoming cumbersome, and I'm losing files. As much as I want my drives to be connected to my router 24/7 - I would much rather have file stability. So I will leave my drives connected to my Windows 7 machine and 'trick' the router into thinking it's holding those files.
I KNOW someone has done this already - I just can't find it in the forums.
I have successfully mounted my samba share on the router through SSH using:
mount \\\\192.168.0.4\\MOV_VOL1 /mnt/MOV_VOL1 -t cifs -o username=user,pass=pass
Confirmed by doing a directory listing on /mnt/MOV_VOL1 - my files show up.
Next I began looking at the samba config and potentially storing a jffs add-on script to add a similar entry like this to smb.conf:
[TOSHIBA_EXT]
comment = TOSHIBA External USB 3.0's TOSHIBA_EXT
path = /tmp/mnt/TOSHIBA_EXT
writeable = yes
_________________________________________________
So this is where I ran into issues - I assume I need to use nmbd somehow and add that as an add-on script as well. I can see in the log files where it does a hotplug to find a USB device that just got added to the router and then the router does a samba share. I want to emulate this with my network share whenever my router reboots.
Things to keep in mind: I *do* have one USB hard drive connected to the router currently so as to keep the samba running (I read somewhere that samba isn't available if something is not plugged in).
The reason I'm doing all of this, is because I've found with multiple file handlers opened on the drives connected to my router, I end up getting errors with I/O reads and then the USB device catastrophically fails - disconnects from the router, and then upon resetting the USB device - the file system is corrupt. I have to take the drive over to a windows machine to fix the file system - this is becoming cumbersome, and I'm losing files. As much as I want my drives to be connected to my router 24/7 - I would much rather have file stability. So I will leave my drives connected to my Windows 7 machine and 'trick' the router into thinking it's holding those files.
I KNOW someone has done this already - I just can't find it in the forums.