apb0703
Posts: 7
Joined: Sun Apr 06, 2014 8:14 pm

Connecting to Windows Home Server

Sun Apr 06, 2014 8:16 pm

Hello all,

I am new to Raspbian and pretty much Linux over all. I have a Raspberry Pi with Raspbian installed. I am trying to access files on my Windows Home Server box from it. I mainly use the Pi to download and want it to save files to the Windows Home Server Box. Is it possible?

Tarcas
Posts: 741
Joined: Thu Jan 09, 2014 5:38 am
Location: USA

Re: Connecting to Windows Home Server

Mon Apr 07, 2014 5:28 am

apb0703 wrote:Hello all,

I am new to Raspbian and pretty much Linux over all. I have a Raspberry Pi with Raspbian installed. I am trying to access files on my Windows Home Server box from it. I mainly use the Pi to download and want it to save files to the Windows Home Server Box. Is it possible?
Yep, the Google search term to use is "mounting Windows shares from Linux." (Raspbian is virtually identical in functionality to Debian or Ubuntu, so tutorials for either of these will translate perfectly to the Pi. Red Hat and Fedora can have some translation quirks, but are usually still useful, especially for troubleshooting help. This applies to anything you want to do on the Pi, not just this.)

In short, you'll create a folder on the Pi, and then use the mount command to basically turn that folder into a shortcut to your file share. This is, of course, assuming that the share is already set up. If not, Google can help you set that up too. If you want to make it permanent, you can set up the /etc/fstab file to mount it automatically at boot (but personally I prefer not to do that with shares. I prefer to put the command in a script so that I can mount it manually when I want it.)

Note that with Linux, everything is in the file system as a file. With Windows, your shares are accessed from a different place than your files, and if you mount them they become a new lettered drive. With Linux, you can put your shares anywhere in the file system you want. The standard place is in a subdirectory of the /mnt/ folder, but you can put them in your home directory, or in a folder under / if you like; there's nothing stopping you (except in some places write permissions, but you can get around those too.)

apb0703
Posts: 7
Joined: Sun Apr 06, 2014 8:14 pm

Re: Connecting to Windows Home Server

Mon Apr 07, 2014 5:26 pm

Thank you for that!

I got the Drive mounted and I can see all the sub folders in the drive which is what I want to be able to do. The issue I get now is that when I try to download a file from the Pi to the Windows Home Server folder I get a access denied due to permissions.

When I mounted the drive I used the user name and password in the command and I gave full access writes in windows home server so I can't figured out why I get the access denied.

Any ideas?

Thank you

Tarcas
Posts: 741
Joined: Thu Jan 09, 2014 5:38 am
Location: USA

Re: Connecting to Windows Home Server

Mon Apr 07, 2014 5:58 pm

apb0703 wrote:Thank you for that!

I got the Drive mounted and I can see all the sub folders in the drive which is what I want to be able to do. The issue I get now is that when I try to download a file from the Pi to the Windows Home Server folder I get a access denied due to permissions.

When I mounted the drive I used the user name and password in the command and I gave full access writes in windows home server so I can't figured out why I get the access denied.

Any ideas?

Thank you
Set the permissions on the Windows share to permit write access. By default, it can only be read, I believe.

apb0703
Posts: 7
Joined: Sun Apr 06, 2014 8:14 pm

Re: Connecting to Windows Home Server

Tue Apr 08, 2014 5:59 pm

I have the permission set on Windows Home Server to read/write.

Here is the output from the mount command

/dev/root on / type ext4 (rw,noatime,data=ordered)
devtmpfs on /dev type devtmpfs (rw,relatime,size=215824k,nr_inodes=53956,mode=755)
tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=44820k,mode=755)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /run/shm type tmpfs (rw,nosuid,nodev,noexec,relatime,size=89620k)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620)
/dev/mmcblk0p1 on /boot type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,errors=remount-ro)
//HOMESERVER/i/ServerFolders on /mnt/Server type cifs (rw,relatime,vers=1.0,sec=ntlmssp,cache=strict,username=Pi,domain=HOMESERVER,uid=0,noforceuid,gid=0,noforcegid,addr=192.168.1.164,file_mode=0755,dir_mode=0755,nounix,serverino,rsize=61440,wsize=65536,actimeo=1)
pi@raspberrypi / $


I get the message when using qbittorrent and downloading a file. If that makes any difference.

Return to “Raspberry Pi OS”