OSDev.org
https://forum.osdev.org/

Windows Cygwin with grub-mkrescue??
https://forum.osdev.org/viewtopic.php?f=8&t=32225
Page 1 of 1

Author:  TheScripterGeek [ Sun Jul 16, 2017 9:34 pm ]
Post subject:  Windows Cygwin with grub-mkrescue??

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

Author:  Love4Boobies [ Thu Jul 27, 2017 12:51 pm ]
Post subject:  Re: Windows Cygwin with grub-mkrescue??

Cygwin stopped supporting GRUB a long time ago.

Author:  Kazinsal [ Thu Jul 27, 2017 4:07 pm ]
Post subject:  Re: Windows Cygwin with grub-mkrescue??

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.

Author:  Love4Boobies [ Sat Jul 29, 2017 11:28 am ]
Post subject:  Re: Windows Cygwin with grub-mkrescue??

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.

Author:  simeonz [ Sat Jul 29, 2017 12:43 pm ]
Post subject:  Re: Windows Cygwin with grub-mkrescue??

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.

Author:  Love4Boobies [ Sat Jul 29, 2017 4:23 pm ]
Post subject:  Re: Windows Cygwin with grub-mkrescue??

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.

Author:  simeonz [ Sat Jul 29, 2017 7:06 pm ]
Post subject:  Re: Windows Cygwin with grub-mkrescue??

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.

Author:  Kazinsal [ Sun Jul 30, 2017 7:58 pm ]
Post subject:  Re: Windows Cygwin with grub-mkrescue??

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.

Author:  simeonz [ Sun Jul 30, 2017 9:33 pm ]
Post subject:  Re: Windows Cygwin with grub-mkrescue??

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.

Author:  Kitchell [ Thu Nov 09, 2017 2:00 pm ]
Post subject:  Re: Windows Cygwin with grub-mkrescue??

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?

Author:  Kazinsal [ Thu Nov 09, 2017 3:58 pm ]
Post subject:  Re: Windows Cygwin with grub-mkrescue??

It's still supported and still in active development.

Author:  AJ [ Fri Nov 10, 2017 3:31 am ]
Post subject:  Re: Windows Cygwin with grub-mkrescue??

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

Author:  Kazinsal [ Sat Nov 11, 2017 3:07 am ]
Post subject:  Re: Windows Cygwin with grub-mkrescue??

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.

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/