Ingmar, Thanks, what you said is how I expected it to work.
What was messing me up, I was using a previous AstLinux CF. Even though I 'erased' and 'repartitioned' the CF drive on my Mac OS X machine we all know the linux partition was left in place. So after overwriting the first 48M or so with a new image, I stick the card back into the Soekris, and goofy things were happening. So, the Disk Utility app on Mac OS X has an option to write 0's when erasing a drive, I did that, fdisk'ed, genkd'ed, all is well. Thanks, Lonnie On Aug 25, 2006, at 4:39 AM, Ingmar Schraub wrote: > Hi, > > by default you can choose between USB keydisk and "third" hd > partition. > > So the easiest way to accomplish what you want to do: don't created > hda2, but hda3 :) > > genkd /dev/hda3 and you are ready to go. > > I did this with my installation and it works fine. > > cheers, Ingmar > > Lonnie Abelbeck wrote: >> Hi, >> >> I'm doing something stupid, but I can't generate my keydisk as the >> 'second' CF partition. >> >> This is what I am doing on a net4801: >> 1) gzcat 0.4.3 on an 'erased' 512M Sandisk CF. >> >> 2) fdisk /dev/hda; n; 2;<CR> ;<CR>;w >> >> 3) edit /boot/grub/grub.conf to include >> title AstLinux (Boot from CF - Use second partition for KeyDisk) >> root (hd0,0) >> kernel /boot/bzImage root=/dev/hda1 console=ttyS0,19200n8 >> astlinux=net4801 astkd=/dev/hda2 ide=nodma >> savedefault >> >> 4) reboot >> >> So far, so good. This is where I get confused... without using >> genkd... >> >> Magically, /dev/hda2 has a file system and is mounted and has >> symbolic links pointing to themselves... >> >> What did I do wrong? >> >> Lonnie >> >> pbx kd # pwd >> /mnt/kd >> pbx kd # ls -l >> -rw-r--r-- 1 root root 8192 Aug 24 14:53 astdb >> lrwxrwxrwx 1 root root 16 Aug 24 14:29 asterisk -> / >> mnt/kd/asterisk >> lrwxrwxrwx 1 root root 15 Aug 24 14:29 cdr-csv -> / >> mnt/kd/cdr-csv >> lrwxrwxrwx 1 root root 16 Aug 24 14:29 crontabs -> / >> mnt/kd/crontabs >> -rw-r--r-- 1 root root 0 Aug 24 14:29 >> dnsmasq.leases >> drwxr-xr-x 2 root root 1024 Aug 24 14:29 home >> drwx------ 2 root root 12288 Aug 24 14:29 lost+found >> drwxr-xr-x 2 root root 1024 Aug 24 14:29 monitor >> drwxr-xr-x 2 root root 1024 Aug 24 14:29 ssh >> lrwxrwxrwx 1 root root 16 Aug 24 14:29 tftpboot -> / >> mnt/kd/tftpboot >> lrwxrwxrwx 1 root root 17 Aug 24 14:29 voicemail - >> > / >> mnt/kd/voicemail >> >> pbx kd # mount >> /dev/root on / type ext2 (ro,nogrpid) >> none on /proc type proc (rw) >> none on /dev type tmpfs (rw) >> none on /var type tmpfs (rw) >> none on /tmp type tmpfs (rw) >> none on /dev/pts type devpts (rw) >> none on /sys type sysfs (rw) >> /dev/hda2 on /mnt/kd type ext2 (rw,noatime,nogrpid) >> none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw) >> >> pbx kd # df >> Filesystem 1k-blocks Used Available Use% Mounted on >> /dev/hda1 47305 40999 6306 87% / >> none 200 0 200 0% /dev >> none 5000 108 4892 2% /var >> none 10000 492 9508 5% /tmp >> /dev/hda2 60997 30 57817 0% /mnt/kd >> >> _______________________________________________ >> 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] > _______________________________________________ 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]
