December 14, 2005

Previous -- December 2005 -- Next
The semester is FINALLY over. I've never been so glad to finish a semester, and after dedicating the last 2 weeks of my life to a crazy VLSI project (the layout for a 32 bit adder) and exams and programming projects, it's finally done. Not my best semester grade wise, but now that I have two internships and I'm getting a Masters, grades don't matter that much anymore. I'm just so happy to be done and finally have time to hang out with friends!

For everyone still studying for finals, here's some (cool) coffee.

In case anyone (I'm looking at you person who found this page via Google) wonders how to make their external USB hard drive or flash drive always automount to the same directory in Linux each time:
Done on Fedora Core 4 with a Western Digital 160 GB external hard drive. First read up on udev to get it set up correctly. Create a file in /etc/udev/rules.d called "10-local.rules". The 10 at the start is so udev looks at that rule set first.
Inside that file, I have:
BUS="scsi", SYSFS{model}="1600BB External", NAME="%k", SYMLINK="usbhd%n"
BUS="scsi", SYSFS{model}="USB Flash Memory", NAME="%k", SYMLINK="usbflash"
The first line is for my external harddrive, the second is for my flash drive. udev will then always mount my external drive (recognized via the model description) as usbhd with each partition on it being /etc/usbhd1, /etc/usbhd2, etc which is a static link to whatever Linux decided it should be (ie /dev/sda1 or /dev/sdb1).

Then I added the following to my /etc/fstab file:
/dev/usbhd1 /media/mp3 auto user,noauto 0 0
/dev/usbhd5 /media/photo auto user,noauto 0 0
/dev/usbhd6 /media/misc auto user,noauto 0 0
/dev/usbhd7 /media/video auto user,noauto 0 0
/dev/usbflash /media/flash auto user,noauto 0 0
Since automount is automatically enabled my default in FC4, whenever I plug-in or bootup with the external harddrive installed, it will automatically mount the first partition on /media/mp3, and so on for the rest. Remember to create those folders first however.

Oh, and as an addendum to my ID update below, here's a form of ID I do support: Incompetent Design

Previous -- December 2005 -- Next