jon12355
Posts: 2
Joined: Tue Dec 30, 2014 10:23 pm

Connecting to WD My Cloud

Tue Dec 30, 2014 10:32 pm

Hi

I have been playing around with the Pi today (first time user, total NOOB!). What I was hoping to do was set it up to download torrents via Deluge straight onto my NAS (WD My Cloud 3TB).

So far in SSH I have

created a directory in /home/pi called wdmycloud

Then in fstab created the following

//IP Address/Public /home/pi/wdmycloud cifs guest 0 0

I looked on the desktop, in file manager, and could see the folders on the NAS, great!

Next I installed Deluge via this youtube link https://www.youtube.com/watch?v=LIUgQEKxjNU

My problem now is that when I try to download a torrent it just says error and will not download. I figure this must be something to do with the permission of writing to the NAS?

When I type the following to try and create a Test folder:

mkdir /home/pi/wdmycloud/RaspPi/Downloading/TEST

It says mkdir: cannot create directory `/home/pi/wdmycloud/RaspPi/Downloading/TEST': Permission denied


Does any one have any ideas what I need to do please?

Jack_pumpkin
Posts: 1
Joined: Thu Jan 01, 2015 2:46 pm

Re: Connecting to WD My Cloud

Thu Jan 01, 2015 3:09 pm

also Noob here, but I was told by an experienced user:
if it says permission denied, add SUDO to the start :D

Looks like you have a permission issue there. Not sure how to completely fix it, but thats the direction Id look in if I were you.
Best of luck!

danjperron
Posts: 3502
Joined: Thu Dec 27, 2012 4:05 am
Location: Québec, Canada

Re: Connecting to WD My Cloud

Thu Jan 01, 2015 4:32 pm

I do have a 3 tera byte mybook live. This is how you could create a mount on it.

On the raspberry PI create a mount point. I use /mnt/mybook

Code: Select all

sudo mkdir /mnt/mybook
Now we will install smbclient

Code: Select all

sudo apt-get install smbclient
only thing left will be to mount the drive to the Raspberry PI

Code: Select all

sudo mount -t cifs  -o user=yourusername,passwd=yourpasswd,rw,file_mode=0777,dir_mode=0777 //mybookIP/resourcename  /mnt/mybook
Please change user name , password, the mybooklive internet IP and the mybook live resource.

Once it is done, the folder /mnt/mybook will be linked to the Mybook drive .

Daniel

danjperron
Posts: 3502
Joined: Thu Dec 27, 2012 4:05 am
Location: Québec, Canada

Re: Connecting to WD My Cloud

Thu Jan 01, 2015 10:27 pm

Also it is possible to use the netbios name to mount.

I assume that the netbios name of your WD My Cloud is MYBOOKLIVE

First insert wins just before dns in file /etc/nsswitch.conf

sudo nano /etc/nsswitch.conf

Code: Select all

hosts:          files mdns4_minimal [NOTFOUND=return] wins dns mdns4
Install winbind

Code: Select all

sudo apt-get install winbind
Now we are able to mount using MYBOOKLIVE

Code: Select all

sudo mount -t cifs -o user=Daniel,password=xxxxxxx,rw,file_mode=0777,dir_mode=0777  //MYBOOKLIVE/Daniel /mnt/mybook
It is also possible to use smbclient to find which resources are available on the network

Code: Select all

pi@PiPlus /etc $ smbclient -L MYBOOKLIVE
Enter pi's password:
Domain=[MAISON] OS=[Unix] Server=[Samba 3.6.5]

        Sharename       Type      Comment
        ---------       ----      -------
        IPC$            IPC       IPC Service (My Book Live Network Storage)
        TimeMachine     Disk      TimeMachine
        SmartWare       Disk      SmartWare
        Alexandre       Disk
        Public          Disk      Public Share
        Chantal         Disk
        Daniel          Disk
        TimeMachineBackup Disk      TimeMachine
Domain=[MAISON] OS=[Unix] Server=[Samba 3.6.5]

        Server               Comment
        ---------            -------
        DANIELACERONE        Acer one
        FAMILLEPERRON        Famille Perron Vista
        MYBOOKLIVE           My Book Live Network Storage

        Workgroup            Master
        ---------            -------
        FAMILLE              HPSERVER
        MAISON               MYBOOKLIVE
        WORKGROUP            WEBIO
Just specify the computer nane and the resource will be display.

If you want to connect the drive when you power up the Raspberry Pi you should hide your password.

Check this post
https://wiki.ubuntu.com/MountWindowsSharesPermanently
or
http://rasspberrypi.wordpress.com/2012/ ... pberry-pi/

Daniel

jon12355
Posts: 2
Joined: Tue Dec 30, 2014 10:23 pm

Re: Connecting to WD My Cloud

Mon Jan 05, 2015 11:58 am

danjperron wrote:I do have a 3 tera byte mybook live. This is how you could create a mount on it.

On the raspberry PI create a mount point. I use /mnt/mybook

Code: Select all

sudo mkdir /mnt/mybook
Now we will install smbclient

Code: Select all

sudo apt-get install smbclient
only thing left will be to mount the drive to the Raspberry PI

Code: Select all

sudo mount -t cifs  -o user=yourusername,passwd=yourpasswd,rw,file_mode=0777,dir_mode=0777 //mybookIP/resourcename  /mnt/mybook
Please change user name , password, the mybooklive internet IP and the mybook live resource.

Once it is done, the folder /mnt/mybook will be linked to the Mybook drive .

Daniel
Thank you for this. Were you say to enter password, the folders I use on the mycloud are public and do not require a username/password, how would you change that?

Silvasta
Posts: 1
Joined: Thu Mar 10, 2016 5:39 pm

Re: Connecting to WD My Cloud

Thu Mar 10, 2016 5:48 pm

Daniel's method worked perfectly once I figured out that I could turn on a password for a user and then use that user's folder for the above mentioned "resourcename." Also a set static ip address for my cloud in the my cloud desktop under settings and on my router. So far everything's working fine.
Thanks Daniel!!

sakis_s
Posts: 5
Joined: Fri Jun 08, 2018 6:28 pm

Re: Connecting to WD My Cloud

Fri Jun 08, 2018 6:38 pm

danjperron wrote:
Thu Jan 01, 2015 10:27 pm
Also it is possible to use the netbios name to mount.

I assume that the netbios name of your WD My Cloud is MYBOOKLIVE

First insert wins just before dns in file /etc/nsswitch.conf

sudo nano /etc/nsswitch.conf

Code: Select all

hosts:          files mdns4_minimal [NOTFOUND=return] wins dns mdns4
Install winbind

Code: Select all

sudo apt-get install winbind
Now we are able to mount using MYBOOKLIVE

Code: Select all

sudo mount -t cifs -o user=Daniel,password=xxxxxxx,rw,file_mode=0777,dir_mode=0777  //MYBOOKLIVE/Daniel /mnt/mybook
It is also possible to use smbclient to find which resources are available on the network

Code: Select all

pi@PiPlus /etc $ smbclient -L MYBOOKLIVE
Enter pi's password:
Domain=[MAISON] OS=[Unix] Server=[Samba 3.6.5]

        Sharename       Type      Comment
        ---------       ----      -------
        IPC$            IPC       IPC Service (My Book Live Network Storage)
        TimeMachine     Disk      TimeMachine
        SmartWare       Disk      SmartWare
        Alexandre       Disk
        Public          Disk      Public Share
        Chantal         Disk
        Daniel          Disk
        TimeMachineBackup Disk      TimeMachine
Domain=[MAISON] OS=[Unix] Server=[Samba 3.6.5]

        Server               Comment
        ---------            -------
        DANIELACERONE        Acer one
        FAMILLEPERRON        Famille Perron Vista
        MYBOOKLIVE           My Book Live Network Storage

        Workgroup            Master
        ---------            -------
        FAMILLE              HPSERVER
        MAISON               MYBOOKLIVE
        WORKGROUP            WEBIO
Just specify the computer nane and the resource will be display.

If you want to connect the drive when you power up the Raspberry Pi you should hide your password.

Check this post
https://wiki.ubuntu.com/MountWindowsSharesPermanently
or
http://rasspberrypi.wordpress.com/2012/ ... pberry-pi/

Daniel
Hey Daniel! Can you help me with “resourcename”? Where to look for it?
Thank you!

sidbessa
Posts: 1
Joined: Sat Jan 05, 2019 10:27 am

Re: Connecting to WD My Cloud

Sat Jan 05, 2019 10:29 am

sudo mount -t cifs -o user=admin,passwd=bessa30,rw,file_mode=0777,dir_mode=0777 //192.168.1.12/wdmycloud /mnt/wdmycloud
Password for admin@//192.168.1.12/wdmycloud:
mount error(22): Invalid argument
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)


please help

danjperron
Posts: 3502
Joined: Thu Dec 27, 2012 4:05 am
Location: Québec, Canada

Re: Connecting to WD My Cloud

Sun Jan 06, 2019 12:00 am

@sidbessa

You are lucky that I was looking at one of my post because this is a very old post and I wasn't on the subscribe list on it.

I don't have my WD NAS at home. It's at my office right now.

But first did you create a folder /mnt/wdmycloud with PI or your user permission!

Hum... admin access ????? not sure it is a good idea. Create an user instead.

Return to “Troubleshooting”