AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Netatalk ubuntu 178/3/2023 This program is free software you can redistribute it and/or modify it under Netatalk 3.1.12 - Netatalk AFP server service controller daemon Install $ sudo apt-get install netatalk -y` *Note: we are not automatically mounting this USB hard drive as mounting USB on startup can be flakey* Should show a line like `/dev/sda2 699G 300M 668G 0% /media/tm` Test that mounting works as $ sudo mount $ df -hįilesystem Size Used Avail Use% Mounted on PARTUUID=d159f393-02 / ext4 defaults,noatime 0 1 PARTUUID=d159f393-01 /boot vfat defaults 0 2 It should end up looking something like this In my case the UUID is *6525d832-1a97-35a5-92a4-345253fcfd001*.Įdit fstab to mount the USB hard $ sudo nano /etc/fstab`Īnd append this line (replacing 6525d832-1a97-35a5-92a4-345253fcfd00 with your specific UUID determined above). *Note: this assumes your USB hard drive is $ sudo mkfs.hfsplus /dev/sda2 -v TimeMachine`Ĭreate mount $ sudo mkdir /media/tm & sudo chmod -R 777 /media/tm & sudo chown pi:pi /media/tm`ĭetermine the UUID of your USB hard drive $ ls -lha $ ls -lha /dev/disk/by-uuidĭrwxr-xr-x 8 root root 160 Sep 3 00:17. Install hfsutils & $ sudo apt-get install hfsutils hfsprogs` Run raspi-config to make any changes you want like changing hostname $ sudo raspi-config`Īnd update your $ sudo apt-get update & sudo apt-get upgrade -y` Login to your Pi via () or old school with a keyboard & monitor. Depending on your setup, you can either set the Pi to have a () or have your router assign a static IP address. Next set a static IP address for your Raspberry Pi. Insert the SD card into the Pi, plug in the USB hard drive, plug in a network cable, and power on the Pi. Follow the instructions on the () tutorial on the Raspberry Pi site. * Raspberry Pi (tested with a Raspberry Pi 2 Model B) *** Updated after comments from Pdnellius & Chris Smith*** *** Updated after comments from AlexWiseman & Nick*** *** Updated after comments from Bastiaan*** Title: "Raspberry Pi Time Machine (2021 update)" Or forcing fsck.hfsplus to check and repair journaled HFS+ file systems If your drive becomes read only you can try either changing the permissions of the directory References: this is an updated version of a How to Geek article with some tweaks for flaky USB hard drives and updates for the latest packages. Open the Time Machine settings and you should see your new network time machine server Note: default creds username: pi & password: raspberry Login creds will be the same as your ssh creds on the pi Reboot your $ sudo reboot Connect to Time Machine The 30 second sleeps give the USB hard drive time to spin up and become mounted before the avahi-daemon & netatalk services start Note: this mount / unmount / mount flow is required as HFS+ partitions may become read only if unmounted incorrectly. Launch the two $ sudo service avahi-daemon $ sudo service netatalk start Mount and start services on bootĪnd sleep 30 & mount /media/tm & sleep 30 & umount /media/tm & sleep 30 & mount /media/tm & sleep 30 & service avahi-daemon start & service netatalk start Note: this assumes your USB hard drive is $ sudo mkfs.hfsplus /dev/sda2 -v TimeMachineĬreate mount $ sudo mkdir /media/tm & sudo chmod -R 777 /media/tm & sudo chown pi:pi /media/tmĭetermine the UUID of your USB hard drive $ ls -lha /dev/disk/by-uuid This will erase all data on the USB hard drive. Install hfsutils & $ sudo apt-get install hfsutils hfsprogsįormat USB hard drive to hfsplus. Run raspi-config to make any changes you want like changing hostname $ sudo raspi-configĪnd update your $ sudo apt-get update & sudo apt-get upgrade -y Setup USB Hard drive Login to your Pi via SSH or old school with a keyboard & monitor. Depending on your setup, you can either set the Pi to have a manual ip address or have your router assign a static IP address. Follow the instructions on the Installing images tutorial on the Raspberry Pi site. Install Raspbian Buster Lite on the SD card. Raspberry Pi (tested with a Raspberry Pi 2 Model B).Updated after comments from Pdnellius & Chris Smith Prerequisites Updated after comments from AlexWiseman & Nick
0 Comments
Read More
Leave a Reply. |