Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 374
  • Last Modified:

Moving My MBR

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
NightHawk
Asked:
NightHawk
1 Solution
 
laeuchliCommented:
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
 
samriCommented:
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
 
EatEmAndSmileCommented:
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
Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

 
Barn_OwlCommented:
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
 
EatEmAndSmileCommented:
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
 
twallCommented:
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
 
NightHawkAuthor Commented:
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

Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

Tackle projects and never again get stuck behind a technical roadblock.
Join Now