Ok, for once I'm going to try and put the meat of the post up front, and put the fluff below. 11.10 a couple of days ago seemed to kill my my auto-mount of my NAS on both my computers running it, I started getting an error that said "only root can mount this" when trying to access it in dolphin.
**Disclaimer: This worked for me, I can't promise it will work for you. Also my share has no security, or login's needed, if yours does this might not work, in fact most likely won't. But you can take what I have here, use smb4k like I did below under "fluff" to get a working mount, look at the mtab file I explain and build from there.**
Now some background. I have a Dlink NAS that offers up the drive(s) as a single windows share named Volume_1. My dlink router gives it a STATIC IP (I suggest using static ip's if you want to mount a share) and the address is 192.168.0.100. The overall samba/windows share name is DLINKSTORAGE.
That being said, there are really TWO addresses for this share:
Code:
//192.168.0.100/volume_1
Code:
//DLINKSTORAGE/volume_1
Ok, now for setting up the automount:
You need to create a directory to mount into. I used to use /mnt/dlink for that when I first had it set up. However I used smb4k to mount it for the last few days and it created /home/justin/smb4k/DLINKSTORAGE and mounted it there, so I've been using that now that I've got it working again. Here is my working mount code:
Code:
//192.168.0.100/Volume_1 /home/justin/smb4k/DLINKSTORAGE/ cifs guest,_netdev 0 0
Now you need to put this little bit of code in the file called fstab (of course customized to YOUR setup, I can show you below a real easy way to get the code premade for you below in the fluff section). To do that in terminal type: (if you don't know what that is your not ready for this yet anyway)
Code:
kdesudo kate
This will open you a root version of kate, you'll need that to make changes to root files like fstab (and pretty much everything else listed in /root)
On a side note you can do the same thing with dolphin to delete and mess with stuff in root, just be wary.
Now in kate click open, and navigate to /root/ect/fstab (it's a file not a directory) and open it.
Now you paste your
Code:
//192.168.0.100/Volume_1 /home/justin/smb4k/DLINKSTORAGE/ cifs guest,_netdev 0 0
That's all it takes, now with the way it worked BEFORE 3 days ago this would mount the share as a "drive" and if you navigated to /home/justin/smb4k/DLINKSTORAGE/ you would find all the stuff on the share in there like a normal directory.
~Fluff to follow~
So when this first happened I just couldn't get it to mount at all, however the code I was using in fstab then was
Code:
//192.168.0.100/volume_1/ /mnt/dlink cifs guest,uid=1000,iocharset=utf8,codepage=unicode,unicode 0 0
Code:
//DLINKSTORAGE/volume_1/ /home/justin/smb4k/DLINKSTORAGE/volume_1 cifs rw 0 0
Code:
//192.168.0.100/volume_1
Comment