Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (2) </ 1 [2] >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: don't re-gen SSH keys, Stop DSL from re-generating SSH keys< Next Oldest | Next Newest >
josiahbryan Offline





Group: Members
Posts: 11
Joined: Oct. 2006
Posted: Dec. 10 2007,16:58 QUOTE

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?
Back to top
Profile PM 
curaga Offline





Group: Members
Posts: 2163
Joined: Feb. 2007
Posted: Dec. 10 2007,18:58 QUOTE

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..


--------------
There's no such thing as life. Those mean little jocks invented it ;)
-
Windows is not a virus. A virus does something!
Back to top
Profile PM 
josiahbryan Offline





Group: Members
Posts: 11
Joined: Oct. 2006
Posted: Dec. 10 2007,19:02 QUOTE

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?
Back to top
Profile PM 
^thehatsrule^ Offline





Group: Members
Posts: 3275
Joined: July 2006
Posted: Dec. 11 2007,00:01 QUOTE

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.
Back to top
Profile PM 
josiahbryan Offline





Group: Members
Posts: 11
Joined: Oct. 2006
Posted: Dec. 11 2007,00:56 QUOTE

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!
Back to top
Profile PM 
9 replies since Dec. 10 2007,14:31 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (2) </ 1 [2] >/
reply to topic new topic new poll
Quick Reply: don't re-gen SSH keys

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code