Results 1 to 10 of 10

Thread: Advanced Lilo Questions

  1. #1
    Junior Member
    Join Date
    Jan 2004
    Posts
    5

    Advanced Lilo Questions

    Hi all,

    I have Windows 98SE and Knoppix on
    one HD and Windows 2000 on another HD.
    I installed Knoppix last with Lilo in
    the MBR.

    On startup I get the Lilo boot manager
    in which I can choose to load Linux,
    the old Windows-NT boot manager or either
    Windows 98 or Windows 2000 directly.


    Question #1:

    When I select the Windows-NT boot manager from
    the Lilo menu, I can load Windows 98 and 2000 normally.
    But when I select the partitions directly where
    Windows 98 and 2000 are located with Lilo,
    the screen just goes black, but nothing happens.
    It seems as if Lilo is unable to load Windows directly...

    What causes this and how can it be fixed?
    I edited the lilo.conf file in the "/etc/"
    directory but found no instructions for this
    problem.


    Question #2:

    The Windows-NT bootloader was in the MBR of hard disk 1.
    Then I installed Knoppix and Lilo also to the MBR of HD 1.
    Now on booting, I get Lilo and there can select
    a partition which loads the original Windows-NT bootloader,
    which still works (luckily, as I can't boot Windows with Lilo).

    How is this possible?
    Wasn't the Windows-NT bootloader in the MBR overwritten or
    deleted when I installed Lilo also to the MBR???
    Are both bootloaders resident in the MBR now???

    Thanks for all replies!!,
    Mark

  2. #2
    Senior Member registered user
    Join Date
    Mar 2003
    Posts
    555
    One can only multi-boot win9x/ME and NT/XP when using the NT boot loader. So you need to branch to it from lilo (like you currently do), or alternatively you could use the NT boot loader as your primary BL with a knoppix entry. How to add a linux entry to boot.ini is well documented (just search google for say "linux NT boot loader").

  3. #3
    Junior Member
    Join Date
    Jan 2004
    Posts
    5
    Hi baldyeti,

    Thanks for your reply!

    I figured out some questions on my own now:

    Both Lilo is required to boot Linux, always AND the WinNT Bootloader is required to boot Windows 2000 or 98, always, when you have both.
    You can only configure Lilo or the Windows bootloader so that no menu is displayed and that they boot their OS without hesitation, which gives the impression, that Linux or Windows could be booted without any boot loader (as in single OS setups). Anytime you load an OS, this is done by a bootloader. Sometimes they just don't show a menu or anything else and don't wait for a user input.

    I think both Lilo AND the Windows NT bootloader can be written to the MBR at the same time without overwriting one another. Don't ask me how, that's just how it appears to be.

    Greetings,
    Mark

  4. #4
    Senior Member registered user
    Join Date
    Mar 2003
    Posts
    555
    You got it mostly correct Just because one does not multi-boot does not mean no boot-loader is needed. With a single OS, the boot loader does not need to display any menu and can swiftly proceed without even being noticed.

    The only thing I'd like to clarify is that by definition no two loaders can take control of the MBR. The Master Boot Record is the one and only first physical 512-byte block at the start of any HD. What is possible - and rather common, is that two boot loaders can be chained. When you copy a lilo boot record from some linux root filesystem to a windows partition and create an entry in boot.ini for that smallish 1-block file, you're chanining lilo to the NT boot loader. When you create an entry for windows in /etc/lilo.conf, you're branching from lilo to the NT bl.

    Cheers,

    --bald

  5. #5
    Junior Member
    Join Date
    Jan 2004
    Posts
    5

    Two boot loaders in MBR?

    Hi baldyeti,

    Then how do you explain that I first had the Windows-NT boot loader in the MBR for WIn 98 and 2000, then installed Knoppix with Lilo in the MBR aswell and then the system would boot with Lilo which gave me the choice to load the NT-bootloader which still worked?
    Obviously the NT bootloader in the MBR was not overwritten when Lilo was written to the MBR too, so what happened?

    Greetings,
    Mark

  6. #6
    Senior Member registered user
    Join Date
    Mar 2003
    Posts
    555
    The NT (or DOS for that matter) MBR just checks which (primary) partition is marked active, and branches there. The boot sector at the start of said partition (generally hda1 when windows was first installed) then launches ntldr, which presents you a menu built from the entries present in the boot.ini file. When lilo is installed to mbr, choosing a windows entry does much the same and jumps to the windows partition (it does not have to be marked active in this case) and things proceed as explained above. Remember the mbr is a mere 512 bytes chunk of code which cannot do much more than appropriately launch a more capable loader (ntldr in the case of NT/XP, stage2 in the case of grub...).

  7. #7

    lilo

    Quote Originally Posted by baldyeti
    One can only multi-boot win9x/ME and NT/XP when using the NT boot loader.
    I don't think this is correct. As far as I know Lilo can boot all of them. I recently had a lilo boot menu with entries for Knoppix, Win2k and win98.

    so long

  8. #8
    Senior Member registered user
    Join Date
    Mar 2003
    Posts
    872

    Re: Two boot loaders in MBR?

    Quote Originally Posted by markschmid
    Hi baldyeti,

    Then how do you explain that I first had the Windows-NT boot loader in the MBR for WIn 98 and 2000, then installed Knoppix with Lilo in the MBR aswell and then the system would boot with Lilo which gave me the choice to load the NT-bootloader which still worked?
    Obviously the NT bootloader in the MBR was not overwritten when Lilo was written to the MBR too, so what happened?

    Greetings,
    Mark
    Either Lilo saved it or the NT bootloader is not installed at MBR but just the BR of its own partition. Each disk has one and only one MBR, but each partition has its own BR. In the old days, the MBR is pretty simple, it reads the partition table and find out which is the current 'Active' partition and chain load it. This seems to be what happened in your case, lilo/grub just replace the dumb MBR boot loader and chain load to the NT boot loader of its own partition. In fact, NT has put 2 identical BR, one at sector 0, one at sector 6 so even if you overwrite the NT boot loader(be it MBR or not), it can still be chained boot by going to sector 6.

  9. #9
    Senior Member registered user
    Join Date
    Mar 2003
    Posts
    872

    Re: lilo

    Quote Originally Posted by Besserwisser
    Quote Originally Posted by baldyeti
    One can only multi-boot win9x/ME and NT/XP when using the NT boot loader.
    I don't think this is correct. As far as I know Lilo can boot all of them. I recently had a lilo boot menu with entries for Knoppix, Win2k and win98.

    so long
    If w2k and 98 is installed in different drive, you are right. Otherwise, baldyeti is write as the 98 boot record would have been saved to the c:\ and replaced by NT's. So there is no way lilo would be able to see it. But 2 level chaining is possible.

  10. #10
    Senior Member registered user
    Join Date
    Mar 2003
    Posts
    555

    Re: lilo

    If w2k and 98 is installed in different drive, you are right. Otherwise, baldyeti is write as the 98 boot record would have been saved to the c:\ and replaced by NT's.
    Erh ... actually it seems I was wrong. I'd swear I had tried that in the past but one can chain to the hidden win9x bootsector in addition to the NT bootloader: (assuming hda1 is your C: fat)
    Code:
    other=/mnt/hda1/bootsect.dos
    label=win98
    
    other=/mnt/hda1
    label=win2k
    Perhaps this capability was introduced after I tried long ago; I've been fiddling with all this since way too long!-)
    All in all this is good news since it means lilo can be used as sole boot loader when needed.

    Sorry for the confusion,

    Cheers,

    --bald.

Similar Threads

  1. Reinstall lilo to hda, using hda lilo.conf and knoppix live
    By tomjermy in forum Hardware & Booting
    Replies: 1
    Last Post: 03-17-2005, 01:07 AM
  2. advanced knoppix questions
    By redss in forum General Support
    Replies: 2
    Last Post: 06-16-2004, 12:53 PM
  3. X questions
    By firebyrd10 in forum General Support
    Replies: 11
    Last Post: 03-27-2004, 05:54 AM
  4. Lilo.conf questions
    By *ix Newbie in forum Hdd Install / Debian / Apt
    Replies: 5
    Last Post: 12-20-2003, 05:06 PM
  5. Several apt-get questions
    By baldyeti in forum Hdd Install / Debian / Apt
    Replies: 3
    Last Post: 08-24-2003, 03:42 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Vintage Apple IIe  French / Français  Manual & Introduction Disk picture

Vintage Apple IIe French / Français Manual & Introduction Disk

$22.00



Z80 - NABU PC & Keyboard - Vintage New Old Stock (Retro 80's) picture

Z80 - NABU PC & Keyboard - Vintage New Old Stock (Retro 80's)

$139.99



vintage computer cables picture

vintage computer cables

$33.00



Z80 - NABU PC & Keyboard - (With Issues) Vintage NOS (Retro 80's) picture

Z80 - NABU PC & Keyboard - (With Issues) Vintage NOS (Retro 80's)

$99.99



Vintage Vertisoft Space Manager for MS DOS 6/6.2 on 3.5 Media - New in Box picture

Vintage Vertisoft Space Manager for MS DOS 6/6.2 on 3.5 Media - New in Box

$9.99



NEW Manufacture OLD STYLE Oval 3 Prong Power Cord HP style 125V 7A 875W Vintage picture

NEW Manufacture OLD STYLE Oval 3 Prong Power Cord HP style 125V 7A 875W Vintage

$39.95



3-1/2

3-1/2" Floppy Drive Head Cleaning System Vintage NEW

$19.99



Assortment of vintage apple software etc. Read description for details picture

Assortment of vintage apple software etc. Read description for details

$50.00



DATAPOINT vintage PRINTER EXTREMELY clean MICROLINE 92 MADE IN JAPAN picture

DATAPOINT vintage PRINTER EXTREMELY clean MICROLINE 92 MADE IN JAPAN

$249.00



Vintage 2000 APPLE iMac G3 BLUE WORKS PERFECTLY picture

Vintage 2000 APPLE iMac G3 BLUE WORKS PERFECTLY

$133.75