Thursday, March 16, 2017

Buffalo LinkStation Time Machine 'File In Use' error

For some reason, it seems that afpd running on my LinkStation keeps some kind of lock open on the sparsebundle from Time Machine even when my Mac disconnects from the share I have setup. So, I figure the best solution would be to restart afpd once per night.

  1. Make sure your time is in sync (turn on NTP via the web interface).
  2. Verify the current timezone is correct. (The web interface has a lot less choices than what are provided by the linux distribution).
    1. ls -la /etc/localtime
    2. The output will show you what timezone file you are pointing to. If it is wrong, you can change it.
    3. ls /usr/share/zoneinfo/America
    4. The output will show the available timezones.
    5. To replace yours with a new one 'ln -sf /usr/share/zoneinfo/America/[zone_file_name] /etc/localtime'
  3. Edit your crontab: 'vi /etc/cron/crontabs/root'
  4. Figure out when you want to run the command via:
  5. I wanted to restart afpd at 2:00 AM, so I added this line to my crontab:
    • '0 2 * * * /etc/init.d/ restart'
Problem solved. When Time Machine goes to communicate with the backup disk the file is no longer locked.

No comments:

Post a Comment


Ryan Kuhn