PDA

View Full Version : using as a boot cd



mAineAc
04-08-2003, 11:55 PM
Is there a way to use knoppix cd to boot a system that is already on the harddrive? I have a friend who has a redhat system and he overwrote the mbr and didn't make a boot floppy. I tried using root=/dev/hda6 but it keeps cutting it off. The image is on /dev/hda6 :) . Is there a way to use knoppix to do this?

oscar
04-09-2003, 01:05 AM
use knoppix to mount /dev/hda6 (rh partition) and to copy from /dev/hda6/boot vmlinuz and initrd.img to a DOS partition (hda1 ?)
From windows you may use ltools to copy files from linux partitions.
then booot redhat with loadlin

for example
c:\loadlin.exe c:\vmlirhat root=/dev/hda6 ro initrd=c:\initrhat.img

NB vmlirhat and initrhat.img are the renamed files copied from rh /boot

VeeDubb
04-09-2003, 01:28 AM
There is a better way.

If you search in the "lounge" area, I made a post about a boot laoder called GAG. The post was titled something along the lines of "great boot laoder for n00bs" Basicaly, you install this boot loader on a floppy disk and rebot with the disk in. A screen will come up that will let you set up a new boot laoder for up to 9 operating systems and write it to the MBR. I have allready used it several times you replace a bad MBR and it is fantastic. If you have trouble with it, just let me know.

RockMumbles
04-09-2003, 05:12 AM
boot knoppix on the system

mount the hd partition read/write

cd to the hd partition

chroot the hd partition

edit /etc/lilo.conf if necessary

/sbin/lilo -v


should do it

rock

mAineAc
04-10-2003, 08:44 PM
thanks for the help guys.