-
Connect external HD to Mac and format to HFS+ case sensitive
-
Install Raspian on Raspberry Pi 2 Model B
-
Setup wifi on raspberry pi
- from https://www.raspberrypi.org/documentation/configuration/wireless/wireless-cli.md
- connect wifi adaptor
- search for networks:
sudo iwlist wlan0 scan | less
- note the ESSID of the network to join
- sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
- add the following:
network={ ssid="The_ESSID_from_earlier" psk="Your_wifi_password" }
- exit nano ctrl+x, y, enter
sudo reboot
-
Install hfs tools:
sudo apt-get install hfsplus hfsutils hfsprogs
-
Get the raspberry pi to power the HD
-
from http://www.htpcguides.com/power-2-5-hard-drive-with-raspberry-pi-b/
-
First see if the hd is connected properly:
-
sudo blkid
if it is connected you will see it in the output -
Update raspberry pi firmware
-
sudo rpi-update
-
sudo reboot
-
Set it to send all power to a single usb
-
sudo nano /boot/config.txt
-
Add this line to end:
-
max_usb_current=1
-
Ctrl+X, Y and Enter to save
-
sudo reboot
-
sudo blkid
-
Should now see HD connected
-
-
Create a directory to mount to:
mkdir /mnt/meadows
-
Mount the drive:
- from http://superuser.com/questions/84446/how-to-mount-a-hfs-partition-in-ubuntu-as-read-write
sudo mount -t hfsplus -o remount,force,rw /dev/sda2 /mnt/meadows
-
Add an entry to
/etc/fstab
to auto mount on boot:- from http://www.hackoopra.com/2014/11/07/raspberry-pi-private-cloud-nas-time-machine-osx-yosemite/
- /dev/sda2 /mnt/meadows hfsplus force,rw 0 0
- for some reason this isn't automounting but it's setup correct because
sudo mount -a
will mount it after a boot. I think the drive is just not ready in time to be auto mounted
-
Enable AFP file sharing:
- from http://gettingstartedwithraspberrypi.tumblr.com/post/24398167109/file-sharing-with-afp-and-auto-discovery-with
sudo apt-get install netatalk
-
Set to share mount:
- add entry to /etc/netatalk/AppleVolumes.default:
- /mnt/meadows "Asphodel Meadows"
-
create a user to share as
sudo useradd nas
sudo passwd nas
-
set user as owner of mount
sudo chown -R nas /mnt/meadows/
Last active
May 1, 2019 20:23
-
-
Save jisaacks/00e00df138a7879b4ea8 to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment