I’m such
Step 2 is to copy files to the sd card, and somehow make it bootable. I’m sitting on OSX so I plug in my sd-card (in a external USB-card reader, I might add).
First I want to figure out what the device is called. Let’s see what devices we have.
ls /dev/
Oh, that gave lots of output. But I expected to find sda, sdb and similar that I know so well from centOS. Let’s see what’s mounted instead
mount
That was more reasonable. It told me that I have /dev/disk3s1 mounted on /Volumes/SDCARD . For once it payed off to have a descriptive label on my volumes.
ls /dev/disk*
Aha. Knowing that linux harddrives are named sda sdb sdc ,and partitions are sda1 sda2, I can assume OSX hdds are called disk1, disk2, disk3 and partions are disk1s1 disk1s2. OSX will refuse to make changes to a disk if a partition is in use, so let’s unmount it.
umount /dev/disk3s1
Oh, I know this…
sudo umount /dev/disk3s1
I guess not. Let’s try that mentioned diskutil tool then
diskutil unmount /dev/disk3s1

Yay. progress. Next, after some reading, I figure I need to do a copy from archlinux iso to the /dev/disk3. I think what we need to do is write to the first sector of the sdcard. Which is where the master boot records are held. Also called MBR. That’s why a standard cp won’t work. We need the low-level tool dd.
dd if=archlinux-2011.08.19-core-i686.iso of=/dev/disk3 bs=8192
Woah. It’s a copy command, so I can figure out that it’ll copy from if= to of=. But bs=8192? How does anyone come up with a number like that?
Because the guys on arch tells you to use this number, that’s why. And this was my main gripe with anything linux. Who wants to become a living reference of linux commands? Do I have to google everything, as soon as I want to do something simple?
No, I don’t need to know all the commands. I do need to know a solid subset of the most used once to become a effective linux user. And after that I learn the ones that I need to complete whatever my objective is. Also. This command is not that simple, and I’ll probably not use it ever again. So it’s fine.
man dd
Shows that the bs option decides block size. I choose to not ponder over it more this day, but maybe that’ll come back and haunt me.
There! we are done. Eject the device with
diskutil eject /dev/disk3