Raspberry Pi : Create a WD My Cloud & Apple Time capsule alternative

Raspberry Pi + Open Media Vault  : Create a tiny Pi Powered NAS that gives you a  an alternative to the WD My Cloud and Apple Time capsule.

Raspberry Pi WD MyCloud Time Capsule alternative
Raspberry Pi WD MyCloud Time Capsule alternative

There are many ways to use your Raspberry Pi and create a NAS (Network attached Storage Device) and a Time Machine that works with your macs.

The simplest way to do this is to run the Pi on Open Media Vault. Open Media Vault is a very powerful open source NAS. For this setup, We will be formatting the hard disk in EXT4 (the native linux ) format. This means that data on the hard drive will be erased. There are ways to use an old windows hard disk but file and folder permissions donot work well and transfer speeds are quite slow.

Overview :

  • Download the latest Open Media Vault ISO image.
  • Prepare a SD / Micro SD card to receive the downloaded Image.
  • Un compress and Transfer the downloaded Image to the SD / Micro SD card.
  • Connect all components to the Pi, insert the SD card and Boot up the Pi.
  • Get the IP address of the running Open Media Vault Pi.
  • Log into the OMV Pi using another machine on your network and the OMV web interface.Configure shares , protocols and access controls.

Time and Difficulty :

  • Time : About 15 mins once you have the Image file and the rest of the software.
  • Newbie Difficulty level : Moderately Easy (No Command line Stuff)

What you will need :

  • Raspberry Pi Model B or B+ or Raspberry Pi 2 Model B or one of its clones like Banana Pi M1 or M2 or Banana Pro
  • Ethernet connection to the Pi
  • SD or Micro SD Card that fits into your Pi (4GB or above is recommended)
  • A Empty Hard disk (HDD) that will serve as the data drive for your NAS. (Linux is very picky about file permissions and in order to make sure file ownership and folder shares are correctly configured, we recommend formatting the HDD during the setup. There are ways to avoid this but will not be discussed in this guide)
  • A powered USB hub to power the HDD. (You may not need a powered USB hub depending on the type of Pi, the model of Hard disk and the power source for your Pi)

You may want to consider :

  • Connecting the Pi to a tv or monitor during the first boot.
  • An USB keyboard and Mouse plugged into the Pi.
  • Learning about SSH and how to remotely access the Pi from another machine on your network

You will need to download :

  1. The latest image of Open Media Vault. Navigate to their download section, click on the link leading to the latest ISO images > Raspberry Pi images and select the latest image file. It will have a name similar to the omv_x.xx_rpi2.img.gz.
  2. 7-Zip utility to uncompress the downloaded Img.gz image.
  3. SD Formatter utility to wipe the SD / Micro SD card clean and get it ready
  4. Win32 Disk Imager to transfer the expanded ISO image to the SD / Micro SD card.

Create the NAS!

  1. Use 7-zip and expand the downloaded omv_x.xx_rpi2.img.gz file into a omv_x.xx_rpi2.img file.
  2. Clean the SD / Micro SD card off all data using the SD Formatter Utility.
  3. Open the Win32 Disk imager utility, under the device section,very carefully select the SD card drive, Load the omv_x.xx_rpi2.img in Image file section and Click Write.
  4. Prepare the Pi by connecting the HDD, Ethernet and optional HDMI/VGA and Keyboard + Mouse.
  5. Insert the SD / Micro SD card into the Pi and Power it on.

Access the NAS

  1. If you have a Monitor / TV connected to the Pi, you will see the IP address.
  2. Alternatively, log on to your router and note the IP address of the Pi from the list of connected devices.

Configure the NAS

  1. Open a web browser on your main PC and enter the ip address of the NAS in your address bar.
  2. Once the log in screen appears, use the default “admin” as the username and the default “openmediavault” as the password.
  3. Click on storage > Physical Devices and choose the hard disk (typically /dev/sda or sdx)
  4. Select the HDD and click Wipe (choose the quick option )
  5. Navigate to Storage > File Systems
  6. Choose Create. Under the pull down Device label, choose the Hard Disk, Enter a label and choose EXT4 as the file system.
  7. You will now need to “Mount” the newly created drive by highlighting the new ext4 row that has appeared at the bottom and clicking on Mount. The drive is now mounted and ready to hold data.
  8. For the drive to be accessible, shared folders need to be created.
  9. Navigate to Access Rights Management > Users and click on Add> Create Users and Passwords.
  10. Navigate to Access Rights Management > Shared folders and click on Add.
  11. Give the folder a name, Choose HDD as the Volume , leave the path as it appears and in Permissions, choose Everyone : read /write ( Note : we are creating a public folder called test on the NAS that will be accessible to all who are logged onto your network. You can at a later stage go back , delete this share , create users and create folders with explicit access permissions for users or groups)
  12. Create Another folder and call it TimeMachine

 

Windows Network : Enabling access to the Public share

  1. Navigate to the Services section > SMB/CIFS
  2. Click on Enable and Enter your windows Workgroup (the default is WORKGROUP)
  3. Go to the Share tab.
  4. Click on Add.
  5. In the Add Share Dialog box, select ‘test’ from the pull down shared folder. Add a name, comment and select ‘Only guests’. Then click Save.
  6. Open Windows explorer and in the address bar enter ‘\\raspberrypi”
  7. You should see a shared drive that is now accessible.

Apple Share and Time Machine : Enabling access to the Public share and configuring a Time machine backup

To do this, you will first need to download the Apple Filing plug in.

  1. Goto System > Plugins > Sharing
  2. click on the tick box next to openmediavault-netatalk 1.5. and click Install.
    Once installed, you will see a section called Apple Filing under the Services section.

Creating a Public access folder :

  1. Click on Apple filing under Services.
  2. Click on Enable and Save.
  3. Select the shares Tab and click on Add.
  4. Select ‘test’ under the pull down menu, choose guest access options for public logins.

Creating a Time machine backup :

  1. Goto the shares tab under Services > Apple Filing
  2. Select the share you want to use for Time Machine back ups.
  3. Click on Add > Select ‘TimeMachine’ and enable

4 thoughts on “Raspberry Pi : Create a WD My Cloud & Apple Time capsule alternative”

  1. Hi,

    Found this project extremely interesting, especially then “Time Machine” part. Before going for it, I am wondering if there is a way to go wireless.
    Of course, there is a way to connect (Ethernet) to a WiFi router or Internet Box, but I would like to use this as a wireless Time Machine, without Internet nor Wifi environment.

    I know some Raspberry OS (linux…) are able to support small WiFi USB dongles.
    Will this work together with OMV? Anyone tried?

    Thanks

    1. Raspberry Pi and OMV support a whole range of wifi Dongles. You dont need to be on the internet to have TM back up. The mac and the Pi will need to be on the same wifi network though

    2. Just to be clear, you should get a wifi dongle with AP feature. Since you sometimes want it to work as a standalone module, this is necessary for Pi to create a Access Point for you to connect.

      Also, don’t expect the backing up blazing fast. Raspberry pi does not have gigabit ethernet nor usb 3.0 for very fast connections.

  2. I get this error on El Capitan time machine:
    The operation couldn’t be completed. (OSStatus error 2.)
    Have tried everything but no luck.
    Any help?

Leave a Reply