?
Solved

How to boot Linux using floppy in dual boot scenario?

Posted on 2003-12-02
8
Medium Priority
?
1,197 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
[X]
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
8 Comments
 
LVL 5

Expert Comment

by:paulqna
ID: 9860246
0
 
LVL 15

Assisted Solution

by:sr75
sr75 earned 100 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
Quick Cloud Training

Looking for some quick training on the cloud in 2 hours or less? Check out these how-to guides in AWS, Linux, OpenStack, Azure, and more!

 
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 400 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

Learn how to optimize MySQL for your business need

With the increasing importance of apps & networks in both business & personal interconnections, perfor. has become one of the key metrics of successful communication. This ebook is a hands-on business-case-driven guide to understanding MySQL query parameter tuning & database perf

Question has a verified solution.

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

Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will giveā€¦
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses
Course of the Month10 days, 21 hours left to enroll

770 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