Solved

Dual Boot

Posted on 2003-11-09
8
1,340 Views
Last Modified: 2013-12-06
I had a dual boot between win98 and red hat 8.0... I reinstalled my windows 98 from scratch and obviousely it created a new boot record and now my dual boot is gone. How can I get it back?

Thanks
0
Comment
Question by:dvdwalt
8 Comments
 
LVL 9

Accepted Solution

by:
svenkarlsen earned 20 total points
ID: 9713502
Hi dvdwalt,

1. from win98, open a dos-box

2. run fdisk

3. select your Linux partition as active

4. boot (now Linux should come up)

5. run lilo to re-install it


Kind regards,
Sven
0
 

Expert Comment

by:skamp
ID: 9713594
were they both on the same HD?
you might have to boot from the bootdisk (cd/floppy)

if linux is on another HD
at the boot prompt type something like this:
linux root=/dev/hdX  where X is your linux drive

is linux is on the same HD
linux root=/dev/hdaX   where X is the partition number
(if you run fdisk it will tell you how many partitions you have. just run through the numbers untill you get it right)

then as root run  lilo

reboot and you have a dual boot again!
0
 

Expert Comment

by:skamp
ID: 9713615
oops..
if they are on different HD's it will be
linux root=/dev/hdXZ    where X is the hard drive (primary master =a primary slave =B) and Z is the partition number (usually 1)

0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:dvdwalt
ID: 9714916
It's on one hard drive... I've read somewhere that you can type "fdisk /mbr" or something?
0
 
LVL 5

Expert Comment

by:g0rath
ID: 9715100
fdisk /mbr is what you use to remove lilo from the master boot record and replace it with Microsoft's, most people do this when they are removing linux...

the other suggestions above are on track and where you should go.
0
 

Author Comment

by:dvdwalt
ID: 9715372
Thanks
0
 
LVL 4

Expert Comment

by:ostdp
ID: 9720397
Lilo depends on a map file which resides in /boot/lilo i believe. In this map file it has information on partitions and their offsets and some other information. You should be able to reinstall lilo if you manage to keep the map file. I have never done this before but that is how I would go about it. You could also try to install a bootloader like grub. Get yourself one of the run from cd only linux distros or use your redhat installation disk to get access to the linux partition. (either d/l something like Knoppix , http://www.knoppix.com or installation disks in rescue mode). Once you have access you should be able to either reinstall LILO or install GRUB.  That's my 2 cents.


0
 

Expert Comment

by:ragoley
ID: 9765039
Rehat 8.0 installs GRUB by default so unless you changed it , you need to reinstall GRUB to the MBR not lilo.  you will need to login to the linux side and type "grub-install /dev/hda".  To do this either use fdisk in windows to set the linux /boot partition active or boot from the RedHat media and type "linux rescue" or "rescue" to start a rescue session.  When that has come up type the following commands, exclude my comments thuogh:

mkdir /mnt2
mount /dev/hda1 /mnt2  (This should be your root partition number where I have hda1)
mount /dev/hda3 /mnt/boot  (This should be your boot partition number where I have hda3)
chroot /mnt2   (This sets your environment to use your real system.)

/sbin/grub-install /dev/hda  (This should install grub to the MBR)




After doing that reboot the machine and the grub boot screen should greet you.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
1. Introduction As many people are interested in Linux but not as many are interested or knowledgeable (enough) to install Linux on their system, here is a safe way to try out Linux on your existing (Windows) system. The idea is that you insta…
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

679 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