Hello,
I am currently porting my operating system, NexOS, from Linux to Windows for various technical reasons. However, I still want to use Grub. I was wondering what the best way to make a Grub2 hard disk image on Windows 10 is. Thank you for your help.
Issue with obtaining Grub on Windows
-
- Member
- Posts: 5568
- Joined: Mon Mar 25, 2013 7:01 pm
Re: Issue with obtaining Grub on Windows
What reasons?nexos wrote:I am currently porting my operating system, NexOS, from Linux to Windows for various technical reasons.
WSL (or WSL 2 if you want to use a loop device to mount the disk image).nexos wrote:I was wondering what the best way to make a Grub2 hard disk image on Windows 10 is.
Re: Issue with obtaining Grub on Windows
Ok thank you. The reason are because I like the PE format better then ELF, and I like the Visual Studio code editor which checks for syntax errors while editing. Also, MinGW for Linux didn't work at all.
Re: Issue with obtaining Grub on Windows
You can, of course, do as you like. But MinGW means "Minimal GNU for Windows". You already have GNU, if and when you use Linux. You have bash, gcc, make, Unix-style file commands (ls, cp etc.) and many useful OS dev tools like dd. MinGW is for Windows only and kind of obsolete in Linux.nexos wrote:Ok thank you. The reason are because I like the PE format better then ELF, and I like the Visual Studio code editor which checks for syntax errors while editing. Also, MinGW for Linux didn't work at all.
Greetings
Peter
Re: Issue with obtaining Grub on Win by bydows
You can use Visual Code with Linux. You can even run it on Windows to edit and compile code in WSL or on a remote Linux computer.
-
- Member
- Posts: 5568
- Joined: Mon Mar 25, 2013 7:01 pm
Re: Issue with obtaining Grub on Windows
Can you be more specific? Did you also try Mingw-w64?nexos wrote:Also, MinGW for Linux didn't work at all.
Re: Issue with obtaining Grub on Windows
I tried WSL and Grub2Win and neither worked