**** BEGIN LOGGING AT Tue Aug 16 02:59:56 2005 Aug 16 08:44:07 hello Aug 16 12:25:40 has anyone here got a spare 5 mins to help me sort out a boot problem with my slug? pleeease ;) Aug 16 12:26:18 PompeySteve: possibly. Unslug or openslug? Aug 16 12:26:22 Unslung.. Aug 16 12:26:31 unslung Aug 16 12:26:57 That depends then.. I'm OpenSlug only... Might be able to help with a guess though ;) Aug 16 12:27:03 What's the problem? Aug 16 12:27:11 I've installed NFS and rebooted, now it wont boot if I have my HD attached in Disk 1 Aug 16 12:27:29 I can boot without it attached and mount it from telnet fine Aug 16 12:27:39 but it booted without installed nfs? Aug 16 12:27:42 before? Aug 16 12:27:56 nope Aug 16 12:28:14 unslung 5.5? Aug 16 12:28:14 when I connect the disk it doesnt show up on the NSLU2 webinterface as attached Aug 16 12:28:34 yep 5.5 Aug 16 12:28:58 but before unslinging, it does? Aug 16 12:29:15 yep, I've add it unslinged for ages, but not rebooted it for a few weeks Aug 16 12:29:33 AFAIK the only changes I've made have been installing subversion and nfs Aug 16 12:30:12 with the HD attached, it does a few accesses of the HD and then sits there flashing its pretty "ready " led at me :) Aug 16 12:30:12 have you read, and try this http://groups.yahoo.com/group/nslu2-linux/message/7489? Aug 16 12:30:41 ta...just looking.. Aug 16 12:31:09 hm, forgot my proposal Aug 16 12:33:24 well, you can boot without hd attached, but your webif doesn't show the disk as attached, when you hotplug it after boot is complet... but you can access the slug via telnet/ssh? Aug 16 12:33:43 I can access the slug via Management/telnet.cgi and then telnet Aug 16 12:34:00 k, so you should try to mount the hd manually Aug 16 12:34:22 yep, can do that Aug 16 12:34:30 mount -t /dev/sda1 ... Aug 16 12:34:35 -t ext3 even Aug 16 12:35:29 manual mount works? Aug 16 12:35:33 yep Aug 16 12:35:42 hm Aug 16 12:36:00 if I want to re-run /sbin/unsling what should I mount /dev/sda1 as? Aug 16 12:36:19 at /share/hdd/data Aug 16 12:36:37 ok re-unslinging.... :) Aug 16 12:36:56 whats about /share/hdd/conf aka /dev/sda2, is this partition mount automagically? Aug 16 12:37:10 oh yeah good point :D Aug 16 12:38:13 and does /proc/hd_conn exist? Aug 16 12:39:22 yes Aug 16 12:39:45 yes -> /share/hdd/conf or yes -> /proc/hd_conn? Aug 16 12:40:02 sorry, I had to mount /share/hdd/conf manually Aug 16 12:40:06 k Aug 16 12:40:13 is it right to have /share/hdd/data/share/hdd/data? Aug 16 12:40:51 yes Aug 16 12:41:23 am I right in remembering I need a .dongle file in /share/hdd/conf ? Aug 16 12:41:56 yes, as signal that the hd is formatted (linksys) Aug 16 12:42:10 ok, thats there Aug 16 12:42:56 so,. your partitions are both ok, but the system wouldn't auotmounted at startup.. Aug 16 12:43:11 yep, thats how it looks Aug 16 12:45:44 this has happened once before and I gave up and re-formatted..but I don't have enough spare HD space to backup my data first! Aug 16 12:46:56 could it be a corrupt /bin/init ? Aug 16 12:47:37 didn't think so.. mom pls Aug 16 12:47:43 ok Aug 16 12:51:44 hm, at this time, your both partitions are mounted in the right directories, with rw state? Aug 16 12:51:49 yep Aug 16 12:52:05 dmesg mentions "WARNING:USB Mass Storage data integrity not assured" Aug 16 12:52:25 seems to be normally, same at my slug Aug 16 12:52:59 hm, may be worth to try /sbin/unsling disk1 again.. Aug 16 12:53:08 ok thanks, will try Aug 16 12:54:14 if I need to, what folders can I rm to remove all unslung from Hd? (but keep my data of course!) Aug 16 12:54:42 after unslinging you could copy /usr/lib/ipkg.old (at this time installed ipkgs) back to /usr/lib/ipkg Aug 16 12:56:11 you can keep all yout own dierectories, e.g. public, and your personal shares Aug 16 12:56:27 can I rm -rf /share/hdd/conf ? Aug 16 12:56:48 definitivly no Aug 16 12:56:52 heh Aug 16 12:57:30 in this case you need a plain image of /share/hdd/conf or you must reformat the disk Aug 16 12:57:47 is there a way of just reformatting the conf partition without losing my data? Aug 16 12:58:26 you could reformat it on any linux station, but the needed information, which are generated by linksys are absence Aug 16 12:58:42 ok thnks Aug 16 12:59:09 and so the partition is marked as not formatted in the webif Aug 16 13:00:23 I dont understand it wont automount it after booting without HD attached Aug 16 13:00:27 +why Aug 16 13:00:51 a good question Aug 16 13:01:24 hm, how long did you wait for the automount? Aug 16 13:03:52 3-4 minutes Aug 16 13:04:04 does stdout from /linuxrc go anywhere? Aug 16 13:04:32 imho no, or to /dev/console Aug 16 13:05:05 3-4 minutes is too short, if you didn't diverted /etc/rc.quota Aug 16 13:05:36 ok i'll reboot and come back in 30 minutes :) Aug 16 13:05:39 depending on the size of the hd, it could take up to 10-15 minutes Aug 16 13:05:43 stop Aug 16 13:06:23 try to divert /etc/rc.quota with a file named /unslung/rc.quota Aug 16 13:06:35 with something like that Aug 16 13:06:44 #!/bin/sh Aug 16 13:06:45 ? not sure I understand Aug 16 13:06:47 aaah Aug 16 13:06:49 return 0 Aug 16 13:06:55 in it Aug 16 13:07:20 should there be a /etc/rc.quota existing? Aug 16 13:07:26 k, if the slug comes up, it would check the user quotas, what takes some time Aug 16 13:07:53 /etc/rc.quota should be existent, its a linksys file Aug 16 13:08:06 i don't have it... Aug 16 13:08:16 aah its in rc.d Aug 16 13:08:22 aeh, sorry Aug 16 13:08:54 and you can override this with a file in /unslung, or in your case in /share/hdd/data/unslung Aug 16 13:09:14 with the same name (rc.quota) and the contents Aug 16 13:09:22 #!/bin/sh Aug 16 13:09:24 return 0 Aug 16 13:09:35 ok Aug 16 13:09:59 /share/hdd/data/unslung/rc.quota should have the accessrights 755 Aug 16 13:11:04 hmmm dmesg is showing interesting... Aug 16 13:11:11 so, there should be no delay, which depends on quota checking after reboot Aug 16 13:12:01 after switching on HD : Aug 16 13:12:09 complaining about max mount count reached? Aug 16 13:12:24 it says new USB decice 00:01.2-1 address 2 Aug 16 13:12:31 and new USB decice 00:01.2-1 address 3 Aug 16 13:12:36 Device 08:01 not ready. Aug 16 13:12:43 I/O error: dev 08:01, sector 2 Aug 16 13:12:47 EXT3-fs: unable to read superblock Aug 16 13:14:20 but, if your 1st superblock is destroyed (!?) why can you mount the part manually? Aug 16 13:14:36 hmmm strange!!!! Aug 16 13:15:06 if I hot plug/unplug should it find the drive on USB+1 each time (2..3..4..5. etc) Aug 16 13:15:41 dunno, and couldn't try it Aug 16 13:16:42 haven't a 2nd disk, and couldn't unplug the 1st one, cause my rootfs is on this Aug 16 13:17:15 aah Aug 16 13:17:46 I've put the rc.quota diversion in , but it's not doing much. No HD access, Ready LES is off Aug 16 13:17:52 LES=LED Aug 16 13:18:12 totally off, and no flashing, as your desribed before? Aug 16 13:18:29 described Aug 16 13:18:35 yep, totally off. I expect if I powercycle the slug it'll to the same, but flash Aug 16 13:19:25 if it's totally off, then it may be worth to read and try the article at the mailing list.. Aug 16 13:20:03 ok thanks for your help, it is very much appreciated Aug 16 13:20:09 np Aug 16 13:22:29 I know I'm late into the conversation... Aug 16 13:23:00 well, any proposals are welcome ;-) Aug 16 13:23:02 all that I've skimmed over says "hd problems (BIG TIME)" to me Aug 16 13:23:46 dunno, whats about the successful manual mount? Aug 16 13:24:02 put it this way... I've experienced it before.... Aug 16 13:24:22 is ext3 able to take the 2nd superblock, if it couldn't read the 1st? Aug 16 13:24:50 the almost randomness of hangs, followed by no mounting of the hd at boot time is what I went through... and that hd ended up being dead dead dead Aug 16 13:25:12 should I have /mnt/backup /mnt/repair /mnt/tmpmnt /mnt/tmpmnt/conf /mnt/tmpmnt/data when there is no HHD attachred? Aug 16 13:25:31 bad experience... Aug 16 13:26:01 PompeySteve, do you have another external enclosure? or another linux box that you can plug up to? Aug 16 13:26:10 sadly, no Aug 16 13:26:34 have any friends that do? Aug 16 13:26:37 :) Aug 16 13:26:41 nope, just me! :) Aug 16 13:27:03 dmesg not reporting errors reading superblock anymore.. Aug 16 13:27:25 but you can boot knoppix at a win station.. Aug 16 13:27:37 I was going to suggest that it's time to try to salvage as much data off of that drive as possible, then try to check it thoroughly and then re-format for use with unslung Aug 16 13:27:49 it looks like I'll be doing that Aug 16 13:27:51 (again) Aug 16 13:27:59 I have ext3fs driver on my winsucks box Aug 16 13:27:59 but if you don't have anything to salvage the data to... it might be a bit rough Aug 16 13:28:14 ok... (read *slooooowww) Aug 16 13:28:48 when you boot without hdd, and then telnet in and then hot plug, it does mount right? Aug 16 13:28:58 no, it wont mount automagically Aug 16 13:29:19 k, and then you run e2fsck on the partitions? Aug 16 13:29:30 on /dev/sda1 and /dev/sda2? Aug 16 13:29:31 errrm nope :) Aug 16 13:29:33 I will do tho Aug 16 13:30:30 http://www.nslu2-linux.org/wiki/Main/FAQ#faq44 Aug 16 13:32:45 wb Aug 16 13:33:55 oops! Aug 16 13:34:04 that'll teach me Aug 16 13:34:09 running e2fsck now... Aug 16 13:47:00 I've run out of thumbs to twiddle Aug 16 13:47:24 :-) Aug 16 13:47:49 is it a bad thing(tm) to edit /linuxrc and force it to mount /dev/sda1 ? :) Aug 16 13:49:24 did e2fsck finish? Aug 16 13:50:08 still going...2 errors so far Aug 16 13:50:21 Inode xxx was part of the orphaned list. FIXED . Aug 16 13:50:35 *orphaned inode list Aug 16 13:50:42 Phase 2 begins... Aug 16 13:50:46 the excitement is building Aug 16 13:51:08 don't forget to e2fsck /dev/sda2 as well Aug 16 13:51:23 yup sure thang Aug 16 13:51:40 when that finishes, reboot without hdd and let's see if you can hotplug them Aug 16 13:52:24 checking sda2 now Aug 16 13:52:29 done Aug 16 13:52:41 type in sync Aug 16 13:52:44 then halt Aug 16 13:52:49 and then unplug the drives Aug 16 13:52:54 drive... Aug 16 13:53:06 ok Aug 16 13:55:47 nope.nada.zilch Aug 16 13:55:59 it booted ok, right? Aug 16 13:56:07 yep, without HD Aug 16 13:58:33 do you think it's worth reflashing and then re-unslinging? Aug 16 13:58:44 sorry was on phone Aug 16 13:59:26 hmmm if I boot with HD plugged into Disk 2... it boots fine Aug 16 13:59:49 because it's not trying to pivot the root to the disk 2 Aug 16 14:00:26 but that is interesting in that the drive will cold plug if connected to disk 2 - but won't hotplug at all? Aug 16 14:01:48 thats strange Aug 16 14:01:56 I've unplugged and re-plugged into disk 1 Aug 16 14:02:12 but i can still ls and run stuff from /share/flash/data Aug 16 14:02:21 is that usual? Aug 16 14:02:55 you've saved the data? Aug 16 14:03:10 ?? dont understand Aug 16 14:03:17 I booted with HD plugged into Disk 2 Aug 16 14:03:20 saved the data off of the HD Aug 16 14:03:26 It mounts it to /share/flash Aug 16 14:03:35 I then unplug the HD and plug it into Disk 1 Aug 16 14:03:49 I can still access it via /share/flash even the df shows it as mounted as /dev/sdb1 Aug 16 14:03:54 you're still not getting a *working* unslung system at this point Aug 16 14:04:41 I would recommend flashing back to Linksys R29 or R63, format the hdd with R29 or R63 and make sure it works there Aug 16 14:05:21 if it doesn't you *know* it's either a funky nslu2 or a funky hdd (maybe go purchase a 1GB flash stick to test against....) Aug 16 14:05:52 once you have verified everything is happy with linksys firmware, then flash to unslung 5.5 Aug 16 14:06:10 ok thanks for your help Aug 16 14:06:48 following the README step by step! Aug 16 14:07:55 :) I always do Aug 16 14:08:04 well, imho this should be the 2nd chance, follow ByronT 's message at the ML takes less time and less effort, and i think it's worth to give it a try Aug 16 14:09:20 caplink811_log, but even in that case, the hdd would hotplug... Aug 16 14:09:41 hmm I do have another USb enclosure now that I think about it Aug 16 14:09:54 and a spare 40G drive Aug 16 14:10:05 yeah, i see, but i don't see the reason for that behavior Aug 16 14:11:03 but since the hdd could manually mount, imho the disk is in a good condition Aug 16 14:11:25 that's why going back to linksys firmware to test for hdd happiness is a near must Aug 16 14:11:50 do I need to sercomm to reflash Linksys R29? Aug 16 14:12:30 I would recommend sercomm for flashing period.... Aug 16 14:12:37 moss monkey 1 caplink 0 ;-) Aug 16 14:18:01 * caplink811_log 's heading off to bed, good nite all Aug 16 14:18:50 good night Aug 16 14:36:52 hmmmmm! Aug 16 14:36:57 reflashed unslung and booted without HD Aug 16 14:36:59 hotplug now works Aug 16 14:37:31 woot Aug 16 14:39:23 hmmm again Aug 16 14:39:26 ls /share/hdd Aug 16 14:39:34 ls: /share/hdd/dev: Input/output error Aug 16 14:39:38 ls: /share/hdd/var: Input/output error Aug 16 14:39:59 you didn't flash back to linksys did you? Aug 16 14:40:18 no, to unslung Aug 16 14:41:26 I thought I'd try the unslung first and if no joy there, would reflash the LinksysR29 Aug 16 14:41:44 I'm trying to help you out here.... Aug 16 14:42:51 sorry Aug 16 14:43:12 it's ok, I know the feeling - getting excited about getting it working... Aug 16 14:43:25 but you have to trust me, I've done this a few times Aug 16 14:43:40 why would the /share/hdd/dev errors occur with unslung and not linksys? that's what puzzles me Aug 16 14:49:18 ouch a lot of diskerrors running e2fsck Aug 16 14:49:30 methinks a backup is overdue Aug 16 15:42:53 WOOOOOOOOOOOOOOOOOOOOOOOOOOT Aug 16 15:44:11 I rm -rf all folders on /share/hdd/data (except my precious) , unslinged and it works!!! Aug 16 15:47:39 thanks byronT **** ENDING LOGGING AT Wed Aug 17 02:59:56 2005