Hi Darrick, I have been trying to sort a hardware issue and have now managed to try the genunion and export of the keydisk to the CF card. I am using astlinux-0.6.1-via.img.gz from your site on a Wyse Winterm box.
My configuration was a CF card at /dev/hda with the image on and a keydisk at /dev/sda. I fitted a 1GB CF card at /dev/hdc. I ran genunion and it claimed to have worked. I rebooted and could make permanent changes to root password (nice!). However my PBX had not picked up any configuration e.g. there were no phones showing in "sip show peers" and my TDM lights were not on. I ran movekd. Unfortunately this threw errors : /usr/sbin/movekd: line 7: =: command not found /usr/sbin/movekd: line 8: =: command not found /usr/sbin/movekd: line 41: syntax error near unexpected token `fi' /usr/sbin/movekd: line 41: ` fi' Apologies if this is old news, but the first pair were fixed by removing the spaces around the "=" and the $ prefix on the left hand side on the findfs assignments. The second pair was fixed by adding a "then" line to the branch at line 41. I then ran movekd which claimed to work this time, but still my PBX would not pick up any configuration. I rebooted, still without success. I observed the console at boot up and the only thing possibly relevant was the message : "ext2f_check_if_mount(): no such file or directory while determining if /dev/hdc is mounted." A df after startup showed : pbx ~ # df Filesystem 1k-blocks Used Available Use% Mounted on /dev/hda1 130734 38256 92478 29% /oldroot/cdrom /dev/hdc1 975268 9804 915924 1% /oldroot/mnt/asturw none 92160 79392 12768 86% /oldroot/mnt/asturo none 975268 9804 915924 1% / none 200 28 172 14% /dev none 5000 124 4876 2% /var none 10000 172 9828 2% /tmp /dev/sda1 121999 6433 109267 6% /mnt/kd I rebooted and tried again with the USB stick removed - again without success. As a work around I refitted the USB stick and ran "e2label /dev/sda1 ASTKD" my PBX came alive again after the next reboot. However this is not where I need to be, I now have a three disk system and would like to get rid of the USB stick on read the config from the second CF card. The root password is now changeable and sticky which is good though. Question: How can I get my configuration exported AND picked up from the CF card ? Your thoughts please Thanks Mart Darrick Hartman wrote: > Mart, > > Sorry, been busy. > > > If you are using both an existing key disk AND created a new unionfs > partition, you should see a script called 'movekd'. I created the > script, but it has not been tested extensively. It does the following: > > Moves files from a key disk to a unionfs partition based on file system > labels (it uses 'findfs LABEL=ASTURW' and 'findfs LABEL=ASTKD') then > moves the data from the key disk to a directory on the unionfs > partition. It then relabels the old key disk with a different file > system label (OLDKD). > > After that's done, you should reboot immediately, if not sooner ;) > > After rebooting, you should be golden. > > However, if you just have the keydisk now, follow all of the > instructions in the 'genunion' script. It will prompt you as follows > after creating the unionfs file system: > >> echo "Filesystem Created. >> >> On new systems you can optionally use unionfs instead of they key disk. >> >> To create the appropriate file structure, type yes. >> >> If you have an existing key disk and want to migrate your key disk >> settings to this new unionfs partition, execute movekd $DEV after >> this script exits. >> >> To create a new key disk structure on your new unionfs partition, >> type yes followed by the Enter key. Press any other key to exit. >> >> If you are new to Astlinux, you will want to say yes." > > If you have an existing keydisk answer NO then run movekd. > > Darrick > > Martin Rogers wrote: >> Hi >> >> any takers for this question please. >> >> Is this something which no one else has done, or is it just a plain >> stupid thing to ask? >> >> Thanks >> Mart >> >> >> Martin Rogers wrote: >>> Hi >>> >>> I have a recent Astlinux system which uses a USB stick and genkd. >>> >>> When I want to modify the configuration I can modify the files on the >>> keydisk and everything is OK. >>> >>> However I now need to change the root password. I understand that I need >>> to use genuinon for this, and have a second IDE CF device fitted which I >>> want to use as the genunion/RW partition. >>> >>> If I run genunion, >>> 1. which config files will be stored on the new CF ? >>> 2. will the USB stick files still be required/used. If so which ones. >>> >>> 3. If I wanted to do away with the USB stick and just use genunion by >>> reinstalling the system and not running genkd, where would the .conf >>> files be stored on the CF partition. >>> >>> Thanks >>> regards >>> Mart >>> >>> >>> >>> ------------------------------------------------------------------------- >>> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge >>> Build the coolest Linux based applications with Moblin SDK & win great >>> prizes >>> Grand prize is a trip for two to an Open Source event anywhere in the world >>> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >>> _______________________________________________ >>> Astlinux-users mailing list >>> Astlinux-users@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/astlinux-users >>> >>> Donations to support AstLinux are graciously accepted via PayPal to [EMAIL >>> PROTECTED] >>> >> ------------------------------------------------------------------------- >> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge >> Build the coolest Linux based applications with Moblin SDK & win great prizes >> Grand prize is a trip for two to an Open Source event anywhere in the world >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> _______________________________________________ >> Astlinux-users mailing list >> Astlinux-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/astlinux-users >> >> Donations to support AstLinux are graciously accepted via PayPal to [EMAIL >> PROTECTED] > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Astlinux-users mailing list > Astlinux-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/astlinux-users > > Donations to support AstLinux are graciously accepted via PayPal to [EMAIL > PROTECTED] > ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Astlinux-users mailing list Astlinux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/astlinux-users Donations to support AstLinux are graciously accepted via PayPal to [EMAIL PROTECTED]