User Tools

Site Tools


timemachine

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
timemachine [2013/05/12 20:46]
rdibley
timemachine [2015/03/15 05:09] (current)
arthurhsliu [Recovery from Disk Errors]
Line 1: Line 1:
 ====== Time Capsule on OpenWRT (Apple File Protocol Server with Time Machine Support) ====== ====== Time Capsule on OpenWRT (Apple File Protocol Server with Time Machine Support) ======
 +
 +
 +====== Working fine with '​force'​ mount option in fstab ======
 +
 +
  
 ===== Intro ===== ===== Intro =====
Line 66: Line 71:
  option device ​  /​dev/​sda2  option device ​  /​dev/​sda2
  option fstype ​  ​hfsplus  option fstype ​  ​hfsplus
- option options ​ rw,sync+ option options  ​force,rw,sync
  option enabled ​ 1  option enabled ​ 1
  option enabled_fsck 0  option enabled_fsck 0
Line 123: Line 128:
 </​code>​ </​code>​
  
-Avahi is configured via **/​etc/​avahi/​avahi-daemon.conf**,​ see [[http://​linux.die.net/​man/​5/​avahi-daemon.conf]]. ​ Only two lines of the default file need changing:+Avahi is configured via **/​etc/​avahi/​avahi-daemon.conf**,​ see [[http://​linux.die.net/​man/​5/​avahi-daemon.conf]]. ​ Only three lines of the default file need changing:
  
 <​code>​ <​code>​
 host-name=TimeMachine host-name=TimeMachine
 enable-dbus=no enable-dbus=no
 +allow-interfaces=br-lan
 </​code>​ </​code>​
  
Line 199: Line 205:
 ===== Recovery from Disk Errors ===== ===== Recovery from Disk Errors =====
  
-FIXME If the backup process is interrupted,​ the database can become corrupt and unusable. ​ Time Machine will report that the backup is unusable and will suggest creating a new backup.  ​Need to add a section to cover how to properly set up the time capsule so that it automatically and robustly recovers from these errors.+If the backup process is interrupted,​ the database can become corrupt and unusable. ​ Time Machine will report that the backup is unusable and will suggest creating a new backup. 
 + 
 +Use the following steps on your Mac as root: 
 +  - Connect ​to the TimeMachine network share. 
 +  - Run ''/​usr/​bin/​chflags -R nouchg "/​Volumes/​TimeMachine/​[hostname].sparsebundle"''​ 
 +  - Run ''/​usr/​bin/​hdiutil attach -nomount -noverify -noautofsck "/​Volumes/​TimeMachine/​[hostname].sparsebundle"''​ 
 +  - ''/​sbin/​fsck_hfs -drfy /​dev/​disk3s2''​ # or whatever disk partition ​it is mounted as 
 +  - Run ''/​usr/​bin/​sed -i ""​ -e'​s/<​integer>​2<​\/​integer>/<​integer>​0<​\/​integer>'​ /​Volumes/​TimeMachine/​[hostname].sparsebundle/​com.apple.TimeMachine.MachineID.plist''​ 
 +  - ''​diskutil eject "/​Volumes/​TimeMachine/​[hostname].sparsebundle"''​ 
 +  - Try running your backup again.
timemachine.1368384365.txt.bz2 · Last modified: 2013/05/12 20:46 by rdibley