You are not logged in.

#1 2013-07-28 02:19:02

ar5007eg
Member
Registered: 2008-06-29
Posts: 45

LILO not booting Windows 8

I've been using LILO for booting Arch for some time. Recently, I installed Windows 8 on my notebook. I couldn't prevent it from creating not one but two partitions: /dev/sda1 (300MB, for booting) and /dev/sda2 (Windows 8 itself). After recovering LILO, when booting with this entry...

other = /dev/sda2
label = "Windows"

... I get a Windows' text mode screen saying boot files were corrupted and that I should boot into installation media and use the recover option. That would certainly overwrite my MBR, so I tried this entry:

other = /dev/sda1
label = "Windows"

... which boots into Windows 8 graphical loading screen! But below the loading animation, it says something with the "Recovering" word. Then I Ctrl+Alt+Del since I'm afraid it's about to overwrite my MBR.

I'm sure the problem is with this Windows 8's UEFI thing. Unfortunately I do not have the techinical skills to understand the UEFI wiki entry.

So, in plain english, can Lilo boot Windows 8? How?

Offline

#2 2013-07-28 02:28:21

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,198

Re: LILO not booting Windows 8

I thought Windows needed a GPT disk for EFI booting?

Maybe you need elilo? You are trying to boot in EFI mode and while you can, I think, go the other way i.e. use a EFI boot manager and then load in bios mode, I am not sure you can go in the other direction. I am pretty sure you need an EFI boot manager (or boot loader) to manage EFI booting.

What does fdisk -l show for your disk?


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#3 2013-07-28 02:34:54

mostlyharmles
Member
Registered: 2013-07-26
Posts: 11

Re: LILO not booting Windows 8

i'm not sure about vanilla lilo, I'm a grub user myself, it handles EFI pretty cleanly. Are you using an EFI or BIOS system? You might simply be in the old trap of having to install windows first, then installing linux after along with the proper bootloaders, if lilo is aware of Windows, then you'll want to set your bootloader to lilo in your EFI/BIOS settings, then have lilo do the deed of booting. Windows STILL has a nasty habit of not playing well with others, and its bootloader is only really concerned with all things Windows, it gets nasty when it doesn't get things done it's way.

Barring complete re-install, if you have your partition set to GPT, and an arch livedisk handy. Then let Windows "repair" the boot partition, and then re-install a bootloader of your choice using the live disk. I've heard good things about gummiboot, and I personally use grub myself. This is what I would do, at least.

Offline

#4 2013-07-28 16:39:13

srs5694
Member
From: Woonsocket, RI
Registered: 2012-11-06
Posts: 719
Website

Re: LILO not booting Windows 8

If the partition table is MBR, then Windows was installed in BIOS mode and EFI is not an issue. If the partition table is GPT, then Windows was installed in EFI mode, and LILO won't boot it. To be sure of what you've got, run Boot Info Script and post a link to the RESULTS.txt file that it produces.

Offline

#5 2013-07-28 19:44:17

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,198

Re: LILO not booting Windows 8

Note that bootinfoscript is available from AUR.


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#6 2013-07-28 19:50:22

ar5007eg
Member
Registered: 2008-06-29
Posts: 45

Re: LILO not booting Windows 8

Here's my RESULTS.txt (ignore the syslinux thing, I tried to use it but couldn't and I'm back to lilo)

                  Boot Info Script 0.61      [1 April 2012]


============================= Boot Info Summary: ===============================

 => Lilo is installed in the MBR of /dev/sda.

sda1: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows Vista/7: NTFS
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:
    Boot files:        /bootmgr /Boot/BCD

sda2: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows Vista/7: NTFS
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:
    Boot files:        /bootmgr /Windows/System32/winload.exe


sda3: __________________________________________________________________________

    File system:       Extended Partition
    Boot sector type:  -
    Boot sector info:

sda5: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows Vista/7: NTFS
    Boot sector info:  According to the info in the boot sector, sda5 starts
                       at sector 63.
    Operating System:
    Boot files:

sda4: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  SYSLINUX 4.06 2012-10-23
    Boot sector info:  Syslinux looks at sector 21245952 of /dev/sda4 for
                       its second stage. SYSLINUX is installed in the



============================ Drive/Partition Info: =============================

Drive: sda _____________________________________________________________________

Disk /dev/sda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders, total 234441648 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition  Boot  Start Sector    End Sector  # of Sectors  Id System

/dev/sda1    *          2,048       718,847       716,800   7 NTFS / exFAT / HPFS
/dev/sda2             718,848    65,511,423    64,792,576  17 Hidden NTFS / HPFS
/dev/sda3          65,513,070   199,633,159   134,120,090   5 Extended
/dev/sda5          65,529,198   199,633,159   134,103,962   7 NTFS / exFAT / HPFS
/dev/sda4         199,633,160   234,441,647    34,808,488  82 Linux swap / Solaris

"blkid" output: ________________________________________________________________

Device           UUID                                   TYPE       LABEL

/dev/sda1        D404EC8204EC68C6                       ntfs       System Reserved
/dev/sda2        2E4A036C4A032FDF                       ntfs
/dev/sda4        f70043f4-bbfc-4f12-b833-61b994c2081b   ext4
/dev/sda5        D4607CC2607CAD3C                       ntfs

================================ Mount points: =================================

Device           Mount_Point              Type       Options

/dev/block/8:4   /                        ext4       (rw,relatime,user_xattr,barrier=1,data=ordered)

Offline

#7 2013-07-28 19:51:40

ar5007eg
Member
Registered: 2008-06-29
Posts: 45

Re: LILO not booting Windows 8

So If windows was installed in BIOS mode, do you have any ideas of what could be the problem?

Offline

#8 2013-07-28 20:59:36

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,198

Re: LILO not booting Windows 8

There's something odd about your partitions.

So the script says sda5 thinks it starts at sector 63 though it clearly doesn't.

And sda4 is listed as being a swap partition, on the one hand, and an ext4, on the other.

I'm also not sure what the point is of using an extended partition if you only have one logical partition in it taking up the entire available space but that isn't an error - just seems an odd choice.

Also, you should probably remove syslinux properly if you don't plan to use it to avoid confusion later.


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#9 2013-07-28 21:25:36

ar5007eg
Member
Registered: 2008-06-29
Posts: 45

Re: LILO not booting Windows 8

I actually don't remember how my partitions got into this, but I used to have more than one logical and sometimes more than one Linux, others more than two Windows, so things got messed up over the years.

Anyway, do I have a better chance with grub or this has nothing to do with the bootloader itself? The only other option I can think of is saving lilo's mbr and make windows boot it but that would be my *last* try (back on Windows 8 beta it used to load itself completely (which takes some time on by old note) until it finaly shows the boot menu)

Offline

#10 2013-07-28 21:33:31

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,198

Re: LILO not booting Windows 8

Well you really should fix the discrepancies you're observing in the output of the script e.g. get the type codes etc. right, make sure things start where they think they do etc. I don't say that will solve the issue but it is surely not a good state to have things in.


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#11 2013-07-28 21:37:17

srs5694
Member
From: Woonsocket, RI
Registered: 2012-11-06
Posts: 719
Website

Re: LILO not booting Windows 8

cfr wrote:

So the script says sda5 thinks it starts at sector 63 though it clearly doesn't.

This is a common occurrence, and it's not a problem on most non-boot disks. Since /dev/sda5 is a logical partition and Boot Info Script found no boot files on it, I wouldn't worry about it unless there's some other problem, like an inability to access the partition.

And sda4 is listed as being a swap partition, on the one hand, and an ext4, on the other.

This is a problem with the partition type code in the partition table. It's easily corrected with the "t" command in fdisk -- change the type code to "83" and then save the changes with "w". This is not, however, the cause of the Windows boot problem.

I'm also not sure what the point is of using an extended partition if you only have one logical partition in it taking up the entire available space but that isn't an error - just seems an odd choice.

It can give more flexibility for future partition resizing operations. As you say, this isn't an error, and it's not the source of the problems.

Also, you should probably remove syslinux properly if you don't plan to use it to avoid confusion later.

Agreed -- but again, this isn't the source of the problems.

I can say this with near certainty: The problem is not, as speculated in the original post, related to (U)EFI. Chances are a Windows boot file has been damaged. As such, the problem will have to be solved with Windows. I recommend the following course of action:

  1. Create a USB flash drive with LILO on it, and test that it can boot to Linux.

  2. If necessary, download and prepare a Windows recovery disc. Images are available online, but I don't happen to have any URLs handy. Check with Microsoft or do a Web search -- but be sure to download only from reputable sources! Something from Honest Tony's Disk Images and Bulk E-Mail Services (established 2013) might well be laden with viruses.

  3. Run the Windows recovery system. This should render Windows bootable again, but the computer will boot straight to Windows.

  4. Boot to Linux with the LILO USB flash drive you prepared.

  5. Re-run the "lilo" command in Linux to re-install LILO on your MBR.

Offline

#12 2013-07-28 21:50:36

ar5007eg
Member
Registered: 2008-06-29
Posts: 45

Re: LILO not booting Windows 8

I don't have a USB flash driver right now, but I will recover windows and then boot into Arch's CD, chroot and recover lilo. Anyway, does someone with Windows 8 knows if I should boot /dev/sda1 or /dev/sda2 after recovering lilo? (Maybe booting the wrong one made Windows corrupt some boot files?)

Offline

Board footer

Powered by FluxBB