-
Wrong MBR for Lilo when using koppix 3.7 HD installer script
I've used the script "sudo knoppix-installer" to install beginner version of Knoppix 3.7 on my second harddisk (hdb).
My first harddisk (hda) is completely used for Win2k.
My Problem: the script didn't ask me which MBR it shall use - it just used the MBR of hda
But I wanted to completely seperate Win2k on hda and Linux on hdb.
What can i do to move Lilo-MBR from hda to hdb, and restore Win2k-MBR on hda?
Thanks in advance for any help.
-
Senior Member
registered user
I think lilo uses the mbr of whichever drive is set to be the primary boot drive, so you should be able to make lilo install on the other HD by first setting it to be the primary boot the running 'sudo lilo'. If the entire hdb is the linux partition, you could accomplish the same thing by setting lilo to install on the partition instead of the mbr. Lilo configuration setting are are in /etc/lilo.conf.
You would have to restore hda's mbr from windows.
But, knoppix needs linux to boot. If you have hda set as your primary boot & do not have lilo on the mbr for hda, your boot process will not see lilo therefore you will not be able to boot knoppix unless you use a boot disk.
-
Senior Member
registered user
Haven't try it yet.
Boot into knoppix, edit /etc/lilo.conf:
ex:
boot=/dev/hda **change this line where you want lilo to boot from.
in your case:
boot=/dev/hdb*x **x= linux partition
Then remove lilo from mbr, run command from root konsole:
lilo -u /dev/hda
Install lilo to your selected partition after editing lilo.conf:
lilo
Next, is to prepare for your pc to dual boot linux and Win2K:
1) Let pc boot directly to lilo.
Use qtparted, and change active partition to hdb.
2) Use Win2k as bootloader
Open root konsole and run:
dd if=/dev/hdb*x of=/bootsect.lnx bs=512 count=1 **x=your knoppix partition
Copy this bootsect.lnx to a floppy....and use it to transfer that file to your win2k root, C:\
Now, to repair hda mbr.
Use your w2k rescue disk and run : fdisk /mbr
or use W2K cd to boot and choose Recovery console and run: fixmbr
Once you're able to boot W2K, you can choose to dual boot either by using procedure 1) or 2)
If you choose to 2) use win2k as bootloader:
You need to copy file bootsect.lnx to C:\
Then edit boot.ini:
Add the following syntax to the end of the boot.ini file
C:\bootsect.lnx="Linux"
ex:
[boot loader]
timeout=5
default=multi(0)disk(0)rdisk(0)partition(2)\WINDOW S
[operating systems]
multi(0)disk(0)rdisk(0)partition(2)\WINDOWS="Micro soft Windows 2000" /fastdetect
C:\bootsect.lnx="Linux"
Good luck
Similar Threads
-
By thejackal13 in forum Hardware & Booting
Replies: 10
Last Post: 09-21-2005, 12:30 AM
-
By foamrotreturns in forum Hdd Install / Debian / Apt
Replies: 4
Last Post: 02-11-2005, 05:22 PM
-
By fritschi in forum Hdd Install / Debian / Apt
Replies: 4
Last Post: 08-06-2004, 12:02 AM
-
By diginik in forum Hdd Install / Debian / Apt
Replies: 2
Last Post: 04-07-2004, 11:58 PM
-
By probono in forum Ideas
Replies: 9
Last Post: 09-03-2003, 05:46 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
-
Forum Rules
![32GB DDR4-2666 SODIMM Kingston KVR26S19D8/32 Equivalent Laptop Memory RAM New picture](/store/img/g/WxIAAOSw1iBmbHVw/s-l225/32GB-DDR4-2666-SODIMM-Kingston-KVR26S19D8-32-Equiv.jpg)
32GB DDR4-2666 SODIMM Kingston KVR26S19D8/32 Equivalent Laptop Memory RAM New
$49.99
![A-Tech 8GB DDR3 1600 PC3-12800 Laptop SODIMM 204-Pin Memory RAM PC3L DDR3L 1x 8G picture](/store/img/g/RCAAAOSweqdeWaui/s-l225/A-Tech-8GB-DDR3-1600-PC3-12800-Laptop-SODIMM-204-P.jpg)
A-Tech 8GB DDR3 1600 PC3-12800 Laptop SODIMM 204-Pin Memory RAM PC3L DDR3L 1x 8G
$13.99
![Crucial DDR3L 16GB 1600 2x 8GB PC3-12800 Laptop SODIMM Memory RAM PC3 16G DDR3 picture](/store/img/g/mecAAOSw2Vlkv6Ot/s-l225/Crucial-DDR3L-16GB-1600-2x-8GB-PC3-12800-Laptop-SO.jpg)
Crucial DDR3L 16GB 1600 2x 8GB PC3-12800 Laptop SODIMM Memory RAM PC3 16G DDR3
$22.45
![[ BULK LOT OF 10 ] 8GB DDR4 Desktop RAM SAMSUNG, HYNIX etc. (10x) picture](/store/img/g/qSgAAOSwSqxiEB0p/s-l225/-BULK-LOT-OF-10-8GB-DDR4-Desktop-RAM-SAMSUNG-HYNIX.jpg)
[ BULK LOT OF 10 ] 8GB DDR4 Desktop RAM SAMSUNG, HYNIX etc. (10x)
$89.99
![Team T-FORCE VULCAN Z 32GB (2 x 16GB) PC RAM DDR4 3200 (PC4 25600) Memory picture](/store/img/g/~u4AAOSwK-liKn7t/s-l225/Team-T-FORCE-VULCAN-Z-32GB-2-x-16GB-PC-RAM-DDR4-32.jpg)
Team T-FORCE VULCAN Z 32GB (2 x 16GB) PC RAM DDR4 3200 (PC4 25600) Memory
$54.99
![HyperX FURY DDR3 8GB 16GB 32GB 1600 MHz PC3-12800 Desktop RAM Memory DIMM 240pin picture](/store/img/g/XNYAAOSwg81kv6CG/s-l225/HyperX-FURY-DDR3-8GB-16GB-32GB-1600-MHz-PC3-12800-.jpg)
HyperX FURY DDR3 8GB 16GB 32GB 1600 MHz PC3-12800 Desktop RAM Memory DIMM 240pin
$15.90
![Crucial Pro RAM 32GB Kit (2x16GB) DDR4 3200MHz CP2K16G4DFRA32A NEW picture](/store/img/g/N1kAAOSw9VpmfTVs/s-l225/Crucial-Pro-RAM-32GB-Kit-2x16GB-DDR4-3200MHz-CP2K1.jpg)
Crucial Pro RAM 32GB Kit (2x16GB) DDR4 3200MHz CP2K16G4DFRA32A NEW
$54.99
![8GB PC3L-12800S 1600MHz SODIMM DDR3 RAM | Grade A picture](/store/img/g/tmAAAOSwxu1mDNSQ/s-l225/8GB-PC3L-12800S-1600MHz-SODIMM-DDR3-RAM-Grade-A.jpg)
8GB PC3L-12800S 1600MHz SODIMM DDR3 RAM | Grade A
$12.00
![256 GIGABYTES - LOT OF 16 LAPTOP MEMORY RAM MODULES 16GB EACH TOP BRANDS picture](/store/img/g/7~gAAOSwXcFmf3q3/s-l225/256-GIGABYTES-LOT-OF-16-LAPTOP-MEMORY-RAM-MODULES-.jpg)
256 GIGABYTES - LOT OF 16 LAPTOP MEMORY RAM MODULES 16GB EACH TOP BRANDS
$299.99
![Dell SNPTP9W1C/16G 16 GB 2666MHz (PC4-2666) Memory Ram picture](/store/img/g/JKYAAOSwpONmaNJP/s-l225/Dell-SNPTP9W1C-16G-16-GB-2666MHz-PC4-2666-Memory-R.jpg)
Dell SNPTP9W1C/16G 16 GB 2666MHz (PC4-2666) Memory Ram
$34.95