Results 1 to 8 of 8

Thread: dual boot from the dark side

  1. #1
    Junior Member registered user
    Join Date
    Jul 2003
    Location
    San Diego
    Posts
    23

    dual boot from the dark side

    I have been at this for a while. What I want to do is to be able to use ntldr to boot into an hd poorman's install of Knoppix. It seems doable and I would like to understand what is going on - i.e. why it doesn't work!

    Here is what I did. I booted KNOPPIX from the CD and used mkfloppy.bat to create a bootable floppy.

    Then I logged off, booted in Win2K, made an 8 GB fat32 partition, made a KNOPPIX directory there, copied to this directory in this order: vmlinuz, miniboot.gz, and KNOPPIX image. (Got these ideas from previous contributions to this forum.)

    Then I popped in the floppy, configured bios to use the floppy drive as the first boot device, and allowed the system to boot. It came up using the HD "install". I then used the following command to copy the first 512 bytes of the fat32 partition as follows:
    dd if=/dev/hdb3 bs=512 count=1 of=/mnt/floppy/linux.bin

    I then logged out, rebooted in Win2K, copied the linux.bin file to my C drive, edited the boot.ini file to add the following line:
    c:\linux.bin="KNOPPIX"

    Then I restarted, and when given the choice, selected the KNOPPIX boot option. The moment of truth had arrived and sadly, all I had for my effort was a flashing cursor in a gray screen.

    A quick peek at the linux.bin file just to see if there was anything to be learned showed that the last lines said:

    NTLDR is missing˙
    Disk error˙
    Press any key to restart

    What I thought would happen is that the NTLDR would use the linux.bin to find the vmlinuz file in the fat32 partition and that booting would proceed from there.

    I realize that others have tried this and not succeeded. If it cannot work, at least I would like to understand why. Any answers from the wise ones in this forum will be most appreciated.

    Eventually, I plan to really install Knoppix. I am just taking my time, and trying to learn along the way.

    Thanks.

  2. #2
    Senior Member registered user
    Join Date
    Mar 2003
    Posts
    872
    when you format a partition under NT, it install its boot sector there which of course cannot boot linux.

    search 'w32grub' on this forum.

  3. #3
    Junior Member registered user
    Join Date
    Jul 2003
    Location
    San Diego
    Posts
    23
    Quote Originally Posted by garyng
    when you format a partition under NT, it install its boot sector there which of course cannot boot linux.
    Actually, I think that Linux (Knoppix) doesn't require that it format the MBR in order to be booted. ntldr can boot a regularly installed Linux system. The problem has to do with the way the CD version gets booted. This is the part that I would like to understand better.

  4. #4
    Senior Member registered user
    Join Date
    Mar 2003
    Posts
    872
    Quote Originally Posted by socalgail
    Quote Originally Posted by garyng
    when you format a partition under NT, it install its boot sector there which of course cannot boot linux.
    Actually, I think that Linux (Knoppix) doesn't require that it format the MBR in order to be booted. ntldr can boot a regularly installed Linux system. The problem has to do with the way the CD version gets booted. This is the part that I would like to understand better.
    NTLDR can boot a regularly installed linux system ? That I don't know. My limited knowledge for it is that it can boot multiple version of NT/XP/W2K residing on various partition under various directories. In addition, it can chain load a 512 byte file on the C:\(I believe designed for backward compatibility of DOS/9x/ME). I am curious to know how it can boot load other OS.

  5. #5
    Junior Member registered user
    Join Date
    Jul 2003
    Location
    San Diego
    Posts
    23
    Yes, it is the chain loading feature that I wish to use. But I think I may have found the problem. I have 2 drives and I need to set the boot order correctly in the BIOS for any of this to work. I will try that later today. Thanks so much for the help.

  6. #6
    Senior Member registered user
    Join Date
    Mar 2003
    Posts
    872
    Quote Originally Posted by socalgail
    Yes, it is the chain loading feature that I wish to use. But I think I may have found the problem. I have 2 drives and I need to set the boot order correctly in the BIOS for any of this to work. I will try that later today. Thanks so much for the help.
    As far as I know, you don't need to touch the BIOS. You just need to install a linux boot loader(lilo or GRUB) to the partition(or MBR of the drive containing it). Then you can use the procedure you described to grab the 512 byte sector from there.

    The message you saw in "linux.bin" is really a standard boot sector by NT which is useless. Just install lilo/grub the the place you grab and redo it. It should be fine. alternatively, you may try w32grub.

  7. #7
    Junior Member registered user
    Join Date
    Jul 2003
    Location
    San Diego
    Posts
    23
    Please correct me if I am wrong but I have formed the impression from reading in these forums that in order to use lilo or grub you have to have an actual Linux installation, not just the CD Knoppix image copied to the hard drive. What I want to be able to do if possible is to boot from the hard drive the way I can boot from the floppy. I think I need to do more research and reading to understand what is really going on during the floppy boot or the CD boot for that matter that makes the Knoppix image load. This will sadly have to wait till next weekend. Thanks again.

  8. #8
    Senior Member registered user
    Join Date
    Mar 2003
    Posts
    872
    Quote Originally Posted by socalgail
    Please correct me if I am wrong but I have formed the impression from reading in these forums that in order to use lilo or grub you have to have an actual Linux installation, not just the CD Knoppix image copied to the hard drive. What I want to be able to do if possible is to boot from the hard drive the way I can boot from the floppy. I think I need to do more research and reading to understand what is really going on during the floppy boot or the CD boot for that matter that makes the Knoppix image load. This will sadly have to wait till next weekend. Thanks again.
    Noop. lilo only needs to know the existence of 2 files, vmlinuz and miniroot.gz which is all is needed for it to install itself and boot to linux. GRUB is simpler even. It only needs to know the location of its own file (stage1/stage2). These file can be put onto your FAT paritition and you can run lilo/grub with the proper syntax to tell them where those things are.

    I am doing what you want to do on my notebook with at least 4 variants of linux all stored as big files on FAT/NTFS, selecting from GRUB

Similar Threads

  1. Knoppix/Win2K Dual Boot using boot.ini
    By doesnotcompute in forum Hardware & Booting
    Replies: 1
    Last Post: 03-01-2005, 07:29 PM
  2. prints in gimp too dark with deskjet 895C? Solution!!
    By eradusfalk in forum Tips and Tricks
    Replies: 0
    Last Post: 12-22-2004, 09:04 AM
  3. Dual Boot Knoppix and Windows(Dual Boot)?
    By jimbo62 in forum MS Windows & New to Linux
    Replies: 4
    Last Post: 08-09-2004, 04:22 PM
  4. Can't get dual boot going
    By MillTek in forum Hdd Install / Debian / Apt
    Replies: 3
    Last Post: 05-17-2004, 06:38 AM
  5. used gnoppix once - now my monitor is dark !
    By joerg in forum Hardware & Booting
    Replies: 4
    Last Post: 12-03-2003, 03:01 AM

Posting Permissions

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


Juniper EX4600-40F-AFI 24 SFP+/SFP Ports 4 QSFP+ Ports Dual AC Switch picture

Juniper EX4600-40F-AFI 24 SFP+/SFP Ports 4 QSFP+ Ports Dual AC Switch

$1300.00



Juniper Networks EX3300-48P 48-Port PoE+ 4x SFP+ Network Switch w/ Power Cord picture

Juniper Networks EX3300-48P 48-Port PoE+ 4x SFP+ Network Switch w/ Power Cord

$43.95



JUNIPER EX3400-48P 48x 1GB PoE+ RJ-45 4x 10GB SFP+ 2x 40GB QSFP+, DUAL AC POWER picture

JUNIPER EX3400-48P 48x 1GB PoE+ RJ-45 4x 10GB SFP+ 2x 40GB QSFP+, DUAL AC POWER

$210.00



Juniper Networks EX2200-C-12P-2G 12 Port Gigabit PoE 2 T/SFP 1G Network Switch picture

Juniper Networks EX2200-C-12P-2G 12 Port Gigabit PoE 2 T/SFP 1G Network Switch

$129.00



Juniper EX3300-48P, 48 Port PoE+ Gigabit Network Switch w/ Power cord picture

Juniper EX3300-48P, 48 Port PoE+ Gigabit Network Switch w/ Power cord

$54.99



Juniper EX3400-48P 48-Ports PoE+ 4x SFP+ and 2x QSFP+ Managed Switch Tested picture

Juniper EX3400-48P 48-Ports PoE+ 4x SFP+ and 2x QSFP+ Managed Switch Tested

$205.00



Juniper MX204 +JUNOS X2 AC Dual Power Supply JN204/MX204 4x40GbE Or 4x100GB picture

Juniper MX204 +JUNOS X2 AC Dual Power Supply JN204/MX204 4x40GbE Or 4x100GB

$6999.99



JUNIPER EX4550-32F-AFO 32-PORT ETHERNET SWITCH 2x POWER SUPPLY - TESTED picture

JUNIPER EX4550-32F-AFO 32-PORT ETHERNET SWITCH 2x POWER SUPPLY - TESTED

$299.99



Juniper Networks EX3300 EX3300-48P 48-Port Gigabit PoE+ Switch picture

Juniper Networks EX3300 EX3300-48P 48-Port Gigabit PoE+ Switch

$41.43