Dual boot with separated disks and Windows 7
Hi there.
I'm stuck with a new installation of Slackware 14.0. I got Windows 7 installed and didn't wanted to mess the disk with Partition Magic, so I installed a second disc on my box. I did the install of Slackware and configured the lilo to boot both windows and Linux. I rebooted the machine and checked Linux was booting ok, so I decided to check the boot for windows and I got a not nice surprise, I couldn't boot my windows anymore. Ouch... I have lots of documentation under this SO. I booted into Linux once again and could see the windows C: drive is not the first partition, there is a reserved partition at /dev/sda1 Code:
Device Boot Start End Blocks Id System Code:
# Windows bootable partition config begins Code:
Warning: The boot sector and map file are on different disks. I changed back all the settings and restored the MBR so I can boot into windows again. This is the content of my lilo.conf Code:
boot = /dev/sda Now I have a Slackware installation that can only be accessed using the DVD to boot and mount /dev/sdb1 as root partition. Please, how can I fix this issue? I already used the liloconfig once again to configure lilo with no success. Regards, Carlos |
To fix your problems with LILO you need to add the "lba32" option to "lilo.conf" so that LILO will use Logical Block Addressing instead of the incorrect Cylinder/Head/Sector addresses. You should always include the "lba32" option in "lilo.conf"
Your first partition on the first hard disk has the Windows "bootmgr". That is the partition that must have the "boot" flag set. In "lilo.conf" You want to use "/dev/sda1" to boot Windows. Code:
lba32 When you install LILO to the MBR it may be writing over the disk signature used by Windows 7. That prevents Windows from booting. If Windows does not boot after you install LILO, you can repair Windows booting. Boot the Windows 7 Setup disk and then press Shift + F10 to get a Windows command prompt. Type in these commands to repair your boot configuration. Code:
bootrec /rebuildbcd To install LILO to the second hard disk here is what you would put in the LILO configuration file. Code:
lba32 Code:
dd if=/dev/sdb of=/tmp/linux.bin bs=512 count=1 Here is a good explanation of how to add a boot sector file to the Windows boot menu. Adding Linux to the Windows7 boot menu |
Hi Erik.
Tank you very much for your help. Quote:
Quote:
So I'll try the procedure of adding the LILO boot sector to the Windows boot menu when I have time to do. |
Thanks Erik! I have just done an install while keeping windoze ( for the wife I hasten to add I wouldn't touch it with a 10' battle lance! ) and the auto lilo install seemed to work but windoze booted into the recovery partition, now that the correct partition is set both boot fine.
|
Hi.
Finaly I got the time to try the bcdedit solution, but unfortunately this did not solved the boot issue. I followed the steps and when I tryed to boot into Linux it could not be found. Here its what was configured on the Windows boot loader. Code:
C:\Windows\system32>bcdedit /enum |
Quote:
Please post the contents of your "lilo.conf" file and the contents of the "linux.bin" file. You can use this command in Linux to save the contents of "linux.bin" as a text file. Code:
hexdump -C linux.bin > linux.txt |
Not sure if this will help.
I have a 2TB windows Sata drive. I installed a 160gb sata drive for Slackware. Installing slackware, I let it configure lilo for me. When I boot, it shows Windows as the primary option and linux as the second option. My lilo.conf file: Code:
# Windows bootable partition config begins |
All times are GMT -5. The time now is 11:09 AM. |