Results 1 to 9 of 9

Thread: Windows and Linux on one Hard Disk

  1. #1
    Member registered user
    Join Date
    Nov 2004
    Posts
    34

    Windows and Linux on one Hard Disk

    hi,

    i have knoppix installed to hard disk. After turning on the computer LiLo prompts for the os that I want to boot. This works fine. However, I am planning to install another windows version. As I experienced before, windows overwrites the MBR in which I have installed LiLo. Then I will have no way to boot knoppix from hard disk (I can't create a boot disk on a floppy, since my floppy drive doesn't work). How can I prevent Windows from overwriting the MBR? Or how can I restore Lilo afterwards?


    pascal

  2. #2
    Senior Member registered user
    Join Date
    Jan 2003
    Location
    Southern Indiana
    Posts
    110

    Boot Knoppixor a Linux Distro from a CD

    After installing windows boot Knoppix or the distro you have installed from CD to a command line. Do a chroot to the partition on which linux is installed (C:\chroot /mnt/hda? ) and then execute lilo. It will pick up your old lilo configuration and use it.

    Hit ctl-D to exit from the chroot and then shut it all down.

  3. #3
    Senior Member registered user
    Join Date
    Mar 2004
    Posts
    1,516
    you could boot with the knoppix cd
    then chroot into your mounted linux "/" (chroot /mnt/hdXY)
    edit the /etc/lilo.conf (adding your new win aswell)
    then run lilo.
    exit chroot (by typing exit)
    reboot your computer.

  4. #4
    Senior Member registered user
    Join Date
    Feb 2004
    Posts
    949
    or back up your mbr with knoppix.

    su
    dd if=/dev/hda1 bs=512 count=1 of=/mnt/hdaX

    Of course you know to make where your saving it writable.

  5. #5
    Senior Member registered user
    Join Date
    May 2003
    Posts
    981
    Or use your CD to boot into your HD install. Boot with:
    knoppix root=/dev/hda5 noinitrd ro
    Then reinstall lilo. You will probably have to manually add an entry to /etc/lilo.conf for the new windows install.

  6. #6
    Member registered user
    Join Date
    Nov 2004
    Posts
    34
    ok, thanks
    it works now

    pascal

  7. #7
    Junior Member registered user
    Join Date
    Jan 2004
    Location
    Tacoma, WA
    Posts
    29

    Co-existence Windows, dos, and Linux

    My experience shows that better way to co-exist Windows and Linux is:

    1. Do lilo to partition where Linux is located and copy its boot sector:

    dd if=/dev/hdx of=/b-hdx bs=512 count=1
    (bs= 446 for mbr only)

    2. Copy file b-hdx to c:\ b-hdx; add to c:\boot.ini: c:\b-hdx="Knoppix" .

    Do it every time after run lilo .

    In such away I boot Win-xp, dos, and Linux.

    When you'll boot a PC boot.ini menu will be presented to choose from.
    In this case if something going rong with Linux you still will be able to boot Windows and dos; and to boot your Linux from dos to fix problems .

    Best, Alex

  8. #8
    Senior Member registered user
    Join Date
    Aug 2003
    Location
    Dublin, Ireland
    Posts
    164

    Re: Co-existence Windows, dos, and Linux

    Quote Originally Posted by alex52
    My experience shows that better way to co-exist Windows and Linux is:

    1. Do lilo to partition where Linux is located and copy its boot sector:

    dd if=/dev/hdx of=/b-hdx bs=512 count=1
    (bs= 446 for mbr only)

    2. Copy file b-hdx to c:\ b-hdx; add to c:\boot.ini: c:\b-hdx="Knoppix" .

    Do it every time after run lilo .
    And there in lies the disaster area of this techinique (you can't boot if you forget to copy the file across after running lilo)! If you want the "advantage" of your method (your windows boot is unmolested) you should look at the thread on iso booting with grub where you will find instructions on setting up grub to work from boot.ini. You can store your grub menu.lst on any partition you want (or even have multiple copies) and you can edit your command lines as you boot (using command line completion).

  9. #9
    Junior Member registered user
    Join Date
    Jan 2004
    Location
    Tacoma, WA
    Posts
    29

    Multi-boot

    Now I use more better way to boot any partition or device

    You can find detailed and updated information about winxp and knoppix here:

    http://www.knoppix.net/forum/viewtopic.php?t=17024

    =======================

Similar Threads

  1. Writing to Hard Disk on Windows XP
    By eeoam in forum Other Live CDs
    Replies: 2
    Last Post: 01-07-2007, 04:12 PM
  2. Hard drive BIOS settings: Windows vs. Linux
    By eco2geek in forum The Lounge
    Replies: 6
    Last Post: 07-12-2005, 08:23 AM
  3. Writing 2 windows file systems after booting from Hard disk
    By Mr_White in forum MS Windows & New to Linux
    Replies: 2
    Last Post: 03-25-2005, 01:26 AM
  4. writing on windows xp partition hard disk
    By francy222 in forum Hardware & Booting
    Replies: 2
    Last Post: 01-20-2005, 06:48 PM
  5. Help! Linux is taking over my hard disk!
    By eco2geek in forum The Lounge
    Replies: 5
    Last Post: 09-19-2003, 10:19 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
  •  


9300-8i LSI SAS3008 8-Port 12Gb PCIe IT mode ZFS FreeNAS unRAID 2*SFF-8643 US picture

9300-8i LSI SAS3008 8-Port 12Gb PCIe IT mode ZFS FreeNAS unRAID 2*SFF-8643 US

$49.50



Broadcom 9600-24i Tri-Mode RAID Controller 4.0 NVMe SAS SATA NEW 05-50111-01003 picture

Broadcom 9600-24i Tri-Mode RAID Controller 4.0 NVMe SAS SATA NEW 05-50111-01003

$639.69



QNAP TR-004 4 Bay USB-C Hardware RAID Enclosure DAS 3.5 2.5 SATA Tested Working picture

QNAP TR-004 4 Bay USB-C Hardware RAID Enclosure DAS 3.5 2.5 SATA Tested Working

$149.99



Broadcom LSI Avago RAID card MegaRAID SAS 9480-8i8e 05-50031-00 picture

Broadcom LSI Avago RAID card MegaRAID SAS 9480-8i8e 05-50031-00

$500.00



WAVLINK RAID 2 Bay Hard Drive Docking Station SATA 2.5''3.5'' SSD HDD USB C 4Bay picture

WAVLINK RAID 2 Bay Hard Drive Docking Station SATA 2.5''3.5'' SSD HDD USB C 4Bay

$107.99



Dell 3KDWX PERC H755 12G 8GB Cache Front RAID Controller picture

Dell 3KDWX PERC H755 12G 8GB Cache Front RAID Controller

$999.99



Dell/Broadcom MegaRAID 9460-16i 12Gb/s PCIe SATA/SAS RAID Controller Card 042PDX picture

Dell/Broadcom MegaRAID 9460-16i 12Gb/s PCIe SATA/SAS RAID Controller Card 042PDX

$600.00



Broadcom LSI 9305-16i 12Gbps SAS-3 PCIe x8 HBA 16-Ports Raid Controller picture

Broadcom LSI 9305-16i 12Gbps SAS-3 PCIe x8 HBA 16-Ports Raid Controller

$64.99



Intel VROC Premium RAID Controller Card PCIe Add-On Module VROCPREMMOD picture

Intel VROC Premium RAID Controller Card PCIe Add-On Module VROCPREMMOD

$265.00



Lacie 2big Quadra RAID 2 x 2 TB 4 TB Only 158 hours  picture

Lacie 2big Quadra RAID 2 x 2 TB 4 TB Only 158 hours

$199.00