Solved

Moving My MBR

Posted on 2000-05-08
7
366 Views
Last Modified: 2010-04-20
I have Windows98SE on my first hard-drive and Linux on my second hard-drive. I have loaded System Commander on the drive containing Windows98SE. When System Commander boots, it recognizes both operating systems and identifies both as being bootable. However, when I select Linux, System Commander says that the MBR is either missing or corrupted. I realize that the MBR for Linux is on the second hard-drive, creating my problem. I would like to know how I could either get the Linux MBR over onto my first hard-drive, so that I could boot either Windows or Linux. Thanks
0
Comment
Question by:NightHawk
7 Comments
 
LVL 5

Expert Comment

by:laeuchli
ID: 2788248
ummm, I hope the other experts correct me if I am wrong, but there is only on mbr. It's not on the windows or linux driver. I belive it keeps the boot loader code, but I could be wrong.
0
 
LVL 15

Expert Comment

by:samri
ID: 2788310
NightHawk,

  I would agree with lauchli on the MBR thing.  I believe that there is only one MBR per physical disk.

  You migh be looking at how to use System Commander to dualboot both of  you OS. Why not try LILO.  LILO is good, except for the UI - pretty boring I would say.  

  If you still insist on maintaining the SC, then boot to your Linux and reinstall LILO onto the Linux Partition.  Then, you can select the Linux partition from SC to go to LILO prompt.  Kind of redundat I would say.

  Or you could use LOADLIN as supplied by you Linux distribution (RedHat does).  Copy you recent kernel to  directory in you Win98SE partition along with LOADLIN.EXE, then to fire up - boot to DOS prompt (Safe Mode DOS Prompt is preferrable), then run

LOADLIN C:\PATH\TO\VMLINUZ root=/dev/hda1 ro

Hints, you can customize you CONFIG.SYS and AUTOEXEC.BAT to get  a nice multiboot option for you desktop.

Good Luck,
0
 
LVL 2

Expert Comment

by:EatEmAndSmile
ID: 2789820
Yes, there's only one MBR per disk, not per partition, but I'm afraid NightHawk has got two hard drives, not just one, thus he's got two MBR's. But that's not the problem, as the relevant MBR is the one on the boot hard disk.

 I'd suggest installing LILO. It's by far the cleanest way to have a multi-boot scheme. It's very easily customizable too. If you're running Slackware, for example, setting it up would be as easy as running "liloconfig" as root.

 And taking the opportunity that we're talking about LILO, try chaging the line about VGA in /etc/lilo.conf to:

 vga=extended

 It will provide you with a nice console experience while you're in text mode.

 Good luck!

 PS: Tell me if you want me to post a sample beefed-up /etc/lilo.conf for you.
0
U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

 
LVL 1

Expert Comment

by:Barn_Owl
ID: 2790553
I agree with eatemandsmile(no surprise :).

But if you want to use SC, reinstall lilo to the root partion on the linux drive. This will a void that nasty MBR problem. Make sure that LILO is set to boot right in to Linux or you may find your self selecting OSes twice.
0
 
LVL 2

Expert Comment

by:EatEmAndSmile
ID: 2793635
Hmmm, yep, Barn Owl's advice is quite important if you're keeping the other boot manager. You'll still need LILO to load Linux anyway, but set it up to boot straight into it without prompting.
0
 
LVL 1

Accepted Solution

by:
twall earned 100 total points
ID: 2794264
You can extract the MBR from the second hard drive like so (assuming your second hard drive is on /dev/hdb):

dd if=/dev/hdb of=boot.lnx bs=500

This will create a file, boot.lnx, which System Commander should be able to point to in order to transfer control to LILO or whatever boot loader is in that MBR.

You may need to copy the boot.lnx file onto one of the windows partitions in order for SC to be able to see it.
0
 

Author Comment

by:NightHawk
ID: 2799068
Thanks a bunch. This is the best answer I've heard yet. Thanks to everyone else who has offered suggestions. I REALLY appreciate it! :-)
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
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…
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 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…

820 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