Have you tried "genkd /dev/sda2"? Works for me pretty good ;)
Regards,
Dmitry Lebedev
From: [EMAIL PROTECTED] [mailto: [EMAIL PROTECTED]] On Behalf Of Arne Gylseth
Sent: Wednesday, May 17, 2006 5:01 PM
To: [EMAIL PROTECTED]
Subject: Re: [Astlinux-users] How to use the third partision as "key" on aUSB boot disk
About using one USB stick as system disk and keydisk (sda1 and sda2) ..
The genkd apeared to be a script /usr/sbin/genkd
It looks like it does not handle the situation that one keydisk with 2 partisions is both systemdisk and keydisk.
So what I did was that I just used a 64 MB USB stick. 48 MB were used as sda1 systemdisk.
Then I made one more 12 MB sda2 partision using fdisk.
Then also extracted a part of the genkd script:
****START
cp /tmp/etc/rc.conf /mnt/kd/
cp -a /tmp/etc/asterisk /mnt/kd/
cp -a /var/spool/asterisk/voicemail /mnt/kd/
cp -a /tmp/tftpboot /mnt/kd/
mkdir /mnt/kd/ssh
mkdir /mnt/kd/home
mkdir /mnt/kd/monitor
cp -a /tmp/etc/ssh/ssh_host_* /mnt/kd/ssh/
cp -a /var/log/asterisk/cdr-csv /mnt/kd/
cp -a /stat/etc/wanpipe /mnt/kd/
cp -a /var/spool/cron/crontabs /mnt/kd/
if [ -f /tmp/astdb ]
then
cp -a /tmp/astdb /mnt/kd/
else
touch /mnt/kd/astdb
fiecho "Done. I STRONGLY URGE YOU TO REBOOT NOW."
echo "Type reboot to cleanly restart now."****STOP
Runned this on the USB stick based server.
It looks like this made the required file structures and copied over the required files to the "keydiskpart" of the USB stick.
Havent been testing to much, but it looks like it works OK with one USB stick as system disk (sda1) and keydisk (sda2).
By the way it works slightly different from my ide flash based installation. To be able to store any datas at the keydisk with the "double USB stick installation", the filesystem mounting has to be selected to "read/write".
I think it looks like this workes quite wellas an aditional Astlinux installation for testing etc based on a allmost free memory.
I anybody have some more information or ideas, please leave a few words :-)
Best reg Arne.
On 5/14/06, Arne Gylseth < [EMAIL PROTECTED]> wrote:
Hello !
I'm trying to test out a Astlinux 0.4.0 USB stick boot installation.
I just followed instructions in the guide how to write over the image to a USB stick, and this worked ok.
It's booting and running from the USB stick quite well.
But then the problem:
How to use the remaining free part of the usb stick as key disk ?
I hva tried with different variants of running "genkd" and "fdisk".
The best way I have made it was making some manual copying of the asterisk konfiguration files into the /mnt/kd directory. This worked. When I tried with the rc.conf file it crashed completely.
How is this "use usb partision 3 alternative" suposed to be working ? Should it be an automatic function (genkd ?) to fill upp the /mnt/kd directory with datas or should this be done manually ?
By the way, I can use it as is (with manually copying of configurarion files, minus the rc.conf file), but I'm just courious if I understand things the right way.
I am using one 0.3.0 installation with hda flash memory plus usb key disk and this runs very nice. Installation of keyisk were automatic with "genkd".
Should it work the same way with everything on the USB disk, or will it be required with some more "manual configuration" ?
Is the "genkd" cammand actually a script ? Hvere can this be found ?
Should it eventually be runned with a parameter when everything is on the usb pin ? I tried with "genkd /dev/sda2" but it did not work.
I think it will be a good thing to be able to run it from an usb stick as an alternative, because this makes it some times very easy to find hardware.
Best reg Arne.
_______________________________________________
Astlinux-users mailing list
[email protected]
http://lists.kriscompanies.com/mailman/listinfo/astlinux-users
Donations to support AstLinux are graciously accepted via PayPal to [EMAIL PROTECTED].
_______________________________________________ Astlinux-users mailing list [email protected] http://lists.kriscompanies.com/mailman/listinfo/astlinux-users
Donations to support AstLinux are graciously accepted via PayPal to [EMAIL PROTECTED]
