sawyl: (A self portrait)
Another OS upgrade, this time to macOS Sierra, made far more difficult than it should have been by on-going disk problems on my iMac. After downloading Sierra, the initial upgrade failed because the existing root volume failed to verify — something which also prevented me from booting back into El Capitan.

Having backed up the contents of my home directory — which I'd deliberately kept fairly small, given the untrustworthness of the internal disk — I reformatted the root volume, forgetting, until after I'd started the process, that I'd failed to copy the Sierra image to external storage before starting the process. I resolved the problem by booting into recovery mode, reinstalling El Capitan, rebooting, downloading Sierra again, and installing over the image of El Cap.

Eventually, with the system back up and running, I restored my home directory, applied the latest updates for Sierra and rebooted the machine. Fortunately, everything started up again without any errors and everything now seems to be back to normal.

I've been meaning to replace my iMac for a while — I've had it for over six years, so it's certainly put in its time and the internal disk seems to be increasingly past its prime — but Apple haven't released any compelling updates since last year, when the upper end of the iMac was refreshed to Skylake. My cunning plan — somewhat hampered by the spectacular devaluation of stirling! — is to keep my current system bumping along until the iMac release, when presumably the systems will move to Kaby Lake, before upgrading.
sawyl: (A self portrait)
Having finally decided to deal with the internal disk on my iMac — it went into read-only mode a while a go and I've been running off an SD card ever since — I realised I needed to free up space on an external disk in order to back up the contents of my home directory. But when I checked, I discovered the 1.5TB external disk was almost completely full with stale Time Machine backups (I temporarily stopped running backups in late 2014 and failed to renable them; something that turns out to be the principal reason for my current predicament)

My initial attempt to remove the files with a naive sudo rm -Rf Backups.backupdb failed with a whole slew of operation not permitted errors. Investigating further, I found the ACLs on the directory were configured to prevent the casual removal of the directory — an eminently sensible precausion.

A quick google revealed a solution to the problem: the Time Machine bypass command. The location varies depending on the release of OS X, but when the command is used as a prefix to the remove, i.e.

sudo /System/Library/Extensions/TMSafetyNet.kext/Contents/Helpers/bypass rm -Rf Backups.backupdb

it allows rm to ignore the ACLs and allowed me to blow away the entire backup directory with a single command — something that freed up 900GB of space and maybe 100 million inodes.

It's worth noting that the only reason I was able to use bypass rm rather than the officially approved tmutil delete was because the backup directory was stale and no longer in use. Using rm on an active Time Machine database has the potential to screw up the hard links used to build the individual backup images.

sawyl: (A self portrait)
Without homebrew on my mac, I've using the Raspberry Pi to work on a few bits and pieces that need the usual standard command line tool chain.

Having configured the Pi to start TightVNC at boot, I'd been accessing the system using Screen Sharing on my Mac. But it quickly became apparent that the performance was dismal, despite my best efforts to improve it: I suspect the cost of constantly generating jpegs is just too much for the server.

Eventually I decided to bite the bullet and, after discovering that X11.app was no longer included in OSX, I installed XQuartz. This resolved all the performance problems I'd been seeing at the cost of reduced resilience; unsurprisingly, the connections to the X applications drop whenver Mac going into sleep mode. So, an improvement in many ways, but not an ideal solution...
sawyl: (A self portrait)
Not only am I back up and running again, but I'm also now on Yosemite — the goal of the initial upgrade exercise! — just in time to move to El Capitan when it comes out next week...
sawyl: (A self portrait)
I've discovered that much of the truly horrible recent performance of my iMac is not the result of age and resource deprivation as I'd supposed, but rather consequent of a gradually failing hard disk. Unfortunately, I learnt this under less than ideal conditions: the machine detected problems partway through an upgrade and refused to continue installing the new OS whilst also declinng to boot the old installation, leaving me in something of a limbo.

Unable to recover the system with either Disk Utility or a single user mode fsck, I've been reduced to runing my system off an SD card while I consider how to back up and move my old data — because, of course, my Time Machine backup turns out to have been almost a year out of date. Annoyingly using an SD card as my boot volume actually seem to be greatly preferable to running of the internal hard disk: both much quieter and much quicker. Which brings me back to my original realisation: most of my recent performance problems seem to have been down to failing IO operations...
sawyl: (Default)
Having transferred my mini up to Coventry, I've finally set up my old monitor to act as a secondary display on my iMac. I may not really need the screen real estate, but it beats having the thing sat around doing nothing and it now means that I have enough monitor space to use two massive photos of Albi Cathedral as my backdrop instead of just one.

The process was fairly painless, ignoring the fact that I initially bought the wrong sort of exorbitantly expensive converter and had to return to the Apple Store in ignominy to exchange it for the right one. The iMac picked up the other screen without any trouble and after I tweaked the arrangement settings, everything just worked. I was also pleasantly surprised to find that most video applications — quicktime, the DVD player etc — automatically blank the secondary monitor when running in full screen mode to prevent distractions.

My only trivial grip? That my older monitor doesn't step down its brightness like the iMac monitor when the system has been idle for more than a few minutes...
sawyl: (Default)
Spent the afternoon scraping together a bit of cold to solve a fun little maths puzzle, after which I extracted an old tar file in the same directory, relying on the fact that the directory name in the archive was in lower case and the directory name with the puzzle solution was in capitalised. So imagine my surprise when OS X helpfully extracted the old files into the capitalised directory, trashing my code. And imagine my annoyance when I realised that I'd switched off Time Machine to allow me to shuffle around a handful of transient data files and had forgotten to switch it on again afterwards...
sawyl: (Default)
Made the mistake of inserting a combined DVD/CD into my computer only to discover that it was too fat and didn't want to eject itself. After trying a handful of things to get it out again I was forced to resort to a combination of hard and soft methods: drutil tray eject and a pair of tweezers. Fortunately, I was able to rip the contents of the CD side of the disc and I've no intention of letting it come anywhere near the drive ever again...

Safari 4

Jun. 14th, 2009 10:15 pm
sawyl: (Default)
I'm currently trying out Safari 4 — I normally use firefox — and, within limits, I'm impressed. It certainly renders pages much faster than firefox 3, but I'm not sure I want to switch until I can find some way to block adverts as efficiently as AdBlock does.
sawyl: (Default)
Following the first tranche of digital switchover — our analogue BBC2 was switched off on the 6th and replaced with some of the Beeb's digital channels — I decided to see if I couldn't complete the process of making my old TV and VCR obsolete by connecting my PS2 to my mac via my Elgato box.

Initially, I wasn't sure whether it was going to work — there was enough lag between the console and the display to make even RPGs unplayable — but once I realised that EyeTV had a game mode that bypassed the on-disc buffering, everything worked like a charm. And the quality of image? Far better than on my 25 year-old television.

So maybe I will get rid of my TV. And my VCR. And the little table they sit on. And replace them with some desperately needed bookshelves.
sawyl: (Default)
Yesterday, Software Update upgraded iTunes to 7.7. Now I discover that, when I use it to play a CD, I find that I'm unable to unload it without stopping iTunes. Being an inquisitive sort, I used lsof to check on the culprit and, sure enough, I found a load of open file descriptors hanging around under the /Volume mount point.

Most annoying.

Firefox 3

Jun. 27th, 2008 02:49 pm
sawyl: (Default)
Initial impressions? Very nice indeed. The rendering is slick; the performance is far better than v2 (and quite a bit better than the now rather sluggish Safari); and all the bells and whistles (Java, Flash etc) work straight out of the box. I'm seriously tempted to make it my default browser.
sawyl: (Default)
I've finally worked out how to map alt to meta in the OS X terminal emulator. It's simply a matter of picking File->Window Settings... and then, in the Terminal Inspector dialogue, setting an option the keyboard section. If only I'd taken the trouble to spend thirty seconds sorting this out when I first set up my mac, I wouldn't have spent the last three years feeling mildly frustrated at having to use the escape key.
sawyl: (Default)
After my problems with NFS last week, I've applied a few tunings. Essentially, the changes involved switching the transport from UDP to TCP and upping the buffer sizes. This roughly doubled the read performance and put an extra MB a second onto the write performance.

Once I'd got the options right, I simply made them the default in the usual OS X way:

  1. Changed the entries in /etc/fstab
  2. Updated the netinfo data with sudo niload fstab . < /etc/fstab
  3. Checked the change with nidump fstab .

And now, when I mount up the file system, it automatically comes up with the right options.

sawyl: (Default)
Following on from yesterday's post, I left my consolidate running overnight and now everything is now working as expected. Plus, I've discovered a neat bonus feature: if the NFS share isn't iTunes looks in ~/Music/iTunes/iTunes Music for tracks. Thus it's possible to keep your main library to a remote disc, prune the local copy and still have your favourite tracks available even when you're not connected the network disc. Very nice indeed.
sawyl: (Default)
In a pathetic attempt to free up some space on my internal disc, I decided to move my iTunes library off on to a NAS disc. It seemed like simplicity itself: simply tell iTunes to organise the files for me, set a new library directory and run a consolidate. But there was a wrinkle: the less than stellar performance of NFS.

According to my calculations, based on actual IO rates rather than hopelessly over-optimistic guesstimates, the move is going to require 16 hours to complete. Shocking. I think I need to spend some time with a benchmarking program tuning the NFS buffer sizes. Or maybe I'll just overnight it.
sawyl: (Default)
I was amused by the new private browsing facility in Safari 3. According to the warning popup that appears when the option is selected:

Which rather makes me suspect that the feature isn't targeted at political dissidents as porn-browsing family members...

sawyl: (Default)
Here's a nice feature of the OS X address book: if your phone is connected to the mac via bluetooth, control-clicking on a phone number gives you the options of dialing or sending an SMS to the number. This latter is particularly great if you're a hopeless texter like me. Thanks to [livejournal.com profile] vincel for pointing this out — I'd never have found it otherwise.
sawyl: (Default)
I love the way OS X just works. It took me little more than a couple of clicks (and most of those were to get out of the configuration widget on my phone) to set up iSync to copy my calendar and address book to my cell. I can't even begin to imagine the horror involved in getting either Windows or Linux to do the same thing.
sawyl: (Default)
I'm in the process of installing the latest set of OS X patches. I have this nagging feeling that my Mac is never going to work again...

Updated: After a couple of minor glitches, including a hang while installing the iTunes update, everything looks pretty shiny.

Profile

sawyl: (Default)
sawyl

August 2018

S M T W T F S
   123 4
5 6 7 8910 11
12131415161718
192021222324 25
262728293031 

Syndicate

RSS Atom

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jul. 2nd, 2026 07:39 am
Powered by Dreamwidth Studios