Linux Lite Forums
HELP NEWBIE Pls - "Windows failed to start" error on dual boot system - Printable Version

+- Linux Lite Forums (https://www.freecinema2022.gq/forums)
+-- Forum: Software - Support (https://www.freecinema2022.gq/forums/forumdisplay.php?fid=5)
+--- Forum: Installing Linux Lite (https://www.freecinema2022.gq/forums/forumdisplay.php?fid=17)
+--- Thread: HELP NEWBIE Pls - "Windows failed to start" error on dual boot system (/showthread.php?tid=2603)



HELP NEWBIE Pls - "Windows failed to start" error on dual boot system - royalmp2001 - 01-28-2016

Had installed the latest Linux lite onto a USB via unetbootin.
Then installed it to a laptop alongside windows 8.1
LL works great but I get a blue screen error when trying to run windows:
Windows failed to start.... File \boot\bcd, stats: 0xc000000e, Info: Boot configuration data for your PC is missing or contains errors....
Pls help thanks


Re: HELP NEWBIE Pls - "Windows failed to start" error on dual boot system - torreydale - 01-28-2016

This link might provide some insight:  http://askubuntu.com/questions/610582/ubuntu-dual-boot-problem


Re: HELP NEWBIE Pls - "Windows failed to start" error on dual boot system - gold_finger - 01-28-2016

royalmp2001,

Report back with some output from terminal commands that may give us a better idea of what may have gone wrong.  Boot into your Linux Lite installation, open a terminal and enter the following commands.

This one lists basic specs of your computer.
Code:
inxi -Fxz

This one lists all partitions on the drive and what type of partition table drive is using.  It will ask you to enter your password.  When you type password, you won't see anything on the screen.  That is normal behaviour -- just type it and hit <Enter> when done.
Code:
sudo parted --list

Using your mouse, highlight entire output of both commands, right-click and pick "Copy", then in your reply here in the forum right-click and choose "Paste".  After pasting into forum reply, highlight the pasted output and hit the "#" button along top of the forum reply interface.  That will enclose the output in a "code box" that makes it easier for us to read and preserves formatting of the output.

If your computer is relatively new and came with Win 8 pre-installed there is a good chance you just ended up installing LL in a different boot mode than what Windows was using.  In such a situation computer will boot into only LL while set to boot in one mode and only Windows when set to boot in the other mode.  The output from commands above will confirm whether or not that is the case and we can figure out how to proceed after seeing that.


Re: HELP NEWBIE Pls - "Windows failed to start" error on dual boot system - royalmp2001 - 01-29-2016

Gold_finger,
Thank you for your valuable assistance - much appreciated.
Requested output below....


Code:
System:    Host: marius-Lenovo-IdeaPad-N585 Kernel: 3.13.0-62-generic x86_64 (64 bit, gcc: 4.8.2)
           Desktop: Xfce 4.11.8 (Gtk 2.24.23) Distro: Ubuntu 14.04 trusty
Machine:   System: LENOVO (portable) product: 20179 version: Lenovo IdeaPad N585
           Mobo: LENOVO model: Lenovo IdeaPad N585 version: 31900003WIN8 STD MLT
           Bios: LENOVO version: 6CCN96WW(V8.08) date: 01/16/2013
CPU:       Dual core AMD E1-1500 APU with Radeon HD Graphics (-MCP-) cache: 1024 KB flags: (lm nx sse sse2 sse3 sse4a ssse3 svm) bmips: 5909.22
           Clock Speeds: 1: 1233.00 MHz 2: 822.00 MHz
Graphics:  Card: Advanced Micro Devices [AMD/ATI] Wrestler [Radeon HD 7310] bus-ID: 00:01.0
           X.Org: 1.15.1 drivers: ati,radeon (unloaded: fbdev,vesa) Resolution: [email protected]
           GLX Renderer: Gallium 0.4 on AMD PALM GLX Version: 3.0 Mesa 10.1.3 Direct Rendering: Yes
Audio:     Card-1: Advanced Micro Devices [AMD] FCH Azalia Controller driver: snd_hda_intel bus-ID: 00:14.2
           Card-2: Advanced Micro Devices [AMD/ATI] Wrestler HDMI Audio driver: snd_hda_intel bus-ID: 00:01.1
           Sound: Advanced Linux Sound Architecture ver: k3.13.0-62-generic
Network:   Card-1: Qualcomm Atheros AR9485 Wireless Network Adapter driver: ath9k bus-ID: 06:00.0
           IF: wlan0 state: up mac: <filter>
           Card-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
           driver: r8169 ver: 2.3LK-NAPI port: 2000 bus-ID: 02:00.0
           IF: eth0 state: down mac: <filter>
Drives:    HDD Total Size: 320.1GB (1.7% used) 1: id: /dev/sda model: ST320LT012 size: 320.1GB
Partition: ID: / size: 16G used: 5.0G (34%) fs: ext4 ID: swap-1 size: 3.84GB used: 0.00GB (0%) fs: swap
RAID:      No RAID devices detected - /proc/mdstat and md_mod kernel raid module present
Sensors:   System Temperatures: cpu: 57.0C mobo: N/A gpu: 57.0
           Fan Speeds (in rpm): cpu: N/A
Info:      Processes: 167 Uptime: 13 min Memory: 656.5/3523.9MB Runlevel: 2 Gcc sys: 4.8.4
           Client: Shell (bash 4.3.11) inxi: 1.9.17
marius@marius-Lenovo-IdeaPad-N585:~$ sudo parted --list
[sudo] password for marius:
Model: ATA ST320LT012-9WS14 (scsi)
Disk /dev/sda: 320GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt

Number  Start   End     Size    File system     Name                          Flags
1      1049kB  1050MB  1049MB  ntfs            Basic data partition          hidden, diag
2      1050MB  1322MB  273MB   fat32           EFI system partition          boot, hidden
3      1322MB  2371MB  1049MB  fat32           Basic data partition          hidden
4      2371MB  2505MB  134MB                   Microsoft reserved partition  msftres
5      2505MB  250GB   248GB   ntfs            Basic data partition          msftdata
10      250GB   250GB   1049kB                                                bios_grub
11      250GB   267GB   17.0GB  ext4
12      267GB   271GB   3838MB  linux-swap(v1)
6      271GB   271GB   472MB   ntfs                                          hidden, diag
7      271GB   272GB   472MB   ntfs                                          hidden, diag
8      272GB   299GB   26.8GB  ntfs            Basic data partition          msftdata
9      299GB   320GB   21.5GB  ntfs            Basic data partition          hidden, diag


Warning: Unable to open /dev/sr0 read-write (Read-only file system).  /dev/sr0
has been opened read-only.
Error: /dev/sr0: unrecognised disk label



Re: HELP NEWBIE Pls - "Windows failed to start" error on dual boot system - gold_finger - 01-29-2016

As suspected, partition output confirms that Windows was installed in UEFI mode and Linux Lite was installed in Legacy/Bios mode.  Since computer is only booting into LL right now, the boot mode must be set as CSM/Legacy/Bios (or similar wording).  You need to get into the UEFI/(Bios) settings and change the boot mode back to UEFI in order to boot Windows.

Did a quick search for Lenovo laptops and I believe you can get into settings by pressing, holding down, or continuously tapping the <F1> key immediately after powering on computer.  Once in UEFI settings, look for a place to change the boot mode.  Don't know exactly where you'll find it, so just look through all settings until you find it.  Change it to "UEFI".  Reboot and it'll boot Windows.  Change back to CSM/Legacy/Bios when want to boot into LL -- at least for now, until can convert the LL install to UEFI mode.

As of now, there is no UEFI mode install option for LL.  (That's being tested right now for possible release later this year.)  Therefore, converting LL to UEFI mode is rather convoluted/tricky.  Will need some time to review possible procedure for that and will post back later, or tomorrow.  In the meantime, go to Ubuntu and download Ubuntu 14.04.3 LTS (64-bit) and burn that to a dvd/usb.  You will need that to convert LL to UEFI mode.

Also, if you haven't already done so, when you boot into Windows turn off the "Fast Startup" feature because that will cause problems with dual booting.  http://www.eightforums.com/tutorials/6320-fast-startup-turn-off-windows-8-a.html


Re: HELP NEWBIE Pls - "Windows failed to start" error on dual boot system - gold_finger - 01-31-2016

Alright -- looked into this and am basically using info from this tutorial and adjusting a few things to adapt it to your situation in steps listed below.

Before you start:
  1. Make a live dvd/usb of Ubuntu as noted before.  (If making a usb, use Rufus program for best results.)
  2. Turn off "Fast Startup" in Windows 8 as noted before.
  3. To be on the safe side, make a Windows 8 recovery USB if you have a spare usb stick for that.  (Even if you can't do it right now, I'd recommend you do that at some point to make repairing/re-installing Windows easier if you ever need to do that.)
  4. If you haven't already done so, boot computer and go into UEFI Settings and change boot mode to UEFI.

To convert your LL installation to UEFI mode, do the following steps.  (NOTE:  you'll need to be connected to the internet during some of these steps.)

Boot computer with live Ubuntu dvd/usb and hit the <F12> key immediately after power-up to invoke the Boot Menu.  You should see listings to boot your dvd/usb.  Choose the one that corresponds to booting it in UEFI mode.  (NOTE:  this boot menu applies only to the current boot session and is not affected by the change in boot mode you made to the main UEFI Settings Menu above.  That is why you need to specify "UEFI" here separately.)


If you see any warniings about "booting in insecure mode" or not being able to find "/boot/efi ..." just ignore those and continue.


At the grub-screen choose the option "Try Ubuntu without installing".

When the Ubuntu screen appears, click search icon (top left icon) and type X into the search box – the Xterm icon will then appear – click on it to open the terminal.

In the terminal you need to be in super-user mode so type the following:
Code:
sudo su

You need to mount both your installed LL Root partition and the EFI System Partition (ESP) to the live environment.  Do that with these three commands, one at a time.

Mount the Root partition:
Code:
mount /dev/sda11 /mnt

Make a directory to mount the ESP to:
Code:
mkdir -p /mnt/boot/efi

Mount the ESP:
Code:
mount /dev/sda2 /mnt/boot/efi

Now you're going to mount some other directories before you switch to operating directly within the installed LL vs. from the live Ubuntu terminal:
Code:
for i in /dev/ /dev/pts /proc/ /sys/ ; do mount -B $i /mnt/$i ; done

Enter this command to change from operating as root in live Ubuntu to operating as root directly within the installed LL system:
Code:
chroot /mnt

Now enter the following command to synchronize the package database:
Code:
apt-get update

Remove/Purge any grub related packages that might be currently installed on the LL system:
Code:
apt-get purge -y --force-yes grub* shim-signed linux-signed*

A window will then pop-up, entitled Configuring grub-pc, asking if you want to remove GRUB 2 from /boot/grub.... Click on the option <Yes>

Install the correct EFI related grub files to LL that are necessary to boot in UEFI mode:
Code:
apt-get install -y --force-yes grub-efi-amd64-signed shim-signed linux-signed-generic

Then add boot menu entry for EFI firmware configuration; however this may not add a Windows entry.
Code:
grub-mkconfig -o /boot/grub/grub.cfg

Tell grub to install to the ESP (where it will co-exist with the Windows boot loader -- not replace it.)
Code:
grub-install /dev/sda2

Update grub to add boot menu entry for Windows:
Code:
update-grub

Exit the chroot to LL:
Code:
exit

Unmount everything in this order (press enter after entering each line one at a time):
Code:
for i in /sys /proc /dev/pts /dev; do sudo umount /mnt$i; done
sudo umount /mnt/boot/efi
sudo umount /mnt

Your done!

Close the terminal and shutdown computer.

Reboot and you should see grub boot menu offering both LL (shown as "Ubuntu") and Windows.  Test booting into each to make sure everything is ok.

If computer still boots directly into Windows, don't panic.  Just boot the Ubuntu dvd/usb again in UEFI mode, then run this command in a terminal:
Code:
sudo efibootmgr -v

Copy/Paste the output back here for us to see and we'll tell you how to fix booting LL from that output.