HowTo: Burn an ISO to a USB drive on your Mac

It’s a good thing to learn something “new” every day… Last night my wife hands me one of our old Asus Eee PC 900’s. It’s a tiny thing. Nothing special. Quite frankly, the keyboard REALLY sucks. I’d installed EasyPeasy on it back in the day, but it was woefully out of date – like Firefox 3.5 out of date. Anyhow, I think to myself, “there must be a better Linux distro out there for this poor thing.” Sure enough, there is – CrunchBang (or #!). Download the install iso. Hmmm. No optical drive on it – I mean, does anyone REALLY use CD or DVDs anymore? So… How to burn an ISO to a USB drive on your Mac? Here’s how to do it..

Bust open the terminal. We’re heading out into the wilds of the CLI, kids!

Insert your thumbdrive. You should see it pop up on your desktop, all nice and mounted, ready for you to use. Only it isn’t. If you can see it on your desktop, you can’t use it the way we need to.

$ diskutil list

You should see something like this:

/dev/disk0
   #:      TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme       *251.0 GB   disk0
   1:      EFI                          209.7 MB   disk0s1
   2:      Apple_CoreStorage            249.8 GB   disk0s2
   3:      Apple_Boot Recovery HD       814.4 MB   disk0s3
/dev/disk1
   #:      TYPE NAME                    SIZE       IDENTIFIER
   0:      Apple_HFS Macintosh HD      *249.5 GB   disk1
/dev/disk2
   #:      TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme       *1.0 TB     disk2
   1:      EFI                          209.7 MB   disk2s1
   2:      Apple_HFS My Passport        999.8 GB   disk2s2
/dev/disk3
   #:      TYPE NAME                    SIZE       IDENTIFIER
   0:      FDisk_partition_scheme      *1.0 GB     disk3
   1:      DOS_FAT_32 UNTITLED          1.0 GB     disk3s1

In the instance above, I’ve noted my thumbdrive – /dev/disk3. It happened to be “UNTITLED”, but it could be whatever name you may have given it. Anyhow, we essentially need to unmount everything on that disk, but not remove it completely from the system.

$ diskutil unmountDisk /dev/disk3
Unmount of all volumes on disk3 was successful

That solves that. Now, where is that ISO image you have? You need to know where it is so you can copy it to that thumbdrive. By the way – do this on a thumbdrive that is either backed up, or in other ways not useful (like old, and small, whatever). You’ll note the one I’m using is 1G. LOL! I got it with a Cisco router that I bought. It came with “management” software on it that sucks. But I digress. That thumbdrive, when it’s all over, will have NOTHING on it but the ISO you’re “burning” to it. On to the destructive part…

$ sudo dd if=~/Desktop/crunchbang-11-20130506-i486.iso of=/dev/rdisk3 bs=128k
6168+0 records in
6168+0 records out
808452096 bytes transferred in 186.954879 secs (4324317 bytes/sec)

I should note – you won’t see any activity (more on that in a second). You hit [Return] and the computer goes to work, not telling if it’s working or not. dd is one of those classic commands – it ain’t fancy, or pretty, or all high-falutin’. It does one thing, and it does exactly what you told it to do, or it errors. I should also note – if you screw up an point that to something important, like, in my disk list above, disk0? Well, you’ll have the joy of reinstalling the OS on your Mac, most likely.

Breakdown:
sudo – most of you know what this is. I hope. It allows you to do things as the “superuser” on your Mac (i.e., superuser do).
dd – command to convert and copy a file (I don’t know why it’s named that).
if=<filename> – input file
of=<filename> – output file
bs=n – block size… You can use 1m, 1k, 128k – you get the idea. I like 128k, there’s not much speed gained by anything bigger.

Some of you are looking at that output file location and thinking “Where in the heck did he get rdisk3 from??” Well… It’s the same location as disk3, only it’s a “raw” device connection. We’re stepping outside the rules a little bit – taking a little known shortcut that doesn’t have any stoplights, if you will. Or speed limits. You’ll essentially move the same data in about 1/6th of the time if you /dev/rdisk[n]

The last thing that you should do is eject it – but how do you do that, since you can’t drag it to the trash? diskutil still has you covered.

$ diskutil eject disk3
Disk disk3 ejected

If you really need to “see” something, you’ll need to have (or install) Pipe Viewer. Unless you already have some system like MacPorts or HomeBrew, have it working, and know how to use it, just suck it up and deal with not seeing something. Really. I mean it. Anyhow, maybe you’re a dork like me, and you have Pipe Viewer. Instead of the dd command we used initially, we’re going to modify it.

$ pv -petr ~/Desktop/crunchbang-11-20130506-i486.iso | sudo dd of=/dev/rdisk3 bs=128k
0:00:33 [4.11MiB/s] [========>                                      ] 17% ETA 0:02:40

There you go. A nice little visual guide for elapsed time, how fast, and an estimate for how long it’s going to take. If you want to know more about Pipe Viewer, there’s a great article on it here.

Well. This turned out longer than I expected. Anyhow, I hope it helps one of you out there. Someday. Maybe.

Have a great day!

My first month at Ping…

Ping Identity LogoThose of you that know me know that I’ve recently changed employers, and I’ve just completed my first month at Ping, so I thought I’d write a little something up.

FedEx was really good to me, and I’m thankful to have worked there, and worked with some amazing talent. Prior to working at FedEx, I worked at CA as a senior technical consultant in the eTrust brand. I spent a LOT of time on the road, and moving to FedEx allowed me to get off the road, and have some “worklife balance”.

So here I am now, at Ping Identity. I’ve been here almost a month, and I can’t tell you how cool it feels so far. Heck, a week into working for them, they asked me to write a blog post to put on the company’s blog. If you want to read it, you can head over to their blog site and check it out.

This company is different than anything I’ve really ever worked for – it’s small, it’s hungry, it’s disruptive, it’s looking for the next big idea – from everyone in the company, not just those few that are lucky enough to work within earshot of a C-Level exec. Sure, that may have something to do with the fact that we’re still small, but I don’t think so. The founder, Andre Durand is a different kind of guy – different, certainly, from anyone I’ve ever worked for. He had a chat with us newbies at our orientation this week at HQ in Denver, giving background on him, the company, and our values. When is the last time you had your CEO make time to sit down with a group of your fellow new-hires… For an hour?

My first month at Ping? I’ve embarked on a journey. Who knows where it goes, exactly… But I know this… The road is going to be interesting, and I think I’ll have the opportunity to throw some suggested routes out to my fellow Identians. The first month is always the strangest – get your gear, figure it out/set it up, try and figure out who’s who, sort out what you’re REALLY going to do, etc. I can’t wait for next month, and what it brings.

By the way, we’ve got a ton of slots open right now. If you’re interested, browse the careers site – and hit me up if you’re interested in anything.

Replacing the Google RSS Feed Reader…

I’m replacing Google Reader. It’s apparent that the tool is dying, and that’s a shame – it was pretty damned good. That said, there’s generally something good that comes about when this sort of thing happens, and this time is no different.

Is RSS going away? Despite a post a while back from Camen Design suggesting such a possibility based on various things, I (and Camen Design) don’t believe that’s the case. I use the hell out of Google’s RSS feed reader to track any number of sites, especially in regards to information security – specifically my Identity and Access Management blogs/sites/whatever. I don’t want to visit 30+ sites every day to see if there is anything new!

Anyhow, I did my usual thing, and got out there and started poking around to see what could handle my plethora of feeds. I looked at a few plugins for my favorite browser (Firefox), but the ones that appeared promising appeared to be dying on the vine.

And then, the heavens opened…

Feedly. What a great looking site! It’s got plugins for all the major browsers to help you add content to your feeds. It plugs into your Twitter, Facebook, and Google Reader accounts. It lays it out all snazzy, kinda like a magazine plugin… Simply great. I heartily recommend checking it out.

Hello There!

Bobblehead AndyHello there. My name is Andrew, and I’ll be your blogger today. Well, probably every day. Well, probably not every day, but I’ll try to be more frequent than I have been elsewhere.

My goal for this blog is to talk about my worklife, primarily. Links that I find that are good to have, knowledge that I learn and wish to share, that sort of thing. I’ll primarily be talking about the regular stuff I do – centering on identity and access management.

You may have reached this space from my lightly used Firefox plugin, TamperData Icon Redux. It sports about 3000 daily users, and has hit a bit more than 55K total downloads. You can check the statistics out here, if you care.

If you’re interested in learning more about me, you can check out my About Andrew page. I’ll be adding more stuff as days go by, so be sure to stop back.