Windows Cygwin with grub-mkrescue??

All about the OSDev Wiki. Discussions about the organization and general structure of articles and how to use the wiki. Request changes here if you don't know how to use the wiki.
Post Reply
TheScripterGeek
Posts: 4
Joined: Sun Jul 16, 2017 9:31 pm
Libera.chat IRC: TSG_

Windows Cygwin with grub-mkrescue??

Post by TheScripterGeek »

Whenever I try to use grub-mkrescue with cygwin(I have built everything needed before, but grub was a 50/50 would be nice to get the correct files for that), and whenever I try to use it it says it doesn't exist
User avatar
Love4Boobies
Member
Member
Posts: 2111
Joined: Fri Mar 07, 2008 5:36 pm
Location: Bucharest, Romania

Re: Windows Cygwin with grub-mkrescue??

Post by Love4Boobies »

Cygwin stopped supporting GRUB a long time ago.
"Computers in the future may weigh no more than 1.5 tons.", Popular Mechanics (1949)
[ Project UDI ]
User avatar
Kazinsal
Member
Member
Posts: 559
Joined: Wed Jul 13, 2011 7:38 pm
Libera.chat IRC: Kazinsal
Location: Vancouver
Contact:

Re: Windows Cygwin with grub-mkrescue??

Post by Kazinsal »

Do not use Cygwin. Use WSL or, if you are averse to upgrading to a modern operating system, install a hypervisor like VirtualBox or VMware Player and grab a Linux ISO.
User avatar
Love4Boobies
Member
Member
Posts: 2111
Joined: Fri Mar 07, 2008 5:36 pm
Location: Bucharest, Romania

Re: Windows Cygwin with grub-mkrescue??

Post by Love4Boobies »

I agree, Cygwin was always a pain in the butt. Hopefully, WSL will put it to rest. Unless they stop supporting it, as they did with SUA.
"Computers in the future may weigh no more than 1.5 tons.", Popular Mechanics (1949)
[ Project UDI ]
simeonz
Member
Member
Posts: 360
Joined: Fri Aug 19, 2016 10:28 pm

Re: Windows Cygwin with grub-mkrescue??

Post by simeonz »

Love4Boobies wrote:Unless they stop supporting it, as they did with SUA.
Is there any reason to believe that they will support it long term? One person's reasoning and the reasoning of the directors and marketing department of corporation like Microsoft can differ significantly. They barely sustain their own platform commitments long term. I understand that they have dubbed WSL "for developers", which can be an indication that it is commercially irrelevant for them and thus fair game.

Cygwin currently provides necessary batch processing tools that are lacking in the Windows environment. To do the same with a VM, you have to setup Samba or something similar over a virtual bridge, which is slow and painful. Unless some of the VMs provides some kind of paravirtualized FS driver by now. I agree that WSL is the better technological principle, but if Cygwin loses traction because of it, and gets outdated/unreliable, and then Microsoft discontinues WSL, the situation will be very uncomfortable. GnuWin32 is another alternative, but the same applies to them as well.
User avatar
Love4Boobies
Member
Member
Posts: 2111
Joined: Fri Mar 07, 2008 5:36 pm
Location: Bucharest, Romania

Re: Windows Cygwin with grub-mkrescue??

Post by Love4Boobies »

Sure, Cygwin might eventually get abandoned but I wouldn't cry too much over it. There won't be a crisis for people relying on it because there is always the option of simply running Linux either natively or in a VM (the VM tools are actually a lot better than you suggest)*. I tend to do that anyway because Cygwin doesn't support Valgrind---I am not sure whether it works with WSL but I really hope that it does. As far as the usual UNIX tools go, they were always part of the SFU/SUA deal but usually lagged behind in terms of package versions.

* If there is even a tiny lesson in all this potential switching around, it's that it's a good idea not to use implementation-specific features unless you really need them. If your shell scripts, makefiles, etc. are portable, you never have to be too afraid that things will break when changing tools.
"Computers in the future may weigh no more than 1.5 tons.", Popular Mechanics (1949)
[ Project UDI ]
simeonz
Member
Member
Posts: 360
Joined: Fri Aug 19, 2016 10:28 pm

Re: Windows Cygwin with grub-mkrescue??

Post by simeonz »

simeonz wrote:Sure, Cygwin might eventually get abandoned but I wouldn't cry too much over it. There won't be a crisis for people relying on it because there is always the option of simply running Linux either natively or in a VM (the VM tools are actually a lot better than you suggest)*. I tend to do that anyway because Cygwin doesn't support Valgrind---I am not sure whether it works with WSL but I really hope that it does.
There is no substitute for a proper linux install when it comes to development for the linux platform. I can't argue there. Also, VS is practically necessary for professional windows work, whereas the mingw gcc build covers casual windows development. What I meant is that cygwin provides the ability to use linux scripting on windows filesystems. If WSL and cygwin both disappear, as far as I am concerned, there will be no comparable environment for batch text and file processing on windows anymore. Anyway, time will tell.
User avatar
Kazinsal
Member
Member
Posts: 559
Joined: Wed Jul 13, 2011 7:38 pm
Libera.chat IRC: Kazinsal
Location: Vancouver
Contact:

Re: Windows Cygwin with grub-mkrescue??

Post by Kazinsal »

simeonz wrote:
Love4Boobies wrote:Unless they stop supporting it, as they did with SUA.
Is there any reason to believe that they will support it long term? One person's reasoning and the reasoning of the directors and marketing department of corporation like Microsoft can differ significantly. They barely sustain their own platform commitments long term. I understand that they have dubbed WSL "for developers", which can be an indication that it is commercially irrelevant for them and thus fair game.

Cygwin currently provides necessary batch processing tools that are lacking in the Windows environment. To do the same with a VM, you have to setup Samba or something similar over a virtual bridge, which is slow and painful. Unless some of the VMs provides some kind of paravirtualized FS driver by now. I agree that WSL is the better technological principle, but if Cygwin loses traction because of it, and gets outdated/unreliable, and then Microsoft discontinues WSL, the situation will be very uncomfortable. GnuWin32 is another alternative, but the same applies to them as well.
They re-engineered an entire section of their kernel solely to support the microcontainer platform it runs on. And I know there are people in the Windows team who use it in their day to day.

I suspect it'll be around for a very long time.
simeonz
Member
Member
Posts: 360
Joined: Fri Aug 19, 2016 10:28 pm

Re: Windows Cygwin with grub-mkrescue??

Post by simeonz »

Kazinsal wrote:They re-engineered an entire section of their kernel solely to support the microcontainer platform it runs on.
According to wikipedia they had plans to create Android middleware for Windows Mobile, which probably started the kernel reorganization already. From which WSL remained as a byproduct.
Kazinsal wrote:And I know there are people in the Windows team who use it in their day to day.
All right, but you yourself stated that Linux VMs offer viable (if not better) alternative for most tasks. WSL and similar environments address specific needs that are probably not considered high priority for the Windows market. And the Windows teams have lived and worked without the technology for a long time, so it must not have been such a vital necessity. In that sense, I doubt that the company would go out of its way to support it. Besides, if the idea proves unproductive for MS's marketing goals, they can discontinue WSL or leave the public with outdated variant and still maintain it internally, for example.
Kazinsal wrote:I suspect it'll be around for a very long time.
May be. Who knows. Mind you, I don't dislike the company nearly as much as some folk. I favor their OS's design in some ways (and not in others). But as I said, I don't trust their consistency.
Kitchell
Posts: 1
Joined: Mon Nov 06, 2017 4:37 am

Re: Windows Cygwin with grub-mkrescue??

Post by Kitchell »

Love4Boobies wrote:I agree, Cygwin was always love the best online bingo sites a pain in the butt. Hopefully, WSL will put it to rest. Unless they stop supporting it, as they did with SUA.
Are they still supporting it or have they given up on it?
Last edited by Kitchell on Wed Jul 17, 2019 2:23 am, edited 2 times in total.
User avatar
Kazinsal
Member
Member
Posts: 559
Joined: Wed Jul 13, 2011 7:38 pm
Libera.chat IRC: Kazinsal
Location: Vancouver
Contact:

Re: Windows Cygwin with grub-mkrescue??

Post by Kazinsal »

It's still supported and still in active development.
User avatar
AJ
Member
Member
Posts: 2646
Joined: Sun Oct 22, 2006 7:01 am
Location: Devon, UK
Contact:

Re: Windows Cygwin with grub-mkrescue??

Post by AJ »

The option to install the feature is still marked as "beta", but the whole system works extremely well for me. The cross-compiler tutorial works perfectly on it.

The only "catch" I can see is that if you are using an IDE in windows, there are problems with files in the Linux filesystem not being marked as updated. The very simple solution for me has been to "ln" somewhere in /mnt/c to somewhere in ~/. This means that Windows and WSL see the same files.

Cheers,
Adam
User avatar
Kazinsal
Member
Member
Posts: 559
Joined: Wed Jul 13, 2011 7:38 pm
Libera.chat IRC: Kazinsal
Location: Vancouver
Contact:

Re: Windows Cygwin with grub-mkrescue??

Post by Kazinsal »

Yes, that is an important thing to know about LXSS/WSL: do not modify the LXSS filesystem in AppData with Win32 apps. This fails to keep the NTFS extended attributes applied to the files themselves, and fails to update the ones on the containing folder, meaning that WSL doesn't actually get informed that the files are even there. It's like you're writing data to the disk, and you're telling the block tree that you're using that data, but you're not actually adding any of the metadata.

Do what AJ said and symlink your working directory in NTFS/ReFS/whatever your Win32 space is formatted as to a point in your home directory.
Post Reply