LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-24-2004, 01:57 AM   #1
muyu
LQ Newbie
 
Registered: Apr 2002
Location: china
Distribution: rh7.2
Posts: 14

Rep: Reputation: 0
how can make a debian boot floppy? anxiously!


my windows is attacked with Trojan QQ... whatever, have to reinstall it now,
i don't have a bootfloppy, reinstalling window can eliminate disk/mbr .

i need make a bootfloppy for debian, Do you know it's command or which package is belonged?

thanks in advance.
 
Old 03-24-2004, 06:08 AM   #2
AutOPSY
Member
 
Registered: Mar 2004
Location: US
Distribution: Redhat 9 - Linux 2.6.3
Posts: 836

Rep: Reputation: 31
tr looking for mkbootdisk .

This you migh have.

it could be in /usr/bin
/sbin

or another directory.
 
Old 03-24-2004, 11:05 AM   #3
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
Here's a recipe I have used and know works. (had problems with mkbootdisk in Debian);
Creation of a floppy with LILO on MBR:

Lilo is the "Boot Loader" for Linux which typically resides on the MBR of your hard drive. This may easily get wiped out on a multiboot system where a re-loading of the Windows operating system will reload the MBR. If the MBR is overwritten and LILO removed, there will be no way of booting to Linux. Thus it is wise to have a floppy with LILO residing on the MBR of the floppy which can point the system to boot off of the Linux kernel residing on your hard drive. Here is how it is created:



fdformat /dev/fd0 # Lay tracks on new diskette
mkfs -t minix /dev/fd0 # Create minix file system on floppy
cp -p /boot/chain.b /floppy # Copy chain loader
cp -p /boot/boot* /floppy
lilo -v -C /etc/lilo.floppy # Install lilo and the map onto floppy


Note that LILO sets the MBR to the settings as defined by the configuration file /etc/lilo.floppy.

Sample file: /etc/lilo.floppy
boot=/dev/fd0 - Floppy drive (Location of Lilo boot sector)
map=/mnt/floppy/map - Locations on hard drive where the kernel can be found for boot
prompt
linear - Specific to SCSI configurations
timeout=50 - Give the user time to decide (number of seconds) if there are multiple choices
image=/boot/vmlinuz-2.4.18-k7 - Boot this Linux kernel. This depends on your release of the operating system.
label=hd_linux
root=/dev/sdb6 - System instructed to boot from this drive. It is unique to your system. It could be /dev/hda4, it depends on your installation.
initrd=/boot/initrd.img-2.4.18-k7 - This is specific to systems using SCSI hard drives. This line is omitted for IDE.
read-only


Note:

Actual kernel name and version will depend on your Linux release.
Most of the information for /etc/lilo.floppy should be copied from /etc/lilo.conf
Actual names for the files to be used may be seen in the directory /boot
The file initrd-2.2.17-14.img is required by systems using modular SCSI support.
It is generated using the command: mkinitrd /boot/initrd-2.2.17-14.img 2.2.17-14
and should also be copied to the floppy.
 
Old 03-13-2005, 09:30 AM   #4
daem
LQ Newbie
 
Registered: Mar 2005
Distribution: Debian, RH8
Posts: 6

Rep: Reputation: 0
This worked great for me and I'll certainly remember it. I can never be arsed with a boot floppy at install and always regret it! :-)

Incidentally, I noticed a step that was missed off the floppy creation, namely mounting it. After the line:

mkfs -t minix /dev/fd0 # Create minix file system on floppy

you should enter

mount /mnt/floppy # On Redhat systems or mount /floppy on Debian

And when you're finished, before taking it out, type umount /mnt/floppy (or wherever it was mounted)

Also, I found that in the lilo.floppy config, changing the line "map=/mnt/floppy/map" to "map=/boot/map" worked better as I didn't have to copy the map to the floppy. Can't say whether that's a good thing or not though :-)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to make boot floppy? Maxim16 Linux - Newbie 3 06-22-2004 10:51 PM
how can make a boot floppy? anxiously! muyu Debian 3 03-24-2004 09:09 PM
how to make a boot floppy? hasan Debian 3 01-13-2004 02:30 PM
Cannot Boot Linux - forgot to make boot floppy marsial Linux - Newbie 3 08-23-2003 12:39 PM
How to make the boot floppy? Gerardoj Linux - General 2 08-10-2003 06:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration