Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Dual Boot

Posted on 2003-11-09
8
Medium Priority
?
1,348 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 60 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
Understanding Linux Permissions

Linux for beginners: How to view the permissions associated with files and directories and also how you can change them.

 

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

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

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

This article will explain how to establish a SSH connection to Ubuntu through the firewall and using a different port other then 22. I have set up a Ubuntu virtual machine in Virtualbox and I am running a Windows 7 workstation. From the Ubuntu vi…
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 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…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Suggested Courses

705 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