**** BEGIN LOGGING AT Mon Aug 04 02:59:56 2008 Aug 04 03:00:41 what i really want is for this box to run svn and host my svn repos... I hope it to be just kind of a set it and forget it kind of thing Aug 04 03:01:08 but my problem is that apparently the slug can pick and choose on each boot what usb drive it assigns sda, sdb etc Aug 04 03:01:30 so mwester suggested that I refer to the drives by UUID or label instead Aug 04 03:02:06 hence this has gotten much more complicated than i'd originally intended Aug 04 03:03:08 i guess i can stick in another memstick, put a partition on it with a label and try the LABEL=parlance in fstab Aug 04 03:03:20 i would try it with the raid array but not sure how to label that Aug 04 03:04:45 ok Aug 04 03:04:55 can you do "fdisk -l" Aug 04 03:05:36 going to paste this a bit at a time Aug 04 03:05:40 root@SVNSVR:/dev/.udev$ fdisk -l Aug 04 03:05:40 Disk /dev/sda: 16.1 GB, 16106127360 bytes Aug 04 03:05:40 64 heads, 32 sectors/track, 15360 cylinders Aug 04 03:05:40 Units = cylinders of 2048 * 512 = 1048576 bytes Aug 04 03:05:40 Device Boot Start End Blocks Id System Aug 04 03:05:41 Disk /dev/sdb: 16.1 GB, 16106127360 bytes Aug 04 03:05:43 64 heads, 32 sectors/track, 15360 cylinders Aug 04 03:05:45 Units = cylinders of 2048 * 512 = 1048576 bytes Aug 04 03:05:50 Device Boot Start End Blocks Id System Aug 04 03:05:50 Disk /dev/sdc: 2055 MB, 2055021056 bytes Aug 04 03:05:51 16 heads, 63 sectors/track, 3981 cylinders Aug 04 03:05:53 Units = cylinders of 1008 * 512 = 516096 bytes Aug 04 03:05:59 Device Boot Start End Blocks Id System Aug 04 03:05:59 Disk /dev/md4: 16.1 GB, 16105996288 bytes Aug 04 03:05:59 2 heads, 4 sectors/track, 3932128 cylinders Aug 04 03:06:01 Units = cylinders of 8 * 512 = 4096 bytes Aug 04 03:06:03 Disk /dev/md4 doesn't contain a valid partition table Aug 04 03:06:22 that is 3 memory sticks Aug 04 03:06:53 the one I'm booting from I can't seem to get on /sda (unless I boot up without any plugged and then plug in only that one) Aug 04 03:07:14 which one is your root disk Aug 04 03:07:19 sdc Aug 04 03:07:23 sda? Aug 04 03:07:25 nope Aug 04 03:07:30 sda and sdb are my raid array Aug 04 03:07:34 sdc is root and swap Aug 04 03:07:35 ok Aug 04 03:07:47 so what happens when you reboot Aug 04 03:08:15 oh everything works fine... but according to folks here (and evidence on the wiki) it's possible they could change Aug 04 03:08:29 ok, I see Aug 04 03:08:38 so I was hoping to change everything to mount by label to avoid any potential problems Aug 04 03:08:39 so try this Aug 04 03:09:09 "/lib/udev/vol_id -d /dev/sdc1" Aug 04 03:09:55 root@SVNSVR:/dev/.udev$ /lib/udev/vol_id -d /dev/sdc1 Aug 04 03:09:55 ID_FS_USAGE=filesystem Aug 04 03:09:55 ID_FS_TYPE=ext3 Aug 04 03:09:55 ID_FS_VERSION=1.0 Aug 04 03:09:55 ID_FS_UUID=7cbc35f9-7388-41c4-8bba-875cb5a4fbdf Aug 04 03:09:56 ID_FS_LABEL=ROOT Aug 04 03:09:58 ID_FS_LABEL_SAFE=ROOT Aug 04 03:10:14 k, good Aug 04 03:11:42 can you give me your /etc/fstab again? Aug 04 03:12:06 root@SVNSVR:/dev/.udev$ cat /etc/fstab Aug 04 03:12:06 proc /proc proc defaults 0 0 Aug 04 03:12:06 tmpfs /var/volatile tmpfs mode=0755 0 0 Aug 04 03:12:06 #tmpfs /media/ram tmpfs defaults 0 0 Aug 04 03:12:06 tmpfs /dev/shm tmpfs mode=0777 0 0 Aug 04 03:12:07 usbfs /proc/bus/usb usbfs defaults 0 0 Aug 04 03:12:09 LABEL=SWAP swap swap defaults 0 0 Aug 04 03:13:22 add the following in the first line Aug 04 03:15:03 LABEL=ROOT / ext3 defaults,errors=remount-ro 0 1 Aug 04 03:16:26 ok so replace the first line with that right? Aug 04 03:16:53 can I comment out the original line with ;? Aug 04 03:22:16 no not replace it Aug 04 03:22:34 put it before the 1st line "proc........" Aug 04 03:22:56 ah crap Aug 04 03:22:58 stupid irc Aug 04 03:23:07 there is a line missing from the fstab Aug 04 03:23:16 mirc throws it out because it begins with a slash Aug 04 03:23:18 one sec Aug 04 03:23:29 "/dev/sdc1 / ext3 noatime 1 1 Aug 04 03:23:42 (i added the quote) Aug 04 03:24:17 sorry about that... Aug 04 03:25:36 that is the first line of fstab Aug 04 03:28:08 k, that is technically correct but if you afraid of the devices changing you should change /dev/sdc1 to LABEL=ROOT Aug 04 03:28:33 it should then read "LABEL=ROOT / ext3 noatime 1 1" Aug 04 03:28:52 ok i just was kind of afraid to try it with the root partition in case the LABEL= thing is wrong Aug 04 03:33:56 also, looks like i can use UUID= too Aug 04 03:35:51 yes you can Aug 04 03:36:49 ok the wiki mentions changing the kernel command line as well Aug 04 03:37:20 where, what does it say Aug 04 03:37:48 Kernel command line Aug 04 03:37:48 The kernel doesn't look in /etc/fstab to find the root partition, because /etc/fstab isn't mounted at that time. Instead, the root partition is specified on the kernel command line using the root= parameter; if nothing is specified a default is used. Aug 04 03:37:48 For Debian / NSLU2, changing the kernel command line is described on ChangeKernelCommandLine. Currently it's a bit complicated. You need to add a parameter something like: Aug 04 03:37:48 root=/dev/disk/by-label/root Aug 04 03:38:01 http://www.nslu2-linux.org/wiki/HowTo/MountDisksByLabel Aug 04 03:40:20 k, sec Aug 04 03:43:10 does this work "apex-env printenv" Aug 04 03:44:21 nope Aug 04 03:44:22 root@SVNSVR:/$ apex-env printenv Aug 04 03:44:22 -sh: apex-env: not found Aug 04 03:44:36 is that something i can install? Aug 04 03:45:06 doubt it, I think it is debian specific Aug 04 03:45:15 ah Aug 04 03:48:52 k, I think you don't need to change that Aug 04 03:48:56 http://www.nabble.com/Mount-by-UUID-in-SlugOS-td15371935.html Aug 04 03:49:44 nice find! Aug 04 03:54:33 google ;-) Aug 04 03:55:33 ok and then I guess I'm confused as to how to apply this concept to mounting my raid array. I have a startup script in init.d that contains this command: Aug 04 03:55:33 "/sbin/mdadm --assemble /dev/md0 /dev/sda1 /dev/sdb1" Aug 04 03:56:09 md0 is the array and sda1 and sdb1 are the two disks that comprise it Aug 04 03:57:27 so can i use the uuid of sda1 and sdb1 somehow? Aug 04 04:24:07 for mounting? Aug 04 04:30:44 yeah but that is the command for mounting the array Aug 04 04:30:57 the script umounts sda1 and sdb1 prior to that Aug 04 04:31:59 not sure if that would work with uuid or labels Aug 04 04:32:19 i guess i could try it Aug 04 14:14:35 debian hwclock issue anyone? Aug 04 15:14:30 hey l00nix thanks again for all your help last night... I know you came here to solve your own problem so that was really nice of you to spend a couple hours helping me with mine. Hope you get some help with hwclock--I would if I could. Aug 04 15:16:23 hey, no worries Aug 04 15:16:29 glad to "pay it forward" Aug 04 15:16:35 did you get it to work? Aug 04 15:16:59 actually i fell asleep last night... going to try it now :) Aug 04 15:20:36 LOL! Aug 04 15:20:36 root@SVNSVR:/$ blkid /dev/sda1 Aug 04 15:20:36 root@SVNSVR:/$ blkid /dev/sdb1 Aug 04 15:20:59 err trying again: Aug 04 15:20:59 root@SVNSVR:/$ blkid /dev/sda1 Aug 04 15:20:59 "/dev/sda1: UUID="32326f57-b9f9-486f-a502-eb86e9e4ae96" SEC_TYPE="ext2" TYPE="ext3" Aug 04 15:20:59 root@SVNSVR:/$ blkid /dev/sdb1 Aug 04 15:20:59 "/dev/sdb1: UUID="32326f57-b9f9-486f-a502-eb86e9e4ae96" SEC_TYPE="ext2" TYPE="ext3" Aug 04 15:21:29 I guess because they are mirrors of one another the UUID gets mirrored as well? Aug 04 15:59:32 looks like it Aug 04 16:04:05 so much for universally unique :D Aug 04 20:48:06 Does the new ethernet driver in "etch-and-a-half" eliminate the need for the proprietary driver supplied by/through Intel? c.f.: "Hardware-specific Notes" in http://www.debian.org/releases/etch/etchnhalf Aug 04 21:12:59 oooooh Aug 04 21:15:19 what is the best all-round ftp server to start with on an unslung? Aug 04 21:15:52 easy to install/setup and lightweight Aug 04 21:25:37 my usb speakers give distorted sound. "ALSA: underrun, at least 0ms". any help appreciated Aug 04 21:29:39 anyone using sound on their slug? Aug 04 22:20:58 anyone know why i'm getting this msg when trying to run lighttpd? 2008-08-04 23:27:35: (plugin.c.165) dlopen() failed for: /opt/lib/lighttpd/mod_auth.so libldap-2.3.so.0: cannot open shared object file: No such file or directory Aug 04 22:23:44 mod_auth.so is in that location **** ENDING LOGGING AT Tue Aug 05 02:59:57 2008