**** BEGIN LOGGING AT Thu Apr 09 02:59:57 2009 Apr 09 10:46:59 is anyone about who can help me out with some basic questions? I have read the wiki and have a fully functioning NSLU2 running unslung 6.10 (onto disk2) but I am a bit rusty on my linux knowledge and want to ask a few questions before i go breaking it !! Apr 09 10:53:55 just ask Apr 09 10:53:59 ok Apr 09 10:54:23 so my NSLU2 is running all well and good but the disk is getting full so i want to add a new disk on USB port 1 Apr 09 10:54:42 i tried doing this and formatting from the web interface but this resulted in a some weird stuff happening Apr 09 10:54:59 having read the wiki i see that you cant really have two natively formatted devices with your root device on port 2 Apr 09 10:55:03 that makes sense Apr 09 10:55:40 but obviously it is possible to have 2nd disk on the NSLU2 so tried partioning the disk as a single partition and editing the fstab and samba conf files manually Apr 09 10:56:03 this also didnt work, as after a reboot the fstab and samba conf files are reverted Apr 09 10:56:23 i'm not quite understanding why this is but i have seen something about diversion scripts on the wiki Apr 09 10:56:31 sadly my knowledge kind of runs out there Apr 09 10:57:05 i understand that diversion scripts allow of alternate configurations to be loaded, by bypassing the fstab and conf files on the root device of the NSLU2? Apr 09 10:57:38 but how do i get this to work and how do i successfully add a fresh disk to my NSLU2? Apr 09 10:57:58 i've been fighting with this for a couple of days now and i'm not really getting anywhere, mainly due to my poor linux knowledge Apr 09 11:05:17 diversion scripts are a bit specific to unslung too :/ Apr 09 13:10:23 so is there a step by step guide to adding a fresh disk to a currently unslung device? **** BEGIN LOGGING AT Thu Apr 09 13:17:01 2009 Apr 09 13:18:10 syphon_filter what happend when you formatted the disk on port1? Apr 09 13:19:11 well that in itself was a bit of ballache Apr 09 13:19:24 for some reason the fdisk that was on the slug by default wouldnt work Apr 09 13:19:31 so i had to update the busybox packages Apr 09 13:19:47 after that i managed to create a single partition disk and format it to ext3 Apr 09 13:19:55 which i could manually mount etc Apr 09 13:20:26 but as i said before i couldnt get the fstab to retain the new line i added, i understand now that i need a diversion script to make that work? Apr 09 13:20:53 but even so, with a manually mounted /dev/sdb1 i couldnt start/stop/restart the samba service either Apr 09 13:21:05 so i was getting no where with regards to getting that new disk shared on the network Apr 09 13:21:31 ok you can use nfts to if you ahve a windows machine. format it use USA (437 in nslu2 webinterface and its done Apr 09 13:22:03 i've had an NTFS drive on my slug before and it didnt work very well Apr 09 13:22:10 ok Apr 09 13:22:16 so i was thinking FAT or ext3 would be better? Apr 09 13:22:36 mkefs.vfat isnt on the slug so i went ext3 with Apr 09 13:22:43 with ext3^ Apr 09 13:23:06 i think using fdisk and then formatting ext3 is fine Apr 09 13:23:27 i need to figure out how to use a diversion script to get that drive mounted and then shared Apr 09 13:29:39 syphon_filter wait I search for a link for you Apr 09 13:31:24 i've been reading this: http://www.nslu2-linux.org/wiki/Unslung/NewUsersGuide Apr 09 13:31:28 syphon filte firstread in the middle of this page what you need in smb.conf OR use google,then do a such smb.conf and save it somewhere Apr 09 13:31:32 and this Apr 09 13:31:34 http://www.nslu2-linux.org/wiki/Unslung/ReSling Apr 09 13:33:44 then do a diversionscript which will 1.move your file smb.conf and overwrite the smb.conf ,and put in wait 15 , and samba restart Apr 09 13:33:53 move command is mv Apr 09 13:34:23 i dont know where smb conf is but probably /etc/samba/samba.conf Apr 09 13:34:42 be carefull Apr 09 13:35:08 it will work but maybe can be done better. Apr 09 13:37:01 so: 1. wait 15 2 mv file 3./etc/init.d/samba restart Apr 09 13:37:37 ok Apr 09 13:37:47 i will see what i can do Apr 09 13:37:58 but before you do this read about samba in the wiki Apr 09 13:38:01 i need to read a little more on the scripts Apr 09 13:38:02 ok Apr 09 13:38:33 maybe uneeded. was long time since I used unslung=) Apr 09 13:39:30 ask here before you put it to avoid a reflash if unsure Apr 09 13:39:45 =) Apr 09 13:42:39 and before you put your script ,try all commands in terminal before a restart, that way you can make sure you got it right. Apr 09 13:43:12 sory dont mv copy it instead cp Apr 09 13:51:34 ok Apr 09 13:51:45 thanks for hte help Apr 09 13:51:51 what are you running on your NSLU2? Apr 09 13:51:53 debian? Apr 09 13:52:59 yes becuse some applications I need is not available withn the others Apr 09 13:53:08 fair enough Apr 09 13:53:11 just wondered Apr 09 13:53:18 e Apr 09 13:53:43 debian is not the first choice on a slug if you can avoid it Apr 09 13:55:31 i am going to update my slug (it's a fresh unslung) Apr 09 13:55:42 format that disk again (it's bee messed with since) Apr 09 13:55:46 and then try the scripts Apr 09 13:56:20 alternatively, where are the fstab and samba conf stored so i can edit and maintain changes? I assume they are in the flash of the device Apr 09 13:56:22 ? Apr 09 13:57:05 no dont touch anything in flash. Apr 09 13:57:29 you can run in severe problems Apr 09 13:57:32 =) Apr 09 13:58:07 instead ipg install samba Apr 09 13:58:12 read in wiki how to Apr 09 13:59:09 oh install a new version of samba? Apr 09 13:59:16 and then that will be installed to the unslung device Apr 09 13:59:19 and run from there Apr 09 13:59:31 meaning i can then edit the appropriate conf file and any changes will be retained? Apr 09 13:59:40 yes read in wiki I did it a couple a years ago and it works Apr 09 13:59:54 i dont remeber how I did it sorry Apr 09 14:01:30 http://www.nslu2-linux.org/wiki/Optware/Samba?from=Unslung.Samba Apr 09 14:02:57 there you have it with a diversion script to=) Apr 09 14:25:11 janne thanks for your help! Apr 09 14:25:21 i will give it a got when i get a chance Apr 09 14:36:51 * janne5011 is away: Jag är upptagen **** ENDING LOGGING AT Fri Apr 10 02:59:57 2009