Attempting to dual boot Debian and windows, receiving an error when booting Windows.
Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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.
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?
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.
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.
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?
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.