Other Help Topics :: don't re-gen SSH keys



Ahhh bueno ... yes, /cdrom/boot/lilo.conf has the following line:

APPEND="ramdisk_size=100000 init=/etc/init lang=us apm=power-off hda=scsi hdb=scsi hdc=scsi nofirewire nomce nodma quiet frugal BOOT_IMAGE=/KNOPPIX/KNOPPIX 2 ssh nfs syslog nomonkey restore=hdc2  "


I wasn't aware of this file...thanks!

Now, how do I get lilo to re-config the boot loader?

After removing /etc/lilo.conf and symlinking /cdrom/boot/lilo.conf into /etc, running "lilo" gives:

root@0[etc]# lilo
Fatal: creat /boot/map~: Read-only file system

Any ideas?

mount -o remount,rw /cdrom
mkdir /tmp/tmp
cp -a /boot/* /tmp/tmp
mount -t tmpfs tmpfs /boot
cp -a /tmp/tmp/* /boot

That should do it, having both /cdrom and /boot writable..

Thanks for the help! Getting closer, I think...

root@0[opt]#
root@0[opt]# mount -o remount,rw /cdrom
root@0[opt]# mkdir /tmp/tmp
root@0[opt]# cp -a /boot/* /tmp/tmp
root@0[opt]# mount -t tmpfs tmpfs /boot
root@0[opt]# cp -a /tmp/tmp/* /boot
root@0[opt]# lilo
Fatal: Trying to map files from unnamed device 0x0009 (NFS ?)

Next steps?

so it does save it by default...

From the frugal_lilo.sh install script (I've seen this posted before):

ln -sf /mnt/$TARGET/boot /
lilo -C /mnt/$TARGET/boot/lilo.conf

where $TARGET is your partition with DSL.

Since DSL mounts /cdrom as that partition by default, you might be able to substitute /mnt/$TARGET with /cdrom - but I'm not sure.

Awesome - that seemed to let lilo run peacefully ...

root@1[/]# mv boot boot.1
root@1[/]# mount /mnt/hdb1
root@1[/]# ln -s /mnt/hdb1/boot /
root@1[/]# lilo -C /mnt/hdb1/boot/lilo.conf
Added DSL *

However, since I did that remotely over an ssh tunnel back to my office, then ssh'd over to the dev board, I'm reluctant to reboot the board remotely for fear of loosing the ssh connection to it if something goes wrong (I still have more dev work to do on it tonite from home - if ssh goes, no more work tonite. :-) Could be good ..or bad..)

Anyway, I'll try the reboot tomorrow ...all should work as expected, but we'll see. Thanks for all your help everyone - many thanks!

Next Page...
original here.