Hi, this is my first post here so I want to say thanks to everyone for all the info that is up. I have been able to solve most of my problems myself so far by just searching and reading others posts.
I am having an issue I cannot find any information about. I have a network share that I can access just fine and mount using either mount.cifs or mount -t cifs. When I try to mount it using fstab I am having some issues though.
When I mount using mount.cifs or mount -t it works just fine, this is the output of running the mount command with no arguments:
root@OpenWrt:~# mount -t cifs //192.168.1.9/share ~/mount/nas/share -o guest root@OpenWrt:~# mount rootfs on / type rootfs (rw) (snip) //192.168.1.9/share on /root/mount/nas/share type cifs (rw,mand,nodiratime,unc=\\192.168.1.9\share,username=root,domain=,rsize=16384,wsize=16384)
But I have tried to include this in my fstab config file using the following config:
config global automount option from_fstab 1 option anon_mount 1 config global autoswap option from_fstab 1 option anon_swap 0 config mount option target /root/mount/nas/share option device //192.168.1.9/share option fstype cifs option options rw,mand,nodiratime,unc=\\192.168.1.9\share,username=root,domain=,rsize=16384,wsize=16384 option enabled 1 option enabled_fsck 0 config swap option device /dev/sda2 option enabled 0
Now, the drive doesn't mount on reboot (which is why I am here) but it also doesn't mount when I run /etc/init.d/fstab start or restart. In my logread output there are no error messages other than a warning about not being able to find fsck (which shouldn't be an issue because it isn't enabled in fstab) and I also get that message running fstab start or restart.
I have tried the fix mentioned here http://wiki.openwrt.org/doc/uci/fstab#notes regarding the commenting out of that line in fstab and creating a symbolic link, but it hasn't improved. In fact, now when I run restart or stop I get:
swapoff: /etc/fstab: No such file or directory
which I assume is ecause fstab hasn't been able to successfully mount the drive in the first place?
Anyway I am running out of avenues of investigation here. I can't get any error messages or details in the log as to why it isn't mounting, I can't get it to mount at all using fstab yet I have no issues mounting and accessing it using the mount command.
Can someone tell me if there are any other ways of investigating why this isn't mounting, or possibly correct my config file for me? I have tried it with a lot of different options too in the options line but I have had no luck at all. Oh sorry I should add that I am using 10.03.
Thanks in advance if anyone is able to help.
edit: just wanted to add that I have also checked the dmesg output and there is nothing output there either
(Last edited by Goblox on 6 Nov 2011, 10:57)