Monday, December 20, 2010

Ubuntu Server auto USB mounting

I finally got around to setting up the nT330i box that I purchased like 3 months ago. I wasted so much time because I thought the built-in SD card slot hooks up to a USB interface, but turns out it's hooked up to more like the SATA/IDE interface, so the SD card will only be detected if I rebooted the system, but not a hot plug. I finally figured it out by using an external USB-SD adapter, and viola, the SD card showed right up in dmesg when I plugged it in.

Anyway, here are the notes for myself so I don't ever forget how I set up the udev rules to automatically mount them using udev rules:

1. Create the file /etc/udev/rules.d/10-persistent-usb-storage.rules, and put in it the following content as one long line:
KERNEL=="sd?1", SUBSYSTEMS=="usb", RUN+="/bin/mount /dev/%k /media/usb"

2. Reload udev by running "/etc/init.d/udev reload"

Of course, after I got all of this working, then I figured out that for my purpose, I could have just installed 'usbmount', and it will automatically do all the work for me (even unmounting). So... apt-get install usbmount took care of it. The only down side is that I need to physically remove the entire USB adapter (not just the SD card), but that I can live with.

Wednesday, October 21, 2009

Ian's New Room

7 month after Ian is born, we finally got the baby room in shape. Next step is to move the crib in here. Ian seems to really like the new room with the open play area.





Wednesday, September 02, 2009

Latest Ian pictures update

We started feeding Ian some solid foods and attempt to get him used to the potty.

這幾天開始喂雅硯吃東西,也開始練習坐馬桶。














Saturday, August 22, 2009

Ian's new hat and first time on high chair

Been taking videos with my new iPhone and uploading directly from the phone. Makes it a whole lot easier to share!

新手機可以錄影然後直接上傳,很方便!






Sunday, August 16, 2009

Last minute Ian picture uploads

Only home for 1 more hour before heading out again, just uploaded a bunch new pictures.

From Ian Pictures


From Ian Pictures


From Ian Pictures


From Ian Pictures


From Ian Pictures

Sunday, August 09, 2009

新手機

終於下決心買了iPhone,有手寫中文的功能,現在就從機場寫。這個禮拜會很忙。

Ian's passport photo 雅硯的護照照片

Took Ian to get passport last month, and had his photo taken there. He was crying pretty much the whole time.

上個月帶雅硯去辦護照,沒帶照片,在那邊臨時照,雅硯哭的很厲害,邊拍照邊哭。

From Ian Pictures