LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   lilo can't boot win7 from dual boot (https://www.linuxquestions.org/questions/linux-newbie-8/lilo-cant-boot-win7-from-dual-boot-850530/)

Isix 12-15-2010 07:28 PM

lilo can't boot win7 from dual boot
 
Hi all,

I cannot boot into the Windows 7 partition, which I guess is /dev/sda1. I have Slackware installed on /dev/sda2 which boots fine, my /etc/lilo.conf looks like

Code:

/etc/# Start LILO global section                                                                                                                                                   
compact                                                                                                                                                                       
lba32                                                                                                                                                                         
append                  ="vt.default_utf8=1"                                                                                                                                 
boot                    =/dev/sda                                                                                                                                             
prompt                                                                                                                                                                       
timeout                =100                                                                                                                                                 
default                =Slack64                                                                                                                                             
# Override dangerous defaults the rewrite the partition table:                                                                                                               
change-rules                                                                                                                                                                 
reset                                                                                                                                                                         
# Insert pretty boot-menu graphic here:                                                                                                                                       
bitmap                  =/boot/slack.bmp                                                                                                                                     
bmp-table              =60,6,1,16                                                                                                                                           
bmp-timer              =65,27,0,255                                                                                                                                         
bmp-colors              =255,0,255,0,255,0                                                                                                                                   
# End LILO global section                                                                                                                                                     
                                                                                                                                                                             
# Linux bootable partition config begins                                                                                                                                     
image                  =/boot/bzImage-2.6.35-pf11                                                                                                                           
root                    =/dev/sda2                                                                                                                                           
label                  =Slack64                                                                                                                                             
read-only                                                                                                                                                                     
image                  =/boot/vmlinuz-huge-2.6.33.4                                                                                                                         
root                    =/dev/sda2                                                                                                                                           
label                  =Slack64-dist                                                                                                                                         
read-only                                                                                                                                                                     
image                  =/boot/memtest86+.bin                                                                                                                                 
root                    =/dev/sda2                                                                                                                                           
label                  =Memtest86+                                                                                                                                           
# Linux bootable partition config ends                                                                                                                                       
                                                                                                                                                                             
# Other bootable partition config begins                                                                                                                                     
other                  =/dev/sda1                                                                                                                                           
label                  =Win7                                                                                                                                                 
table                  =/dev/sda                                                                                                                                             
# Other bootable partition config ends

Is the last line of Win7,
Code:

table                  =/dev/sda
correct? Should it not be
Code:

table                  =/dev/sda1
or where are things wrong?

Isix 12-15-2010 07:48 PM

Hi again,

I got this fixed using the install CD of Win7, I just had to ask it to fix the MBR

Cool,

markush 12-16-2010 02:26 AM

Hi,

after fixing the MBR with Windows I guess that lilo won't boot but Windows???

When I read your post I thought about that preinstalled Win7 comes with a recovery-partition which may be /dev/sda1.

If you are experiencing further problems, please post the output of
Code:

fdisk -l
The last line of the lilo.conf should be "table = /dev/sda"

Markus


All times are GMT -5. The time now is 05:10 PM.