Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

How to boot Linux using floppy in dual boot scenario?

Posted on 2003-12-02
8
1,192 Views
Last Modified: 2010-04-21
I would like to dual boot Redhat Linux 9 and XP but have Linux boot only from floppy so as not to have to modify the MBR.  What is the best procedure for this using Redhat 9 and XP?  I have XP installed now...

Thanks for any insight!
0
Comment
Question by:davis
8 Comments
 
LVL 5

Expert Comment

by:paulqna
ID: 9860246
0
 
LVL 15

Assisted Solution

by:sr75
sr75 earned 25 total points
ID: 9861301
If you do not want to change the Windows MBR, there is a way to have it boot Linux.

Run this from the command line with a floppy in the drive

  dd if=</> of=/bootsect.lnx bs=512 count=1

(</> represents the location of your root filesystem, probably /dev/hdb2). This creates a file of the first 512 bytes of your / and this is exactly what windows needs to boot linux.

Copy 'bootsect.lnx' to a floppy to transfer to Windows.

Boot into windows and get your bootsect.lnx file and put it wherever you want
 
Now you have to add a line to boot.ini. (do a search and open it.  After you modified it close with X and save)
   "C:\<bootsect.lnx's path>="RedHat Linux 9 (shrike)"

   [boot loader]
   timeout=30
   default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
   [operating systems]
   multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional" /fastdetect
   C:\bootsect.lnx="RedHat Linux 9 (Shrike)"
0
 
LVL 1

Author Comment

by:davis
ID: 9861951
Two quick questions:

1- If I were to follow the procedure above, would the Floppy be necessary to boot? (that is what I am looking for)

2- If I wanted to remove Linux, all that is needed is to remove the partitions and all is gone?  Anything else necessary?

thanks!

0
Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

 
LVL 15

Expert Comment

by:sr75
ID: 9862707
1.  Only when doing the disk dump (dd) of the /.  after that Windows should be able to load the file you create and copy to windows.  This will allow you to multi-boot windows and linux and not change the windows MBR.

2.  Yes.  and remove the Boot.ini entry.  Then that is it.
0
 
LVL 22

Accepted Solution

by:
pjedmond earned 100 total points
ID: 9866468
During the install of RH 9.0 you get the opportunity to make a boot floppy. This floppy enables you to boot without altering the MBR or any of the non Linux partitions - basically when you want to boot into linux, insert the floppy, when you don't, then don't. When asked whether you want to insert a boot loader anywhere just say no:)

By doing it this way, you don't even need to change the boot.ini file
0
 
LVL 1

Expert Comment

by:arn0ld
ID: 9871562
To avoid removing the diskettte, you can use lilo (or grub- i do not use it) -
create lilofd.conf containing (e.g.):
boot=/dev/fd0  ## MUST

other=/dev/hda1
table=/dev/hda
label=Windows

image=/vmlinuz #or /boot/vmlinuz
label=Linux
root=/dev/hda2

Then
lilo  -v -v   -C   lilofd.conf

==Even Better==
If you :
fdformat  /dev/fd0h1440
mke2fs /dev/fd0
mount /dev/fd0   /mnt/fd0
cp /vmlinuz to /mnt/fd0
, you can add to the conf:

image=/mnt/fd0/vmlinuz
        label=LnxFlop
        root=/dev/hda2

and have a semi-quasi rescue diskette.

BTW, I ALWAYS boot from floppy - great grief avoider

And, of course, get  toms:    http://www.toms.net/~toehser/rb/

0
 
LVL 1

Author Comment

by:davis
ID: 9876405
Thanks very much for the feedback!  
0
 

Expert Comment

by:boyzen
ID: 11904071
Her's is my QUESTION!

I installed redhat 9.0 a few months ago, but now I've lost the boot diskette.The default OS on my system is win XP which means I can't boot from linux during startup.  How do I edit boot.ini to see the 2 options to get access to linux again?
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question