LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 07-16-2004, 02:44 AM   #1
eaglegst
Member
 
Registered: Dec 2003
Location: Australia
Distribution: Woody, Sarge, Sid
Posts: 83

Rep: Reputation: 15
mkboot does not work


it says success when I use it to build a boot floppy.
but the floppy can not get me into linux at all.
It shows the lilo menu, but afterwards it says an error Ex01 then it goes back to the lilo menu.
What could be wrong?

It is an xp/linux dual-boot machine. I installed lilo in the MBR of the linux disk.
With the same way it worked before on another machine. Is it because I am on Sarge and mkboot got corrupted during a upgrade??
 
Old 07-16-2004, 04:22 AM   #2
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
The following is the method I have used and it works everytime;

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.
 
  


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
Does the mounting of a *BSD partition on linux work work well when rw ? kloss *BSD 3 10-08-2005 02:21 PM
Will Ubuntu Work work With my Wireless Card? PulsarSL Ubuntu 3 10-07-2005 10:33 PM
got ALSA to work in root, need help getting it to work in my user profile ic3 Slackware 2 11-28-2003 10:32 PM
FALCONS EYE (nethack) FAILS ON STARTUP, use to work, wont work even after reinstall roorings Linux - Software 0 10-08-2003 10:39 PM
UPS cable didn't work. A cool work-around jlangelier LinuxQuestions.org Member Success Stories 1 07-18-2003 05:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 12:55 AM.

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