css (1) jQuery (7) linux (38) mac (70) php (29) python (1) svn/git (9) trac (4) ubuntu (1) virtualbox (6) vista (2) windows (14)

Monday, 21 March 2011

Time Machine, File Vault and error -36

Recently I wanted to restore a folder from my file vault backup, so I do the usual and mount it, copy the folder, ack! Error -36 from finder, after some experimenting it seems that this is because Disk Utility mounts the sparse bundles as read/write, using the following command hdiutil attach -readonly -stdinpass <path to backup> mounts it as read only.

Thursday, 3 March 2011

Ubuntu boot ordering

Here's something interesting, due to ubuntu using upstart and having symlinks in /etc/init.d/ to upstart jobs it fails the checks for dependancy based booting for the old insserv scripts, so it goes back to legacy style boot ordering i.e. in the order of symlink file name i.e. to set up ordering use update-rc.d <service> defaults SS KK where the lower the SS the sooner it's started and lower the KK the sooner it's killed.