Kibbles & Bytes Blog

  • ASLServer vs. My Workstation

    I wrote several weeks ago about an eMac with mysteriously disappearing disk space. The machine’s hard drive kept filling up to the point that the “Your startup disk is almost full” message would pop up persistently, even though no new files had been added to the drive in several days. The solution was to delete the logs and restart a process called ASLServer.

    This week, after backing up a machine for repair to our backup workstation, the workstation slowed down dramatically–keystrokes took seconds to register, and the beach ball was omnipresent. Several restarts had no effect on the machine’s performance. Adding complexity to concern, the workstation I was using for the backup was my own workstation! I had to solve this problem immediately.

    First stop was Activity Monitor (located in your Utilities folder) to see exactly which processes were causing the issue. The two stalled processes were aslmanager and HFSMount; I had an unrecognizable, mechanically-failed hard drive connected, and my iMac was not happy about that. Unplugging that external drive only marginally improved performance, as the HFSMount process went away. HFSMount is a process that mounts the disk on your desktop.

    Looking at Activity Monitor, I noticed that aslmanager was still using over 90% of the CPU (keep in mind that each processor core accounts for 100% capacity; my dual-core iMac has 200% capacity). I hoped for the best and tried the simplest thing I could think of: I restarted the computer. No luck.

    Time for Google. I entered aslmanager and hit I’m Feeling Lucky. I got lucky and landed here: http://www.macfixit.com/article.php?story=20090122213555897

    I followed the steps outlined in the article, and the machine returned to normal. The problem hasn’t surfaced again.

  • When Migration Assistant Fails

    There are few things better than the joy of getting a new machine and walking through Apple’s convenient Migration Assistant that comes up the first time you boot your new Mac. In most cases the Migration Assistant does a wonderful job of taking all the data and applications from your old Mac and moving them on to the new one so that your transition to the new machine is seamless.

    As a tech, one of the occasional situations I encounter is a call letting me know that a customer attempted a migration and it failed citing I/O errors. What does that mean? “I/O” stands for “input/output” and the error quite literally means that it was not able to access that particular piece of data. The most common reason behind that is that the hard drive on the old machine has bad blocks; it’s a failing hard drive. Considering many people like to upgrade their machines when their old machine starts getting “slow”, and one common cause of slowness is a failing hard drive, this isn’t that uncommon of a situation. The question is, where does one go from here?

    There are several other applications out there that can help you from here, but if you’re not afraid to get your hands dirty and you’re looking for something quick and efficient then I’d like to share my personal method with you. I’ll give the caveat that in an ideal world you’d be able to pull the hard drive from your computer, put it in an enclosure and keep a fan running on it to keep it cool during this transfer process. However, you’re also welcome to just leave the old machine in “target disk mode”:http://support.apple.com/kb/HT1661 and give this a go. Before proceeding please note that this is novice level and above. Those who are are less tech-savvy might not be up for the challenge.

    To make this easy, first create a test account on your computer (just go through the Setup Assistant and name the account “Test”). Next you need to enable the root user. In Leopard, open Directory Utility (/Applications/Utilities/Directory Utility), go to the “Edit” menu and select “Enable Root User”. Simply give the root user a password. In Tiger, open the Netinfo Manager (/Applications/Utilities/Netinfo Manager), go to the “Security” menu and select “Enable Root User”.

    Once the root user is enabled log out of the user account you’re in (Apple Menu-> Log Out). This will bring you to the login window. Select “Other” and type “root” for the username and enter the password you created. Once in the root account open up a Finder window and navigate to the Users folder on the root of the drive. Now, open up a second Finder window and navigate to the Users folder on that drive. Create a new folder in that Users folder that is the _exact same name_ as the user folder on the old drive; this step is important!

    Now, open Terminal (/Applications/Utilities/Terminal). Set up your screen so you can easily see the Terminal window and both Finder windows with the Users folders open. Type the following:

    sudo ditto -V

    Then drag the user folder from the old hard drive (the one with the shortname of the old user account) to the Terminal window. That should auto-populate its pathname. Now drag the user folder from the new hard drive (the one you just created with that same user shortname) to the Terminal window; its address should populate in the Terminal window. You should be left with a command that looks like this:

    sudo ditto -V OldHD/Users/shortname /Users/shortname

    Press “return”, enter your password when prompted, press “return” again and watch the magic. You’d suddenly see that all of the files from your older user account will begin transferring to the new folder that you created. Basically, the “ditto” command is what copies all of the files and the “-V” sets it to do that verbosely, which means it displays it’s work. This also means that it will specifically show you what files it receives I/O errors on. There are several other ways to use ditto but this is the way that I use it the most. It should also be mentioned that adding the “sudo” in front of the command is redundant in this situation. Sudo basically means “root”, and since you’re already the root user it’s unnecessary to add that in. I like to show it in the example so if you decide to try this from another user account you know to type in “sudo” first so that you don’t run into any permissions errors.

    Go get a cup of coffee or take a nap and let ditto do it’s thing. If you haven’t seen it do anything in a while, but it hasn’t brought you a new prompt yet (which is the signal that it’s done) just let it go! If your hard drive really is failing then it might stall during the ditto but I promise that if you stay patient (sometimes for hours) it will continue. If it can’t get anything else it will bring you a new command prompt.

    You’re not done yet! Once the folder has finished copying, you need to create the user account on your new machine. Open System Preferences and hit Accounts. Now hit the “+” sign on the bottom left of the Accounts pane. Enter the _same exact_ shortname that is used for the folder in “Users”. _Do not change that shortname_. Ever. All of the permissions on the account are based on that shortname so even if you misspelled your name you’re stuck with it for now. When you press “ok” the system will automatically notice that there is already a folder in your user account and it will ask if you’d like to use that folder for this account, simply say “yes” and it will hook you up.

    If you’re running Leopard, you’re done! Just log out of the root account and log into your migrated account. If you’re running Tiger, I’d recommend doing one last step. In Terminal, type in:

    sudo chown -R shortname /Users/shortname

    Replace “shortname” with the actual shortname of the account. Then hit “enter”. It will prompt you for the password of the account your logged in as (in this case “root”), enter that and hit “enter” again. This will give that user permission to access all of the files in its own account. Purists do tend to scoff at that last step since not _every_ file in the account should have the same permissions, but most techs that I know agree it’s a better choice then ending up being locked out of your own files. It’s always recommended to run a permissions repair (/Applications/Utilities/Disk Utility) after this is all said and done.

    Congratulations! You now know how to use the “ditto” command!

  • eWaste Roundup Recap

    Another year, another electronic waste roundup. With the help of about one hundred volunteers and financial support from local businesses and our vendors, we collected over 150 tons of electronic waste last Saturday. The previous two events were massively successful, if somewhat hampered by their location outside our Burlington store.

    Marketing manager Kali Hilke and executive assistant Kerry Westhelle did a truly fantastic job organizing this year’s event at the South Burlington high school, just down the road from our flagship store. From traffic control on Dorset Street to maticulous sorting and expedient palletizing, the event was a marvel of efficiency. Most of Small Dog’s employees turned out (the few who couldn’t make it were assigned to work in our stores that day!), and it was great to meet the other volunteers and friendly staff of WeRecycle!, the company that conducts the actual recycling.

    If you subscribe to Kibbles and Bytes, our Friday newsletter, you’ve read Don’s commentary on how we measure our success as a company. It’s not just about profit for us; it’s about people and our planet. This multiple bottom lines strategy is unique in the modern business world, and we take it very seriously. Our ewaste initiative has been successful to the point that we’ve now recycled more pounds of electronics than we’ve sold!

    While ewaste recycling is available all over, many of the firms responsible for the actual recycling ship the waste overseas where it’s dismantled and left in piles indefinitely. WeRecycle! signed the eStewards pledge, promising that no e-waste will end up in landfills or incinerators, be exported to developing countries, be sent to prison labor operations, and no private data will be released from recycled, but working, hard drives.

    “Behind the Scenes of Our Record 2009 Ewaste Collection Event”:http://www.youtube.com/watch?v=rS7yVUgKri0&fmt=18

    “Time Lapse Video: 150 Tons of eWaste Collected in 5 Hours!”:http://www.youtube.com/watch?v=8TyS38j5OzU&fmt=18

    “2009 eWaste Recycling Event on Flickr”:http://www.flickr.com/photos/smalldog/sets/72157617001479815/

    When you buy a new, used, or refurbished Mac from Small Dog Electroncis, we will happily recycle your last computer setup. It’s just one more reason we’re always by your side.

  • Happy Tuesday,

    Mark Engelhardt called me last night and asking me to check out the Waitsfield offices after the fire alarm was tripped. I arrived a few minutes later to flashing lights, ambulances, fire trucks, and at least a dozen volunteer firefighters. Astonished and amazed that the volunteers beat me to the scene, I unlocked the front door and we went room by room to make sure nothing was on fire. About an hour after the ordeal began, we confirmed that nothing was on fire, and I made the rounds with Tony to lock up.

    I was reminded of a short story I wrote in high school detailing my family’s experience with the fire department one very cold morning. The woodstove vents had been left open too long, causing a chimney fire, and the interaction between my father and the firefighters inspired the story. I searched my Gmail account and found the file immediately. Mind you, it was written in ClarisWorks 3 on a Mac clone in 1997. I was able to open the document in TextEdit without a hitch.

    In a world with ever changing formats and media, archiving data for posterity is a tough thing to do. I’m thankful Apple is still supporting these old formats, but am beginning to realize that it’s time to convert those old documents to a modern, non-proprietary format like RTF, and copy them to a modern non-mechanical medium like DVD. Or paper.

    As always, keep in touch.

    Matt
    “matt@smalldog.com”:mailto:matt@smalldog.com

  • Mac vs PC, Ad Nauseam!

    This week I was quoted in a MacNewsWorld article titled “Mac OS X vs. Windows: Does Soul Matter?” The article asks “beneath the…

  • It looks like good weather for our big ewaste event. We moved it this year from our store to the local high school so that we can handle the huge amount of old electronics that come to us. Last year, our neighbors in the shopping center were amazed at the amount of traffic we generated and then dismayed at the fact that their customers couldn’t get in to shop.

    I told the Small Dog employees yesterday how important it is to embrace change because today’s amazing technology so rapidly becomes tomorrow’s ewaste. We’ll see that in action on Saturday. Watch our blog for pictures on Monday!

    Thank you for reading this issue of Kibbles & Bytes!

    Your Kibbles & Bytes Team,
    _Don, Kali & Ed_

  • Mac vs PC Ad Nauseam

    This week I was quoted in a “MacNewsWorld”:http://www.macnewsworld.com/story/66819.html article titled “Mac OS X vs. Windows: Does Soul Matter?” The article asks “beneath the superficial surface features, what are the real core differences between the two operating systems?”. The particular focus of the article is on the emotional pull of the two different (but closely related) platforms.

    My point of view on this topic is that Mac OS and Windows have a shared linage of sorts, but have always pursued different goals and fundamentally have different design philosophies. In particular, while Apple chose to pursue the seamless integration of hardware and software along with simplicity and ease of use, Microsoft sought ways to get its software on as many PCs as possible. Microsoft massively achieved this goal, since about 90% of all computers run some flavor of Windows.

    A beneficial side effect of Microsoft’s approach was near-global software standardization, which probably helped facilitate mass-adoption of personal computers. Of course, it also made Windows an attractive and easy target for viruses, trojans, worms, and other computer attacks. Vista is apparently much more secure than earlier versions of Windows.

    Apple never sought total global OS domination, but instead sought a large, healthy, and sustainable niche in the computing ecosystem. With 30 million users and a mature modern OS, Apple has also achieved its goal.

    Some would say Apple’s goal was simply to be the flat-out “best” personal computing platform. That designation is subjective, but many surveys show Apple to be among the most admired companies in the US.

    I admit, I’ve been a PC-basher in the past. However, I no longer want to waste time with that. I’ve grown exceedingly bored with the Mac vs PC debate. This is partly because the invective and spite around the issue has grown truly unpleasant. Visit any Mac vs PC message board, and you’ll find vulgar, overblown rhetoric (on both sides). It can be amusing — like the Mac-basher who recently responded to the topic “Thinking of getting a Mac” with the statement “OSX users. 10 million. Windows users. 100 Billion. Any questions? You can shut up now.” Rude, and there’s nowhere near 100 billion people in the world.

    Apple and Microsoft are both guilty as well – Mac with their “Get A Mac” TV ads, and Microsoft with their recent “Mac Tax” ads.

    I prefer any version of Mac OS X to XP or Vista, and fortunately I can do all of my computer-related tasks on a Mac. Mac works for me — in fact, Mac is excellent for me.

    But I recognize that Windows works for many people. I’m grateful I don’t have to use it, just like I’m grateful I don’t have to commute in a panel van every day. I’ll continue to make my preference known with my dollars — and not on overheated Internet forums. From now on, you’ll never hear me say “Windows sucks”.

    Red Sox vs Yankees, however — that’s a debate I’ll get into anytime. Not that we Red Sox fans have anything to brag about right now. Or often did in the past. But still.

    You can read “the MacNewsWorld / TechNewsWorld article by clicking here.”:http://www.macnewsworld.com/story/66819.html