Quick Nas question

I don’t really need to mount anything (but I will), it just all seems to work correctly out of the box.
My usb 3TB drive mounted and works and is quicker than PM4 and in file manager clicking go>network displays windows network and guess what, yes! WDMycloud with full permissions and files are transferring quicker too, down from 3.5 mins for a 1.5 gig file to 2.2 mins for the same size file.
I’m going to bed now but when I’ve had a look around tomorrow someone is going to get a goodly amount of praise for this.

Right, I’m back.
Got one small problem to iron out this morning.
Whilst I can see, access and transfer to it in file manager, I can no longer access the web interface, I get the google message


Chromium could not load the web page because 198.162.0.200 took too long to respond. The website may be down or you may be experiencing issues with your Internet connection.
Check your Internet connection
Check any cables and reboot any routers, modems or other network devices you may be using.
Allow Chromium to access the network in your firewall or antivirus settings.
If it is already listed as a programme that is allowed to access the network, try removing it from the list and adding it again.
If you use a proxy server...
Check your proxy settings or contact your network administrator to make sure the proxy server is working. If you don't believe you should be using a proxy server: Go to the Chromium menu > Settings > + Show advanced settings > Change proxy settings... and make sure your configuration is set to "no proxy" or "direct."
Error code: ERR_CONNECTION_TIMED_OUT

are you sure you set it to 198.162.0.200 not 192.168.0.200,(it should have been set to the latter) :wink:

as for mounting…
If you’re happy with it “as is”, we won’t bother mounting it through fstab then … I’d still suggest you move off Peppermint 4 though.
(what to is up to you, but Peppermint 4 is dead)

Lol, senior moment there.
Must get a new brain.
I upgraded to PM5 last night, so lets go for mounting it.

OK, when you first access

smb://192.168.0.200

are you presented with any folders … such as “share” … if so what are they ?

and are there any login credentials required ? (don’t need to know them, just if they’re required)

Yes, they are
Public
Smartware
Timemachine.
Everything I need is under Public.

Just an aside, while it was working great last night and this morning for some reason it’s stopped allowing me write to it, hopefully mounting it will solve the problem.
I also want to mount my external 3tb usb drive but I think I have that covered but would like to check with you before editing fstab, that’s for later though.

Do you have to enter a username and password to access “Public” ?

and has “Public” got a capital “P” ?

and what’s your Peppermint 5 username ?

Sorry for the delay, I got called out but I’ll be here for the rest of the night now.

NO username or password required

Yes, capital P

celticbiker

OK, first make sure cifs-utils is installed

sudo apt install cifs-utils

now create the mountpoint:

sudo mkdir -p /media/WDMyCloud/NAS-Public

now make it read/write by everyone

sudo chmod 777 /media/WDMyCloud/NAS-Public

OK, now let’s backup fstab:

cp -v /etc/fstab /etc/fstab.bak

then, open fstab for editing:

sudo gedit /etc/fstab

add these 2 NEW lines at the bottom:-

## Added by celticbiker - Mount NAS Public
//192.168.0.200/Public /media/WDMyCloud/NAS-Public cifs iocharset=utf8,dir_mode=0777,file_mode=0777 0 0

SAVE the file and exit gedit.

Back in the terminal, run:

sudo mount -a

if there were any errors, post them here.

If not, see if “NAS-Public” is now available in the left hand column of File Manager.

Also check, when you click that link in file manager you can read and write to the NAS-Public directory

And finally, check it all works after a reboot.

Be aware, you might see some “CIFS VFS” errors repeated a few times during boot … this is the system attempting to mount the NAS before networking comes up … they can be ignored and are nothing to worry about.

Well that all seems to be working just fine.
Transferred 150 gig in about 2 hours.
Something a bit odd though. If I open the NAS in the right tab and my usb drive in the left tab it won’t transfer anything (just freezes) but if I reverse the order then it’s fine.
Makes no sense I know but I tested it several times with the same results.
Anyway that’s neither here nor there.
Thanx for all your help Mark, consider yourself applauded.
Just one more thing. I might have to change the static ip to 192.168.0.10 (due to the android app). would I be correct in thinking that if I do this it’s just a matter of amending the mount point e.t.c to reflect the changes?
The app worked before we changed the ip address, now it reports a server connection error 904

Hmm … you’re right, just a matter of changing the line in fstab

BUT

I wouldn’t change the NAS to 192.168.0.10 … unless you change the router DHCP pool to not hand out that IP to any other device.

Can you explain the problem with the Android thing … what android app, etc. ?

and can you confirm the current fixed IP of the NAS.
192.168.0.200
or
198.162.0.200
?


That tab thing IS weird :o … I’ll try it myself when I get the time
(currently using a different file manager)

The app is this one

Before we made the ip static it was on 192.168.0.10.
When I installed the app, it connected straight away and I could see all folders ( no files transferred yet).
We set the ip to 192.168.0.200, now when I try to connect the app I get a ‘network connection failure (903)’ error.
It is definitely set to 192.168.0.200.
There are a couple of things I want to try in the morning first and I’ll get back to you with the results.

Thanx

Right, got a few things going on here.
The web site first.
http://WDMyCloud/

Chrome refuses to connect at all, simply says ‘website not available’.
Firefox connects but won’t proceed due to a lack of Java (could you help with this please?)
And I think there is some things I need to do via the web.

The app.
It point blank refused to connect, but the problem there is that it will only connect if the NAS is at ip 198.162.0.10.
This is also the case with the above website (but then ff says it can’t proceed due to lack of java)
ATM I have set the NAS to static ip at 198.162.0.10 and edited fstab to reflect this, I am also going to exclude this ip from the dhcp pool in the router settings.
I also can’t get the app to connect from anywhere else except my own network but I’m sure that if I can get java in FF this will help point me in the right direction…

OK, try this:

sudo apt install openjdk-7-jre icedtea-7-plugin

which will install open java … 99 timmes out of 100 that will do the job.

If it turns out you need the Oracle java, well there’s a security risk associated with that but instructions can be found here:


You’re not going to get java to work in the default “Aura” versions of Chromium or Chrome which no longer support NPAPI plugins, so if you want Java in Chromium/Chrome you have no option but to install pre-Aura versions of Chromium/Chrome as instructed here:
http://forum.peppermintos.com/index.php?topic=494.0

Right, I’ve got an update on this.
Whilst set to a static IP everything works fine but am unable to access it via the internet or phone app (unless using the lan connection).
Looking at the NAS dashboard tells me there is no internet connection, but set it back to DHCP and it connects to the internet and can now be accessed from anywhere.
Going to report this WD and see if they know why, and if it can be sorted.