LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-14-2022, 02:01 PM   #1
ethanbarrack283
LQ Newbie
 
Registered: Sep 2021
Distribution: Debian
Posts: 12

Rep: Reputation: Disabled
Exclamation Attempting to dual boot Debian and windows, receiving an error when booting Windows.


I am currently running Debian 11, and I have another partition where my windows 10 iso files are at. I edited the /etc/grub.d/40_custom and added a menu entry for windows, as shown below

menuentry "windows 10" {
set root=(hd0,4)
insmod part_msdos
insmod ntfs
chainloader /windows/efi/boot/bootx64.efi
}

i then did sudo update-grub and booted the efi
however, i get an error:
Windows failed to start.
Status: 0xc000000f

Also to note, I CANNOT USE USB OR DVD. I have to boot the windows iso this way,
 
Old 04-14-2022, 09:42 PM   #2
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
Are you aware that you cannot boot a windows ISO this way for any purpose but installing? AFAIK there are no 'live' windows ISOs that would allow booting and running the full OS from the ISO. Windows installs then only runs from the installed OS since most of what is on the ISO is compressed files ready for installation and configuration of the installed system.

You are already running debian, why not create a VM and install windows into that VM from the ISO. Then you will be able to have both systems available as needed and no longer need to worry about the ISO, or manually creating the grub entry.
 
Old 04-14-2022, 10:12 PM   #3
ethanbarrack283
LQ Newbie
 
Registered: Sep 2021
Distribution: Debian
Posts: 12

Original Poster
Rep: Reputation: Disabled
Thanks for the response, I will install the iso, get windows, and then dual boot Debian. I dont mind if my data gets deleted. How am I able to do this?
 
Old 04-15-2022, 02:33 AM   #4
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,806
Blog Entries: 1

Rep: Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066
Quote:
Originally Posted by ethanbarrack283 View Post
I CANNOT USE USB OR DVD. I have to boot the windows iso this way,
Inability to use USB or DVD is an uncommon problem. Why is it happening to you?
 
Old 04-15-2022, 03:55 AM   #5
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,502

Rep: Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489
You need to extract or loop mount the windows iso file to a directory and then copy the files to a partition with a windows filesystem and put a proper entry in the grub.cfg menu of Debian which you already have installed. It isn't clear whether this is what you have done in your initial post as you refer to windows "iso files"?

There are numerous sites online describing the process and it is the same as creating a bootable windows installer on a usb. The link below explains it at the bottom of the page.

https://www.linuxbabe.com/desktop-li...b2-boot-loader
 
Old 04-15-2022, 10:26 AM   #6
ethanbarrack283
LQ Newbie
 
Registered: Sep 2021
Distribution: Debian
Posts: 12

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by yancek View Post
You need to extract or loop mount the windows iso file to a directory and then copy the files to a partition with a windows filesystem and put a proper entry in the grub.cfg menu of Debian which you already have installed. It isn't clear whether this is what you have done in your initial post as you refer to windows "iso files"?

There are numerous sites online describing the process and it is the same as creating a bootable windows installer on a usb. The link below explains it at the bottom of the page.

https://www.linuxbabe.com/desktop-li...b2-boot-loader
What i meant by iso files have the contents extracted from them when they are mounted, so like boot, efi, etc. Anyway, I have a BIOS, so i followed the instructions for installing windows 10 and having a BIOS for the grub menuentry. However, I have an error:
ntldr.mod is missing
How could i resolve this error?
 
Old 04-16-2022, 05:05 AM   #7
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,502

Rep: Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489
In your initial post, you show a Grub menuentry which is EFI but show "insmod part_msdos". Windows won't install in EFI mode on an msdos/Legacy drive, it needs to be GPT. If the drive is GPT, change that line to insmod part_gpt.

The link below discusses possible reasons for the ntldr is missing error.

https://unix.stackexchange.com/quest...ing-from-grub2

You should have an EFI folder on the partition on which you have the extracted windows. Make sure you have the correct path and uppercase letters where needed.
 
  


Reply

Tags
boot, debian, grub, windows



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Receiving error when attempting to mount LFS filesystem on Fedora lance.leach Linux From Scratch 3 02-08-2015 06:23 PM
Not receiving mails from only root user(receiving from others) in RHEL 4.5 narunice Linux - General 1 11-18-2010 08:20 AM
Partitioning Issues - Attempting to dual boot Windows 7 and Slackware 13.0 xTyrant Linux - Newbie 3 10-13-2009 01:42 PM
Attempting to dual boot windows xp home and ubuntu on separate drives-help needed- Iceman99one Linux - General 9 08-03-2008 05:10 AM
PLEASE HELP: Receiving weird error message when attempting Red Hat v8.0 install!! Soulstice Linux - General 8 01-12-2003 02:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration