OSDev.org

The Place to Start for Operating System Developers
It is currently Mon Aug 03, 2020 10:04 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: Issue with obtaining Grub on Windows
PostPosted: Wed Mar 25, 2020 2:08 pm 
Offline
Member
Member
User avatar

Joined: Tue Feb 18, 2020 3:29 pm
Posts: 197
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.

_________________
Working on NexOS, a microkernel based OS.


Top
 Profile  
 
 Post subject: Re: Issue with obtaining Grub on Windows
PostPosted: Thu Mar 26, 2020 12:35 am 
Offline
Member
Member
User avatar

Joined: Sat Mar 31, 2012 3:07 am
Posts: 3881
Location: Chichester, UK
https://sourceforge.net/projects/grub2win/


Top
 Profile  
 
 Post subject: Re: Issue with obtaining Grub on Windows
PostPosted: Thu Mar 26, 2020 12:55 am 
Offline
Member
Member

Joined: Mon Mar 25, 2013 7:01 pm
Posts: 2156
nexos wrote:
I am currently porting my operating system, NexOS, from Linux to Windows for various technical reasons.

What reasons?

nexos wrote:
I was wondering what the best way to make a Grub2 hard disk image on Windows 10 is.

WSL (or WSL 2 if you want to use a loop device to mount the disk image).


Top
 Profile  
 
 Post subject: Re: Issue with obtaining Grub on Windows
PostPosted: Thu Mar 26, 2020 10:50 am 
Offline
Member
Member
User avatar

Joined: Tue Feb 18, 2020 3:29 pm
Posts: 197
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.

_________________
Working on NexOS, a microkernel based OS.


Top
 Profile  
 
 Post subject: Re: Issue with obtaining Grub on Windows
PostPosted: Thu Mar 26, 2020 11:14 am 
Offline
Member
Member
User avatar

Joined: Fri Nov 22, 2019 5:46 am
Posts: 251
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.

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.

Greetings
Peter

_________________
https://wiki.osdev.org/User:PeterX


Top
 Profile  
 
 Post subject: Re: Issue with obtaining Grub on Win by bydows
PostPosted: Thu Mar 26, 2020 11:16 am 
Offline
Member
Member
User avatar

Joined: Sat Mar 31, 2012 3:07 am
Posts: 3881
Location: Chichester, UK
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.


Top
 Profile  
 
 Post subject: Re: Issue with obtaining Grub on Windows
PostPosted: Fri Mar 27, 2020 2:01 am 
Offline
Member
Member

Joined: Mon Mar 25, 2013 7:01 pm
Posts: 2156
nexos wrote:
Also, MinGW for Linux didn't work at all.

Can you be more specific? Did you also try Mingw-w64?


Top
 Profile  
 
 Post subject: Re: Issue with obtaining Grub on Windows
PostPosted: Sat Mar 28, 2020 12:10 pm 
Offline
Member
Member
User avatar

Joined: Tue Feb 18, 2020 3:29 pm
Posts: 197
I tried WSL and Grub2Win and neither worked


Top
 Profile  
 
 Post subject: Re: Issue with obtaining Grub on Windows
PostPosted: Sun Mar 29, 2020 1:37 pm 
Offline
Member
Member
User avatar

Joined: Tue Feb 18, 2020 3:29 pm
Posts: 197
Ok I finally got it working

_________________
Working on NexOS, a microkernel based OS.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group