Getting a duel boot to work
Okay, I've done this a million times.. But for some reason today, after i reformatted and installed windows again, lilo wont boot into windows anymore.
Fdisk -l Code:
Disk /dev/hda: 122.9 GB, 122942324736 bytes Code:
boot = /dev/hda1 Any Ideas? |
try
Code:
other = /dev/hdb1 |
When I changed it to that, and I try to run lilo:
Code:
Warning: LBA32 addressing assumed |
ok your version of LILO is old, try this one instead
Code:
other = /dev/hdb1 |
Try it the simple way:
Code:
other=/dev/hdb1 |
...should'nt you install lilo to mbr of the whole hd - that would mean a line like this:
boot = /dev/hda if you install it like: boot = /dev/hda1 it gets installed to the first partition of hda - and will probably not be found - there needs to be a mbr for the disk as a whole - I think |
Quote:
But this brings up another point - is the OP re-running lilo after each edit of the lilo.conf file? If you don't re-run lilo then it won't install the new options into the MBR. Also, if he does specify it as /dev/hda1 instead of /dev/hda then it might not update the correct MBR. |
No, I do not need to install it on the mbr.. As long as it is the first hard drive parititon with the boot attribute (from cfdisk/fdisk) it will boot..
And thank you demonbane, this was a wierd problem and i dont understand how that fixed it.. Care to explain? btw- it works now :) |
It depends on how yor drives were configured when Windows was installed. If your hdb was either set to the first boot device in bios or physicaly moved to hda while installing Windows, then it needs to stay in the first boot device in order to boot, therefore when you set the first boot device back to your 120gig drive it fails to load.
The workaround is to trick the Windows os loader into thinking it is on the first boot device, which is exactly what the "map-drive" or "boot-as" directives in lilo.conf is doing. Note that this is not always the case, for example if you left the 120gig drive as the first boot device while installing Windows, chances are Windows os loader gets installed /dev/hda2 where it's able to write into and set to active by the installer, in that case you configure lilo to load /dev/hda2 without the drive mappings. |
Oh okay, I did choice A (took out the 120gb and installed windows) because when I tried to install windows with the 120gb still in (installing windows on my 40gb) However It came up with an error saying NTLDR.exe not found or something along those lines.
So I figured I should just unplug the 120gb's power, install windows, plug the 120gb back in and reconfig lilo to boot the new windows. Then I got that error Demonbane came to the rescue, thanks buddy. For reference to others about this "boot-as" / "map-drive" trick, heres part of the manual (lilo.conf) Code:
This flag (LILO version 22.5) indicates a DOS/Win_ Sorry for the long post, i just was thinking and typing at the same time. Thanks Demonbane |
put it this way
Code:
map-drive=0x80 to=0x81 Code:
boot-as = 0x80 |
All times are GMT -5. The time now is 04:25 PM. |