I can not get a network share to work for the life of me.
Here is my problem:
Using ubuntu, I prepared an 8gb hdd by formating it with ext4. The only thing on it is a lost&found folder and a home folder. I put some test media (pics,vids) in the home folder.
Then I successfully got my router to mount the usb hdd
but I do not know what to use as the path in the luci network shares tab.
I have tried everything I could think of /dev/sda, /dev/sda1, /media/8gb_hdd/home, and so forth.
The only share that works is the tmp example share.
I SSH'ed into my router and I am able to browse the usb hdd contents.
However I still am not able to access the share from nautilus or windows explorer.
The only share I can access, is the tmp share.
Here is my samba file from /etc/config
As you can see, both tmp and Media4 are setup identically but only the tmp share works.
Here is my smb.conf from etc/samba
[global] netbios name = openwrt workgroup = workgroup server string = openwrt syslog = 10 encrypt passwords = true passdb backend = smbpasswd obey pam restrictions = yes socket options = TCP_NODELAY unix charset = ISO-8859-1 preferred master = yes os level = 20 security = share guest account = nobody invalid users = root smb passwd file = /etc/samba/smbpasswd [homes] comment = Home Directories browseable = no read only = no create mode = 0750 [tmp] path = /tmp read only = no guest ok = yes create mask = 0777 directory mask = 0777 guest ok = yes create mask = 0777 directory mask = 0777 [Media5] path = /media/8gb_hdd/home read only = no guest ok = yes create mask = 0777 directory mask = 0777
I could really use some help, I can't figure this out.
I did my best to follow the directions here:
The only thing I didn't follow was:
3. In your firewall open tcp 135:139 and tcp 445 from your LAN. Following example may not work for you (set the right interface -i )
1. iptables -I INPUT -j ACCEPT -i eth0.1 -p tcp -m multiport –dports 135:139
2. iptables -I INPUT -j ACCEPT -i eth0.1 -p tcp –dport 445
I didn't follow it because I don't know what that means, or what to edit. My firewall file from etc/config looks like this:
config defaults option syn_flood 1 option input ACCEPT option output ACCEPT option forward REJECT # Uncomment this line to disable ipv6 rules # option disable_ipv6 1 config zone option name lan option input ACCEPT option output ACCEPT option forward REJECT config zone option name wan option input REJECT option output ACCEPT option forward REJECT option masq 1 option mtu_fix 1
Can somebody please tell me what is wrong and how to fix it?
Thanks in Advance.
(Last edited by Keypel on 16 May 2011, 08:03)