Solved

Moving My MBR

Posted on 2000-05-08
7
362 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

 
LVL 1

Expert Comment

by:Barn_Owl
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

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…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

744 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