Search the Site

My Social
Meta
Powered by Squarespace

Entries in locked (2)

Wednesday
Nov182009

Nikon Scan 4 and Snow Leopard

My dad switched to an iMac a couple of weeks ago. He came from a Windows environment with lots of periferals (RF Mouse, Bluetooth dongle, HP flatbed Scanner, Espon printer, Nikon CoolScan V, HP PDA, etc.). So the challenge was to migrate as many periferals as possible.

Thankfully, most of them worked. Even the old Nikon CoolScan V film scanner worked with the supplied Nikon Scan 4 software, until last Sunday. For some reason the application crashes with a message that the preferences file can't be read (Is another instance of Nikon Scan 4 running??).

It seemed that the Nikon app wasn't shut down properly on one occasion and a lock file was left in the preferences. Removing the lock file solved the issue.
The lock file is located at the following location:

~/Library/Preferences/Nikon/Nikon Scan 4 Prefs.lock

Sidenote: Weird that relatively old propriatary software like the Nikon Scan 4 software works fine, but that more recent (Nikon) software needs special updates to keep working under Snow Leopard. Was Nikon Scan 4 written by people who understand what they were doing (OS sub-version independent)? Or is this just luck?

Monday
Oct262009

Deleting Locked Files in OSX

During the migration of the data on my dad's (*cough*) Windows computer to his new iMac, we ran into lot's of locked files. Usually you get the information on a specific file (⌘ + i) and deselect the 'Locked' option in the 'General' part. It's basically impossible to remove all the locks by hand, so I needed a quicker way to remove these locks.

It seems that there's a command available in Terminal to do this. The following command removed the Locks from all the files in the current directory AND all the sub-directories.

chflags -R nouchg *

More info on the chflags command can be found in the Terminal by typing man chflags, or by visiting this page.

The cause of the locked files in my case was that we copied the data from a read-only network share (to prevent that information might get lost in copy/move actions during the migration). Reading from read-only media results in locked files (or so it seems).