PDA

View Full Version : How do I make a boot floppy?



n2meg
10-21-2003, 06:02 PM
:cry:
I have knoppix 3.3 installed on my HD, /dev/hdb2
I had created a boot disk and it was working fine for a while till my kids messed up my boot disk to get into linux.

I have 2 HD on my system the first drive is running windoz XP and the second is knoppix linux.

as root what do I type to make a boot disk for hdb2
please help.

I once saw under the KDE menu make boot disk but I can't seem to find it.

thanks

Pablo...

rickenbacherus
10-21-2003, 06:10 PM
Not sure about a GUI tool for making floppies but it's pretty easy under Linux. In a term (of course)

dd if=floppy.img of=/dev/fd0

So just substitute floppy.img for the image you want on a floppy. Oh and BTW the Knoppix floppy image is on the cd.

aay
10-21-2003, 06:45 PM
From the CD.


dd if=/cdrom/KNOPPIX/boot.img of=/dev/fd0

Dave_Bechtel
10-22-2003, 07:55 PM
--You guys need to read his post a bit more carefully. He has Knoppix installed on his HD, and the CD boot image won't help here.

o Boot Knoppix CD in runlevel 2 ' knoppix 2 '
o ' mount /mnt/hdb2 '

--Assuming you have a valid lilo.conf on your install...
' chroot /mnt/hdb2 '
' lilo -b /dev/fd0 ' == Re-write the bootdisk (the floppy should NOT be mounted when you do this!)

--Set the read-only tab on the floppy :oops:

--Hit Ctrl-D to get out of chroot
' reboot ' with floppy in drive.

--The other way is to use syslinux. ' man syslinux ' Basically you mkdosfs on the floppy, cp your kernel to it, and run syslinux on it. This slows down boot time because the entire kernel has to be read from floppy, which is why most ppl use lilo. Here is a post to get you started.

http://www.knoppix.net/forum/viewtopic.php?t=4699&highlight=syslinux

--Once you have a working boot floppy:
' dd if=/dev/fd0 of=mybootfloppy.144.img ' == Make a copy of the bootfloppy to file

--If you ever have to recreate the boot:
' dd if=mybootfloppy.144.img of=/dev/fd0 '

n2meg
10-22-2003, 08:24 PM
Thanks guys! I got into my system, at the console I typed
mkboot

it made me a lilo boot disk for the system, it works great.

thanks for the help

Pablo n2meg... :wink: