Thanks for the tip on "nofail" in fstab. Works OK! But now I have a really unique problem: my Mac found the drive on the network and backup started. About 1 hour later, the Time Machine app stopped. I login to the Pi and did a "df- h" and the drive is gone (!?). I ran gparted and it won't even see the disk anymore. I tried to access the folder (/mnt/usbdrive/timemachine) and got:FM81 wrote:To point one: I assume you have an entry in '/etc/fstab' for the harddisk, and if it is missing you'll get the behaviour you've described ...
It's easy to fix, add the option 'nofail' to the line in '/etc/fstab'; for example before:and after changing:Code: Select all
/dev/sda1 /mnt/TimeMachine ext4 defaults 0 2
MfG, FM_81Code: Select all
/dev/sda1 /mnt/TimeMachine ext4 nofail,defaults 0 2
Code: Select all
ls: reading directory .: Input/output error
1). Format the drive with gparted and ext4 format
2). adduser tmuser with its own password
3). mkdir /mnt/usbdrive/timemachine
4). mount /dev/sda1 /mnt/usbdrive/timemachine
5). add to /etc/fstab --> /dev/sda1 /mnt/usbdrive/timemachine ext4 nofail noexec,defaults 0 0
6). update-rc.d netatalk defaults
7). touch /etc/afp.conf and add the following:
Code: Select all
[Global]
mimic model = TimeCapsule6,106
log level = default:warn
log file = /var/log/afpd.log
hosts allow = 10.10.1.0/24
[Homes]
basedir regex = /home
[TimeMachine]
path = /mnt/usbdrive/timemachine/
valid users = tmuser
time machine = yes
9). chown tmuser:users /mnt/usbdrive/timemachine
10). chmod 775 /mnt/usbdrive/timecapsule
Is there anything I did wrong?