Now I want to see if I can produce 10 to 20 of these cards to use with our new XOs. Today I plan to test out a process for creating these cards using:
- ativa SDHC 4GB cards
- my Asus eeepc 1000
It recognized the card as /dev/sdc1 and mounted it on /media/OLPCRoot. At a root prompt on the eepc, I then did the following:
- mkdir /opt/OLPCRoot
- cp -R /media/OLPCRoot/* /opt/OLPCRoot
- inserted the ativa SD card into the eeepc card reader (it recognized it again as /dev/sdc1)
- umount /dev/sdc1
- dd if=/dev/zero of=/dev/sdc bs=4096 count=1 (to erase the partition table)
- echo -e ',,L,*\n\n\n' | sfdisk /dev/sdc (to create a new partition table)
- mke2fs -jLOLPCRoot /dev/sdc1 (to create an ext2 file system on the new partition)
- removed the card and reinserted it so it would automount
- cp -R /opt/OLPCRoot/* /media/OLPCRoot/
It Works (sort of)!
I took the new SD card out of the eeepc's card reader and put it in my XO. I turned it on and... it worked! Actually, it booted as far as the custom Xubuntu splash screen and then seemed to freeze. After what seemed like 2 minutes, I was about to turn off the machine using the power button when the progress bar started advancing. It finally proceeded to the gdm login screen, and I tried logging in using the olpc username and password I have configured on the source card. I got an error message that the $HOME/.dmrc file should be owned by the user with permissions of 644.
It looks like this process is close, but will require some tweeking. I'll talk to Matt about it tomorrow. In the mean time, I have confirmed that the ativa SD cards will work, so I can put in an order for a bunch of them tomorrow while the sale is on at Office Depot.