I'd like to share what I did to have my NAS mounted on my fonera 2.0n with 2.3.6.1 (I didn't succeed using 2.3.70 b1 nor b2 as you might have read in my previous posts); here are the steps I've been following.
first of all we need to install cifs (thank you Skynetbbs!! got some spare time to fix it for 2.3.7.0?

):
- Code: Select all
mkdir /usr/lib/opkg
vi /etc/opkg.conf
src snapshots2 http://www.fonera.be/flash/FON2303/packages/mipsel/
echo option force_space >> /etc/opkg.conf
opkg update
wget http://www.fonera.be/flash/FON2303/packages/mipsel/kmod-fs-cifs_2.6.21-fonera2n-1_mipsel.ipk
to make sure everything is ok let's type
- Code: Select all
lsmod | grep cifs
and some info should shows up.
we now need to mount the device, and it may be nice to have it in the fstab so it mounts automatically.
(in my case I've been mounting on /tmp/mounts/Disc-A1 my NAS which is set up as static 192.168.11.2 and shares a dir named "Fonera")
- Code: Select all
/etc/init.d/fstab stop
uci add fstab mount
uci set fstab.@mount[-1].target=/tmp/mounts/Disc-A1
uci set fstab.@mount[-1].device=//192.168.11.2/Fonera
uci set fstab.@mount[-1].fstype=cifs
uci set fstab.@mount[-1].options=user=fonero,password=fonero
uci set fstab.@mount[-1].enabled=1
uci commit fstab
/etc/init.d/fstab start
to check if everything as gone right let's see what we have in the fstab file:
- Code: Select all
vi /tmp/fstab
and it should looks like this:
- Code: Select all
/dev/sda1 /home ext3 noauto,rw,sync 0 0
//192.168.11.2/Fonera /tmp/mounts/Disc-A1 cifs user=fonero,password=fon
that's it
one last tweak: for some reasons when I was restarting, the drive did NOT show up yet.
I took the advice from this posting
https://forum.openwrt.org/viewtopic.php?id=27210 and put "sleep 15" in the start function of the /etc/init.d/fstab file. That fixed the problem.
- Code: Select all
start() {
sleep 15
config_load fstab
mkdir -p /var/lock
lock /var/lock/fstab.lck
#echo '# WARNING: this is an auto generated file, please use uci to set defined filesystems' > /etc/fstab
lock -u /var/lock/fstab.lck
config_foreach do_mount mount
config_foreach do_swapon swap
sorry for my english and please let me know if something isn't done as it should be and/or might be done in a faster way