Solved

Dual Boot

Posted on 2003-11-09
8
1,341 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
[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 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
NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

 

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

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
AWS EC2 HTTP & HTTPS 2 120
postfix start error! 9 86
How to swap or extend CentOS partition 11 51
Shrink Linux Swap File Size CentOS 10 73
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…
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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.:
Suggested Courses

752 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