OpenWrt Forum Archive

Topic: RemoteFileSystemHowTo: Can't find //king-mark/C$ in /etc/fstab

The content of this topic has been archived on 27 Mar 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

I'm trying to follow the instructions on http://wiki.openwrt.org/RemoteFileSystemHowTo

Here are the reselts after following the instructions:

root@OpenWrt:~# mount -t cifs //king-mark/C$ -o unc=//king-mark,ip=192.168.1.8,u
ser=Administrator,password=xyz,dom=workgroup
Can't find //king-mark/C$ in /etc/fstab
root@OpenWrt:~# uname -a
Linux OpenWrt 2.4.30 #1 Wed Sep 14 17:49:26 CEST 2005 mips unknown

I tried making an empty /etc/fstab file but this did not help.
Can someone tell me what I am doing wrong?

Thanks,
Siegfried

These other techniques don't seem to work either:

bash-3.00$ scp root@192.168.1.2/etc/firewall.usr firewall.user
cp: cannot stat `root@192.168.1.2/etc/firewall.usr': No such file or directory

bash-3.00$ wget http://192.168.1.2:81/etc/firewall.user
--22:13:28--  http://192.168.1.2:81/etc/firewall.user
           => `firewall.user'
Connecting to 192.168.1.2:81... connected.
HTTP request sent, awaiting response... 404 Not Found
22:13:28 ERROR 404: Not Found.

On the wrt I typed:

root@OpenWrt:~# httpd -p 81 / -r OpenWrt

Can someone tell me what I am doing wrong?

Thanks,
Siegfried
bash-3.00$ wget http://192.168.1.2:81/etc/firewall.user
--22:14:34--  http://192.168.1.2:81/etc/firewall.user
           => `firewall.user'
Connecting to 192.168.1.2:81... connected.
HTTP request sent, awaiting response... 404 Not Found
22:14:34 ERROR 404: Not Found.

bash-3.00$

siegfried wrote:

root@OpenWrt:~# mount -t cifs //king-mark/C$ -o unc=//king-mark,ip=192.168.1.8,user=Administrator,password=xyz,dom=workgroup
Can't find //king-mark/C$ in /etc/fstab

You haven't specified a mount point (the directory where the contents of the mounted fs should appear), furthermore if you use the unc option it should probably contain the whole path to the share.

mkdir /mnt/net

(creates mount point)

mount -t cifs //king-mark/C\$ -o unc=//king-mark\\C\$,ip=192.168.1.8,user=Administrator,password=xyz,dom=workgroup

(don't know if it's really necessary to escape the '$' characters in this case, but it shouldn't cause any harm ;))

siegfried wrote:

bash-3.00$ scp root@192.168.1.2/etc/firewall.usr firewall.user

You are missing a ':' here...

scp root@192.168.1.2:/etc/firewall.usr firewall.user

The discussion might have continued from here.