**** BEGIN LOGGING AT Sat Feb 09 02:59:57 2008 Feb 09 08:51:10 hi all Feb 09 09:51:30 anyone know how I can mount root disk by UUID in Slug OS 4.8 beta? It seems like my partitions are shuffled as I connect my USB HDD, and thus the system cannot find the system partition.. http://pastebin.com/m69affeca shows a boot-log, where it on line 178 tries to mount /dev/sda1 Feb 09 09:53:34 the UUID given on that line is correct, but /dev/sda1 in this case points to the wrong device,.. it should be /dev/sdb1 (in dual disk setup), and /dev/sda1 (in single disk setup) Feb 09 11:09:46 anyone around to help me move a hd to memstick in debian nslu2? i have a few queries from what is described on the wiki Feb 09 11:47:02 hi, does anyone know how demanding an openldap server is in a ~5-PC network, when used only for user-authentication? Would a Slug under etch manage it? Feb 09 11:57:25 not sure lyakh Feb 09 12:08:38 Reedy_Boy: ! Feb 09 12:09:14 hey Feb 09 12:09:21 hey, got 5 mins? Feb 09 12:10:55 yeah, im a bit worse for ware after last night, but should be reasonable coherant Feb 09 12:10:57 whats up Feb 09 12:11:01 heh Feb 09 12:11:03 big nite huh Feb 09 12:11:15 well, im embarking on that move of stuff from disk to memstick Feb 09 12:11:18 not really, just havent really drunk anything since around the beginning of august Feb 09 12:11:21 and falling over a few hurdles along the way Feb 09 12:11:59 want to do it in here or pvtmsg? Feb 09 12:12:10 heres fine with me Feb 09 12:12:22 k ace Feb 09 12:12:22 so Feb 09 12:12:29 current system is debian Feb 09 12:12:38 with a 500gb ish disk Feb 09 12:12:52 looks like this Feb 09 12:12:58 /dev/sda1 1 366 2939863+ 83 Linux Feb 09 12:12:58 /dev/sda2 367 375 72292+ 82 Linux swap / Solaris Feb 09 12:13:01 /dev/sda3 376 48641 387696645 83 Linux Feb 09 12:13:18 i just bought a 4gb stick, and a 750gb wd disk Feb 09 12:13:38 i want to move the os to the stick, and the 'media' onto the wd Feb 09 12:13:50 ive put the stick in, via a hub Feb 09 12:14:15 i have attempted to fdisk it to some partitions Feb 09 12:14:22 /dev/sdb1 1 801 2934848 83 Linux Feb 09 12:14:22 /dev/sdb2 802 1007 754784 83 Linux Feb 09 12:14:22 /dev/sdb3 1008 1081 271136 83 Linux Feb 09 12:14:40 from kind following the wiki Feb 09 12:14:44 *kinda Feb 09 12:14:59 http://www.nslu2-linux.org/wiki/OpenSlug/InitialisingDisks Feb 09 12:15:22 * pear wonders the best forum for nslu2...there doesn not seem to be any links from the wiki :( Feb 09 12:15:22 although i see i havent quite made sdb2 correctly a swap Feb 09 12:15:45 pear, there isnt really a forum, except a german one.. Other than that its here, or via the maiiling lists Feb 09 12:15:58 i was then reading up on rsync and dd to copy my os files to the stick Feb 09 12:16:26 reedy_boy: isee. do you know if there is an archive of such the mailing list? Feb 09 12:16:29 i tried running rsync once, but it appread to be buildinga file list which included all my 'media' files too Feb 09 12:16:49 so, thats kinda where im at Feb 09 12:16:52 pear, the yahoo sites have the archives there al the time Feb 09 12:17:20 'needing to copy os files from disk to stick' and then modding slug somehoe to boot from stick not disk Feb 09 12:18:05 the latter is done by changing /etc/fstab, then getting it to flash to somewhere (which i cant remember), and it should boot from the right drive Feb 09 12:18:22 but i seem to get some problems with that at times and it hangs trying to boot from my hard drive Feb 09 12:18:29 reedy_boy: aaha, ok, i see it is a yahoo mailing list now. thank you ;) Feb 09 12:18:54 seanw, aint seen you in here before! Feb 09 12:19:01 hehe Feb 09 12:19:03 * seanw loves his nslu2 Feb 09 12:19:06 :) Feb 09 12:19:15 * Reedy_Boy thinks we should start a new en.wiki category Feb 09 12:19:19 hmm, sean Feb 09 12:19:52 sean whitton, sheffield, uk? Feb 09 12:20:14 barnseenio, yup Feb 09 12:20:23 aha. small world. Feb 09 12:20:30 Oh?: Feb 09 12:20:37 presumably he knows you :o Feb 09 12:20:50 so Reedy_Boy copying the OS files only Feb 09 12:20:53 from disk to stick Feb 09 12:21:25 simplest way i think, would be to do it not on the slug Feb 09 12:21:30 if i have symlinks in my /home/bb etc, which point to the partition with all the media on, will rsync dissapear down them and end up trying to move everything? Feb 09 12:21:43 dont know Feb 09 12:22:20 presumably not.. but i dont know Feb 09 12:22:24 heh Feb 09 12:23:01 is turnup something only for unslung? Feb 09 12:29:36 By default, symbolic links are not transferred at all. Feb 09 13:14:47 hey, anyone had problems with partition IDs shuffling as you add more USB devices to your slug? My problem is that as I add a USB hdd to my slug, the partition names are shifted, so the slug tries to boot from the wrong partition Feb 09 13:15:24 Debian? Feb 09 13:16:25 * barnseenio hopes he doesnt get that problem in about an hour when rsync hopefully finishes Feb 09 13:16:37 no, SlugOS .. i read about the "MountByLabel" FAQ on wiki, but it doesn't seem to work for me, since slugos doesn't seem to use a root= in kernel cmd line, but rather first boot from flash, and then at some point transfers the boot to USB stick Feb 09 13:17:06 barnseenio, you might.. i know at least 2 people who have Feb 09 13:17:16 has it an /etc/fstab Feb 09 13:17:44 Reedy_Boy: yes, it does.. however, that is not the issue i think, because the rootfs doesn't even get mounted properly.. Feb 09 13:18:09 i soldered a serial to my slug yesterday, to see the output during bootup, here it is: http://pastebin.com/m69affeca Feb 09 13:18:40 if you check line 178, it attempts to use disk with UUID 6f3c5e76-4bba-4c4e-b3d6-4d7fdc9f7e4e, which is correct, this is my USB stick Feb 09 13:18:55 however, it also mentions /dev/sda1, which in this boot points to the USB HDD Feb 09 13:19:06 im confused as to why it specifies BOTH a UUID and a device name Feb 09 13:19:21 i thought the point in using UUIDs is to not rely on device names Feb 09 13:19:41 barnseenio, it seems quite common for 2.6 based kernels Feb 09 13:19:47 i did not have this issue on my old 2.4 kernel Feb 09 13:20:32 Reedy_Boy: as you see in the bootlog, the Kingston DataTraveler (my USB stick, which holds the OS) is detected as sdb.. Feb 09 13:20:43 and the western digital USB HDD is detected as sda Feb 09 13:21:06 i want it to be either the other way around, or make SlugOS understand that it should find root partition by UUID exclusively Feb 09 13:21:26 lol, i sincerely hope i dont need to get a solering iron out! Feb 09 13:21:53 barnseenio, hopefully not :) its just for debugging.. if this issue can be solved, no soldering is needed Feb 09 13:22:07 i just needed to solder the serial to understand the problem, which i now do Feb 09 13:22:21 Blastur, wheres the mountbylabel bit? Feb 09 13:23:11 Reedy_Boy: on the wiki? http://www.nslu2-linux.org/wiki/HowTo/MountDisksByLabel Feb 09 13:23:46 ty Feb 09 13:24:22 the problem is that this guide describes how it is done for debian.. slugos seems to have a different approach, as it always (i think) tries to boot from flash, and then handover control to the OS found on USB.. the debian approach seems to be to directly boot from USB stick, ie, the kernel is on the USB stick aswell Feb 09 13:24:51 because if i check my apex environment, the root is set to /dev/mtdblock4 or something, which i think is a location in flash Feb 09 13:26:22 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. Feb 09 13:26:44 Reedy_Boy, yes, exactly.. that is the case for Debian Feb 09 13:26:57 hmm, i didnt see this before (its not on the debian FAQ Feb 09 13:26:59 ( Feb 09 13:26:59 ) Feb 09 13:27:21 I use SlugOS, it always uses a flash location .. and then, at some point, hands over control the OS on USB stick Feb 09 13:27:27 so its a bit different Feb 09 13:47:32 fsck this rsync is taking *ages* Feb 09 13:48:34 im wondering about your idea Reedy_Boy of doing this job not on the nslu2 Feb 09 13:48:42 lol Feb 09 13:48:50 although i only have a windows box Feb 09 13:57:30 any suggestions Reedy_Boy? :) Feb 09 13:57:52 im just trying it on debian... Feb 09 13:57:53 im willing to replace this with any dist or do whatever, its my backup box.. i hate the idea to have it offline :| Feb 09 13:58:11 Reedy_Boy: on debian? you have the same problem? Feb 09 13:58:27 well, it doesnt always pick the right drive to boot from Feb 09 14:00:12 http://www.nslu2-linux.org/wiki/Debian/TroubleShooting Feb 09 14:00:14 okay, i guess we have the same problem then Feb 09 14:00:16 "The slug fails to reboot with 2 drives connected" Feb 09 14:00:19 is what i tried before Feb 09 14:00:26 but the other guide says that isnt the solution Feb 09 14:00:52 well, replacing the command line should work for debian Feb 09 14:01:11 but its not a solution for me, since my command line points to a location which always works (the flash) Feb 09 14:05:35 so Reedy_Boy (or Blastur) when my files have finished rsyncing from current disc to memory stick what should i do to tell the slug to boot from stick, not disk? Feb 09 14:05:42 im using debian Feb 09 14:06:03 and will it make any difference when i re-attach the harddisk with my media files Feb 09 14:06:11 (but no os on) Feb 09 14:07:00 if you are unlucky, youll experience what me and Reedy_Boy is Feb 09 14:07:01 :) Feb 09 14:07:30 but rsync:ing should work, if the new usb stick is recognized under the same device name Feb 09 14:07:34 looks like ive just solved mine Feb 09 14:07:47 i have an idea im gonna try now Feb 09 14:10:16 same device name? Feb 09 14:10:21 well currently its in the other slot Feb 09 14:10:28 and identified as \dev\sdb Feb 09 14:10:32 slots do not matter Feb 09 14:10:37 right Feb 09 14:10:46 it seems like usb devices are detected 'randomly' Feb 09 14:10:47 :) Feb 09 14:11:04 so i was intending to do the rsync, then unplug both, and put the stick into the slot where current disk is Feb 09 14:11:32 did someone suggest i needed to do something with fstab? Feb 09 14:12:08 few things to do Feb 09 14:12:17 i think ive sorted mine so it boots as i want it to Feb 09 14:13:46 hey guys Feb 09 14:14:42 will you explain then Reedy_Boy Feb 09 14:14:45 hi daveyboy_ Feb 09 14:15:11 anyone know how I can pass a UUID to turnup script? the usage help states: memstick [-i] | [mount options] .. so I just tried 'turnup memstick -i 6f3c5e76-4bba-4c4e-b3d6-4d7fdc9f7e4e -t ext3', but it errors with 'turnup disk: 6f3c5e76-4bba-4c4e-b3d6-4d7fdc9f7e4e: block device required' Feb 09 14:17:23 reedy, u ever get a answer for the 2hdd boot isue for debian? Feb 09 14:31:39 daveyboy_, just fixed it now Feb 09 14:31:44 it seems Feb 09 14:32:06 barnseenio, i reckon, when everythings transferred, just have that solely plugged in and check it boots and such Feb 09 14:34:07 daveyboy_, http://www.nslu2-linux.org/wiki/HowTo/MountDisksByLabel Feb 09 14:36:17 cheers mate. got to pop out now anyway but ioll have a look at that when i go Feb 09 14:37:03 what about the edit that i did before? is that fine as it is? (slug boots fine with 1hdd attached) Feb 09 14:37:20 daveyboy_, it seems so - i didnt revert it Feb 09 14:37:53 good stuff Feb 09 14:38:02 looks relatively easy enough. will have a play later Feb 09 14:38:10 cheers im out! Feb 09 14:38:14 yeah, it seems fine Feb 09 16:34:57 goddamn rsync is still going!? Feb 09 16:35:52 * barnseenio wonders if it will ever finish Feb 09 16:37:09 i wonder if dd would have been a better alternative? Feb 09 16:40:44 lol Feb 09 16:40:47 it seems to be taking AGES Feb 09 16:50:39 Reedy_Boy: i hope you disabled link compression in Rsync :) Feb 09 16:50:56 otherwise you'll get like ~500 kb/s.. im not sure how much data you are transferring but .. Feb 09 16:51:08 without compression, you get ~3.5 MB/s, at least I do Feb 09 16:51:19 and im guessing you are on a fast lan, with plenty of bandwidth Feb 09 16:51:37 barnseen1o, ^ Feb 09 16:51:42 Its not me Feb 09 16:51:58 oh Feb 09 17:48:02 lol Feb 09 17:48:04 Blastur: Feb 09 17:48:22 rsync -rclpgovD --delete / /media/sdb1 Feb 09 17:48:30 thats what i did :/ Feb 09 17:48:57 im not transferring across lan Blastur, from disk to stick using slug Feb 09 17:52:03 the most worrying thing is, that even though it has been going for 4 hours eating cpu, no files appear on stick :/ is it building some kind of file list before transfer starts? Feb 09 17:55:12 something sounds wrong Feb 09 17:55:43 lol Feb 09 17:55:45 arse Feb 09 17:56:23 whatabout dd instead Feb 09 17:58:04 dd does an image... Feb 09 17:58:13 which could make a mess of your partitions Feb 09 17:58:20 oh right Feb 09 17:58:23 and cp? Feb 09 18:02:12 it can work in a recursive mode.. i suspect Feb 09 18:02:21 isnt there a wiki guide for upgrading disks? Feb 09 18:02:32 http://www.nslu2-linux.org/wiki/SlugOS/HowToBackupAndRestoreSlugOSBetweenTwoMemorySticks Feb 09 18:03:05 uses rsync, and the command i used which appears to take a while Feb 09 18:04:00 hmm Feb 09 18:36:34 Reedy_Boy: im using pax Feb 09 18:36:47 it seems significantly more successful than other shit to date Feb 09 18:37:13 lol Feb 09 18:37:32 pax -rw -pe -X / /media/stick Feb 09 18:42:37 so Reedy_Boy Feb 09 18:42:46 the files are all transferred form sda1 to sdb1 Feb 09 18:43:09 you mentioned earlier that you though nothing special need doing, just restart with stick not disk in? Feb 09 18:43:58 in theory, yes.. as there isnt the boot tracks on the drive AFAIK Feb 09 18:44:06 just boot it with only the new drive on Feb 09 18:44:12 right Feb 09 18:44:24 ah the boot tracks are in the nslu2 internal flash? Feb 09 18:45:01 yeah, from what i understand its on the initramfs Feb 09 18:45:03 or whatever it is Feb 09 18:47:59 and when i restart with memstick in Feb 09 18:48:02 and no drive Feb 09 18:48:11 will it now be referred to as sda1 ? Feb 09 18:48:24 should be Feb 09 18:48:43 and if i restarted just as it is now Feb 09 18:48:52 your saying it would continue to boot of disk, not stick Feb 09 18:48:59 potentially Feb 09 18:49:01 lol Feb 09 18:49:08 there seems to be some issues with multiple drives Feb 09 18:49:15 where it doesnt always know which to pick Feb 09 18:49:19 and you seemed to test that today? Feb 09 18:49:27 and hence it trying to boot my storage drive Feb 09 18:49:33 and yes, i think mines now fixed :) Feb 09 18:49:41 and you changed something? Feb 09 18:49:51 yeah Feb 09 18:50:00 may i ask what? Feb 09 18:50:02 its on the wiki, and linked in here Feb 09 18:50:24 http://www.nslu2-linux.org/wiki/HowTo/MountDisksByLabel Feb 09 18:50:34 * barnseenio looks Feb 09 18:52:43 ahh that looks lovely Feb 09 19:00:08 barnseenio, got dogs to walk and stuff Feb 09 19:00:15 i'll be back in an hour or so Feb 09 22:15:01 Reedy_Boy: the copy of the 'media' files is still going, 45gb in about 2 hours, just another 300gb to go ;/ Feb 09 22:15:11 lol Feb 09 22:15:19 i did suggest not doing on nslu2 :P Feb 09 22:15:23 heh Feb 09 22:15:50 well, something to look forward to in the morning Feb 09 22:17:42 at least its not vista Feb 09 22:17:50 it'd tell you you had 1000 days to wait Feb 09 22:21:58 * mwester would suggest a different approach Feb 09 22:22:13 ^^ Feb 09 22:22:14 you mean not doing it straight on the nslu2 mwester ? Feb 09 22:22:17 Is the target partition empty? Feb 09 22:23:15 barnseenio, Feb 09 22:23:26 mwester, hey, sorry to bother you like this, but im from the nslu2 community, osas here told me you may have the answer to a problem im experiencing.. if you have some time over, perhaps you could look at it? ive also sent it to the nslu mail-list, the problem is described in http://tech.groups.yahoo.com/group/nslu2-linux/message/21025 Feb 09 22:24:07 Blastur, mikes already replied Feb 09 22:24:13 http://tech.groups.yahoo.com/group/nslu2-linux/message/21027 Feb 09 22:24:21 what? hmm Feb 09 22:24:29 oh yeah! i have my mailing list setting on daily digest Feb 09 22:24:34 heh Feb 09 22:25:50 excellent! Feb 09 22:25:56 thanks a lot mwester! Feb 09 22:28:44 I'll send you my bill later. :p Feb 09 22:29:02 you do that Feb 09 22:29:04 mwester, even if you charged only a few dollars, you'd be raking it in ;) Feb 09 22:29:05 :) Feb 09 22:30:10 Heh! rwhity has a great presentation on the entire nslu2-linux project, which describes "how to make a small fortune" from a project such as this... Feb 09 22:30:24 haha Feb 09 22:30:31 (The answer of course, is to start with a large fortune.) Feb 09 22:30:36 haha Feb 09 22:30:52 sounds a good idea Feb 09 22:45:43 excellent mwester, it works now! as you suggest, the # caused a syntax error, and did not automount the disks.. however, if i removed the entire elseif block, it worked fine! Feb 09 22:57:30 hmm Feb 09 22:57:58 one thing though, is / suppose to be mounted on /dev/mtdblock4, mwester? isn't it suppose to be on memstick? Feb 09 23:08:06 seems like the on-board flash acts as root Feb 09 23:08:11 which is bad, i guess (?) Feb 09 23:13:01 post the output from cat /proc/mounts and df (pastebin) Feb 09 23:14:58 ok Feb 09 23:16:01 http://pastebin.com/m45e8ec44 Feb 09 23:30:02 Blastur: you're running from flash, not the external disk Feb 09 23:30:53 yes, and why does it do that? :) before it was running from usb-stick Feb 09 23:31:09 I don't know why it's doing that; I don't have your serial port Feb 09 23:31:40 let me try if it runs off flash if i run without usb hdd Feb 09 23:31:55 The output from the boot would be helpful. Feb 09 23:32:05 (with just the flash) Feb 09 23:32:30 serial output, or is dmesg ok? Feb 09 23:32:41 cause ive reassembled the thing now, and disconnected serial :) Feb 09 23:33:08 Serial Feb 09 23:34:41 ok, hold on, gotta open the box again Feb 09 23:35:50 perhaps i must simply re-run turnup -i ? Feb 09 23:39:29 I wouldn't know why, unless something got corrupted or damaged whilst debugging. Feb 09 23:41:30 ok, here it is: http://pastebin.com/m65009b2d Feb 09 23:42:01 oh wait, that is with the old mount.sh Feb 09 23:42:05 let me fix that and reboot Feb 09 23:42:18 Which mount.sh are you referring to? Feb 09 23:42:18 (i changed it back to see if that caused the problem, which it didn't) Feb 09 23:42:49 The one of concern is the one on the device that your are booting to (the one whos UUID is in the exec /boot/disk command). Feb 09 23:43:24 if I ls -al the contents of the memstick, it only has an lost+found dir Feb 09 23:43:27 is that normal? :) Feb 09 23:44:50 im gonna start over Feb 09 23:45:02 reflash it from start, and redo everything Feb 09 23:47:43 :( Sounds like the memory stick got clobbered at some point. Feb 09 23:47:53 Hope you didn't have any data there. Feb 09 23:48:26 nah, nothing i dont have on backup Feb 09 23:50:23 Londons Burning... http://news.bbc.co.uk/1/hi/uk/7237119.stm Feb 09 23:52:11 by the way, mwester, the password stored in sysconf part, is it safe? Feb 09 23:52:19 No Feb 09 23:52:42 so i shouldnt use the same password for my system on memstick? Feb 09 23:52:56 I think it's encrypted, but no passwords on SlugOS are what I would consider to be up to par for modern security (it doesn't use shadow passwords, for example). Feb 09 23:53:21 i mean, the sysconf pass is only used when i boot from flash, right? Feb 09 23:53:43 I don't think that matters much, IMO. It's a issue of physical security. If someone can get the sysconf data, they own your device and everything plugged into it. Feb 09 23:54:03 yeah, but im doing this reinstall just to get encrypted filesystem Feb 09 23:54:16 even if it only gives me a few hundred kb/s, i want it for my bkp server Feb 09 23:54:47 But it's still probably a reasonably good idea to not put your real password in sysconf, use one that only works when booted to the internal flash or ram. Feb 09 23:54:57 what a bkp server? Feb 09 23:55:45 well, it only does rsync updates, so each update is roughly a few hundred megs Feb 09 23:55:53 so that should be fine even for slow speeds Feb 09 23:56:29 bkp backup? Feb 09 23:56:41 ah, yes.. backup server Feb 10 00:08:35 ok, now / is mounted on memstick like it should! victory Feb 10 00:12:11 mwester, i love you man Feb 10 00:12:17 now it boots from memstick, and hdd works Feb 10 00:12:19 ^^ Feb 10 00:12:34 ill buy you a freerunner for this Feb 10 00:12:36 ;-] Feb 10 00:22:42 Blastur: cool! Feb 10 00:22:54 Blastur: Are you using the "cryptslug" stuff described on the wiki? Feb 10 00:23:44 yes Feb 10 00:23:56 i haven't tried it yet, but im about to :) [ http://www.nslu2-linux.org/wiki/HowTo/ProjectCryptSlug ] Feb 10 00:24:52 Cool. I tried that stuff, and used a scripted install/test as one of the QA tests in the SlugOS 4.8 release process. Feb 10 00:25:34 (it can really beat the NSLU2 up while doing I/O sorts of stuff!) Feb 10 00:26:08 hehe Feb 10 00:26:25 im gonna run rsync on this, hopefully performance wont drop too much Feb 10 00:26:40 to me, 500 kb/s is acceptable.. i was getting 3.5 MB/s with my unencrypted setup Feb 10 00:52:06 is a nfs server really required to encrypt disks mwester? Feb 10 00:52:24 the guide specifies to install nfs-utils, which seems to add a lot of nfsd procs to my system Feb 10 00:58:55 No, I don't think it needs nfs. Feb 10 01:01:19 is it possible to have your firefox favoureites file on a slug so no matter what pc your on on network it can pick up the file from there? Feb 10 01:06:36 WanderingII: google about to see if you can do that with an ordinary windows share; if so you should be able to do it with the NSLU2. Feb 10 01:06:59 (there are only a very small set of apps that cannot work with samba on the NSLU2) Feb 10 01:18:22 ah theres an extension foxmarks :) Feb 10 01:31:49 anyone here have itunes server set up on slug? **** ENDING LOGGING AT Sun Feb 10 02:59:57 2008