Solved

Dual Boot

Posted on 2003-11-09
8
1,327 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
 

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
Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

 
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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Join & Write a Comment

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 …
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

758 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now