Overclock.net › Forums › Software, Programming and Coding › Operating Systems › HowTo: Windows AND linux Bootloaders
New Posts  All Forums:Forum Nav:

HowTo: Windows AND linux Bootloaders

post #1 of 2
Thread Starter 
ok first off the glossary:
MBR - Master Boot Record -space at the beginning of the disk to tell the computer how to boot
PBR - Partition Boot Record - Space at the begging of the Partition to tell how to boot the computer

WINDOWS
in windows server 2003, START -> right clik "My Computer" -> ""properties" -> "Advanced" -> "Startup and Recovery" -> "Setting" will bring you to the options menu for the NT BootLoader
if you don't have this option goto the root of your install drive and unmart all attributes of boot.ini (its hidden)
NTBL excepts windows install dirs or raw bootloader images in files
and ether the windows drive naming scheme or its own scheme

LINUX
grub is usually the boot loader for Linux on x86
you must manually edit the config file which is /boot/grub/menu.lst
it excepts grub commands,

Some simple tutorials
the {} are to express variables like {your harddisk} or {os}
please replace with the requested info

device ========================= disk # = linux device
first ata chain master ============== disk 0 = hda
first ata chain slave =============== disk 1 = hdb
second ata chain master =========== disk 2 == hdc
second ata chain slave ============= disk 3 = hdd
then your sata drives are 4 and onward ========sd{letter}
(note for each cd drive or missing disk, subtract one from all disk #
past it, don't do this with Linux)
wright grub to mbr
1 boot to Linux
2 open a root shell
3 type "grub"
4 type "root (hd{disk # that grub is on},{partition # grub is on})"
5 type "setup (hd{disk # your writing mbr on})

wright grub to PBR
1 boot to Linux
2 open a root shell
3 type "grub"
4 type "root (hd{disk # that grub is on},{partition # grub is on})"
5 type "setup (hd{disk # your writing mbr on},{partition # your writing PBR on)
turn a grub PBR into a raw BL file
(note: BE SURE about your variables)
1 boot to Linux
2 open a root shell
3 type "dd if=/dev/{Linux device for target disk}{partition # for targe partiton} of=/{output file name and dir} bs=512 count=1
add a raw BL file to NT BL
1 boot to windows
2 copy the file to the root of your install dir
3 goto the config screen and hit edit
4 copy the disk location info (ie. "multi(0)disk(0)rdisk(0)partition(1)\\") to the end of the file
5 type '{name of BL file}="{title you want}"'
6 save
Add a partition grub to chainload
1 boot to linux
2 open /boot/grub/menu.lst as root
3 add:
Quote:
title {some title}
chainloader (hd{disk # of windows},{partition # of windows}
4 save
wright NT BL to mbr of your first disk
1 boot to windows (or windows setup)
2 open an administrator console (or windows recovery console)
3 type fixmbr


Theres a lot more but I need to Do some Research
Comments PLEASE, this is not a Verbose, or noob frendly guide
so inprovements welcome
Atlantis
(13 items)
 
  
CPUMotherboardGraphicsRAM
AMD Athlon(tm) 64 X2 Dual Core Processor 6400+ Asus M2N-SLI deluxe bfg tech geforce 7600 gt oc 1 GB corsair xms ddr2 
Hard DriveOSMonitorKeyboard
80 GB sata +320 GB sata Gentoo:win2k3 ACER micro wireless 
PowerCaseMouse Pad
350w need 600w TT sviking the "blue mouse pad" 
  hide details  
Reply
Atlantis
(13 items)
 
  
CPUMotherboardGraphicsRAM
AMD Athlon(tm) 64 X2 Dual Core Processor 6400+ Asus M2N-SLI deluxe bfg tech geforce 7600 gt oc 1 GB corsair xms ddr2 
Hard DriveOSMonitorKeyboard
80 GB sata +320 GB sata Gentoo:win2k3 ACER micro wireless 
PowerCaseMouse Pad
350w need 600w TT sviking the "blue mouse pad" 
  hide details  
Reply
post #2 of 2
This wont work if your using vista, the fixmbr function doesnt even work, you have to go Bootrec /FixMBR to get it back lol

(figured this out when grub kept giving me error 21)
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Operating Systems
Overclock.net › Forums › Software, Programming and Coding › Operating Systems › HowTo: Windows AND linux Bootloaders