News for hackers. Stuff that matters.
Re:Windows on Btrfs by dale_glass on Friday April 21, 2023 @08:00PM (#35661852)
> Related tangent: Something I don't fully understand (perhaps I just haven't found a project that facilitates it) is why there isn't a Windows extension (driver?) that allows for native mounting of ext4 partitions within Windows explorer.

Such projects have long existed, but I suspect there's a lack of interest.

It's a difficult technical problem with a narrow usage niche. You need somebody who wants both Windows and Linux, and wants to use the same physical disks. Today, why bother? You can use a NAS, cloud storage, virtualization, etc.

Re:Windows on Btrfs by leoc on Friday April 21, 2023 @08:10PM (#35661908)
Wanting to dual-boot sometimes isn't that rare, surely. And local storage for documents remains popular too. It seems to reflect the reality that serious Linux development effort has been very server-focussed for a long time.
Re:Windows on Btrfs by dale_glass on Friday April 21, 2023 @08:23PM (#35662014)
These days probably quite rare, except for gaming. Virtualization is far more convenient.
Re:Windows on Btrfs by kaetemi on Friday April 21, 2023 @08:58PM (#35662233)
Yeah, if you're going to exclude the common use cases, obviously it's going to be rare. (:

People still use local storage.

(I'd also like native ext4 support in Windows.)

Re:Windows on Btrfs by dale_glass on Friday April 21, 2023 @09:04PM (#35662262)
Yeah, but when I boot Windows for gaming, I don't care about sharing data with Linux.

And given the availability of cloud storage, I can just upload whatever little I need to share.

Re:Windows on Btrfs by mst on Saturday April 22, 2023 @01:25PM (#35668884)
Not all dual boot systems are "main OS" plus "wintendo." Quite a lot of the ones I encounter on personal machines are, certainly, but people doing actual dev stuff on both is still a use case.
Re:Windows on Btrfs by sgtnoodle on Friday April 21, 2023 @10:08PM (#35662673)
Valve is working hard to change that.
Re:Windows on Btrfs by itsboring on Friday April 21, 2023 @11:08PM (#35662999)
Used to dual boot, but with the combo of steam/proton and VFIO passthrough + looking glass, it’s been really solid to just run both at the same time. File sharing between the two is pretty easy in that case, because it’s just the usual rsync/scp tools or SMB share.

Although, I’ve found I very rarely need the guest for gaming anymore, more so for opening the odd Photoshop file and similar tasks.

Re:Windows on Btrfs by checkyoursudo on Saturday April 22, 2023 @08:06AM (#35665758)
This is where I am at now.

In 2010, used to dual boot. In 2014 or so, I switched to VFIO GPU/SSD passthrough and never booted to Windows again. In maybe 2019 or so, I pretty much stopped using passthrough even, though this is partly because I stopped playing a few games that proton didn't run (mostly because of e.g. Easy Anti Cheat, etc).

I don't even have my windows ssd installed in my tower any more, that's how little I expect to need it these days.

Re:Windows on Btrfs by circuit10 on Saturday April 22, 2023 @07:48AM (#35665588)
Virtualisation is really laggy if you have no GPU acceleration, there are ways to get it working but they either need two GPUs or are still slower than native
Re:Windows on Btrfs by NegativeLatency on Friday April 21, 2023 @09:53PM (#35662568)
When I dual booted a hackintosh and windows (2015) I did so on 2 different drives so I wouldn’t have windows scribbling over my boot sector
Re:Windows on Btrfs by csomar on Friday April 21, 2023 @11:50PM (#35663179)
Sure but the Linux audience is certainly not one that pays for such things. Like the Parent Poster explained, this is a hard and niche technical problem. Someone has to foot the bill for this, and apparently there is a "need" for it but no market to sell it.
Re:Windows on Btrfs by whitemary on Saturday April 22, 2023 @01:04AM (#35663495)
The Linux audience is software engineers and the companies they who employ them.
Re:Windows on Btrfs by cpach on Saturday April 22, 2023 @04:24AM (#35664446)
So why haven’t such an open source application materialized after all these years?
Re:Windows on Btrfs by voltagex_ on Saturday April 22, 2023 @05:25AM (#35664754)
Well you'd need to fund the cost of a kernel driver signing certificate and get it through WHQL as well. That's just for a start. So this wouldn't be something you could build yourself.
Re:Windows on Btrfs by circuit10 on Saturday April 22, 2023 @07:46AM (#35665569)
Surely you’d just need to turn driver signing off
Re:Windows on Btrfs by KyeRussell on Saturday April 22, 2023 @04:30AM (#35664479)
Back when I was a desktop Linux user, a very sizeable portion of the other people I knew that used it weren’t “software engineers”. They were ‘power users’. I don’t think that my experience was all that atypical.
Re:Windows on Btrfs by csomar on Saturday April 22, 2023 @08:50AM (#35666119)
The need is more personal than corporate.
Re:Windows on Btrfs by smoldesu on Saturday April 22, 2023 @10:54AM (#35667157)
There are corporate solutions (like the Paragon drivers), they just suck. Paragon tried merging this code into the Linux kernel, but the code was so bad and unmaintainable that it was rejected. The FOSS solution is using FUSE, but that requires a UNIX-like OS for easy porting. Unless Windows ditches the NT kernel altogether, I don't think you can expect native filesystem extensions beyond NFS support.

GNU philosophy is not about moneymaking or footing the bill. Sometimes a problem gets worse when you throw money at it.

Re:Windows on Btrfs by apatheticonion on Sunday April 23, 2023 @07:56PM (#35682000)
If there was a Linux OS focusing on desktop/laptop users that offered a highly polished user experience - comparable to the best of MacOS and Windows - I would be very happy to pay for it.

I am probably in the minority of Linux users though.

Re:Windows on Btrfs by alexvoda on Monday April 24, 2023 @06:55AM (#35685961)
I do not find macOS or Windows to be polished. Linux isn't either. They all just have different areas of roughness.
Re:Windows on Btrfs by smaudet on Sunday April 23, 2023 @10:50PM (#35683148)
> "Sure but the Linux audience is certainly not one that pays for such things."

Eh? People just pay for their stuff. The problem is there isn't really a market for OSes (as a consumer), period. Unless you build a PC yourself, which is not the norm, you don't usually even buy an OS.

This has nothing do with whether the linux audience pays for stuff or not...they pay fine. It is true that it is relatively niche even for linux folk to want to do this sort of thing, but that has more to do with laptop vs desktop form factors than the market. If it were a common need, I think it would be a common thing found on the market. In fact the existing ext4 stuff for Windows indeed used to be paid, but this was primarily for Windows users, Linux users have had no issue accessing ntfs drives for ages, and generally didn't really enjoy giving Windows access to their drives anyways, what with the market for viruses and whatnot...

Re:Windows on Btrfs by HyperSane on Saturday April 22, 2023 @01:23AM (#35663622)
Why would I dual boot when I could use a VM?
Re:Windows on Btrfs by mmerlin on Saturday April 22, 2023 @02:47AM (#35664008)
For performance, to use the entire RAM and CPU of the bare metal machine
Re:Windows on Btrfs by nly on Saturday April 22, 2023 @05:00AM (#35664609)
The overhead of VMs, properly provisioned, is minimal these days. Even going with card passthrough just works.
Re:Windows on Btrfs by circuit10 on Saturday April 22, 2023 @07:51AM (#35665625)
That doesn’t work if you have one GPU (unless you shut down the Linux desktop which defeats the point)
Re:Windows on Btrfs by mtrower on Saturday April 22, 2023 @07:53AM (#35665643)
You need a whole damn extra card for passthrough. With the price of today’s high end cards, that option seems… less than attractive.
Re:Windows on Btrfs by checkyoursudo on Saturday April 22, 2023 @08:10AM (#35665785)
Re:Windows on Btrfs by rezonant on Saturday April 22, 2023 @08:09AM (#35665778)
Let alone trying to fit 2 3-slot GPUs in your machine, or have enough PCIe lanes to take advantage of them
Re:Windows on Btrfs by HyperSane on Saturday April 22, 2023 @12:24PM (#35668152)
For what?
Re:Windows on Btrfs by pjmlp on Saturday April 22, 2023 @03:25AM (#35664183)
For me dual boot has ended the day VMWare and Virtual Box became good enough, that was around 2010.
Re:Windows on Btrfs by KyeRussell on Saturday April 22, 2023 @04:40AM (#35664519)
I mean…using desktop Linux in the first place is already an incredibly harsh qualifier. macOS and even Windows (+ WSL) are no doubt serving the needs of many people that need a *nix environment for their work, and eating into the percentage of people that would otherwise push for Linux to be supported by their employer, or use it at home. That and the ubiquity of containerised workloads.

It’s really not outside the realm of reason for the subset of those people that want to use Windows for something other than playing video games is small enough for there to not be the base level of interest needed for this stuff to get off the ground.

Re:Windows on Btrfs by Kwpolska on Saturday April 22, 2023 @05:25AM (#35664755)
Linux has good NTFS drivers. If you want to dual boot and share files, you just make three partitions: Windows (NTFS), Linux (whatever the cool kids are using these days), and Shared Data (NTFS).
Re:Windows on Btrfs by wongarsu on Saturday April 22, 2023 @06:32AM (#35665088)
And before linux had good NTFS drivers, you just put your shared data on FAT32.
Re:Windows on Btrfs by joveian on Saturday April 22, 2023 @01:48PM (#35669135)
EXFAT is another option these days.
Re:Windows on Btrfs by Kwpolska on Sunday April 23, 2023 @03:59AM (#35674289)
In my experience, exFAT support in Linux is worse than NTFS support (and NTFS is more likely to be installed out-of-the-box). If you also need to support macOS, then exFAT might be an option, but exFAT lacks journalling and doesn’t scale too well due to cluster size/count limits.
Re:Windows on Btrfs by prmoustache on Saturday April 22, 2023 @07:44AM (#35665550)
On the contrary I have the feeling dual boot is a thing of the late 90's-early 2000's when processors didn't come equiped with virtualization extensions and virtualization was slow as hell.

Having to reboot is so inconvenient, sooner or later ina dual boot setup you leave your non-preferred env colecting dusts and cobwebs.

Re:Windows on Btrfs by watmough on Friday April 21, 2023 @08:49PM (#35662172)
Back in the day, and I mean like mid-late 90's, you could actually install the Linux kernel, files etc., straight onto a Windows FAT partition and boot into it.

Not exactly what was being asked for, but a weird old fact I'd forgotten about.

Re:Windows on Btrfs by fdr on Friday April 21, 2023 @09:13PM (#35662334)
Sometime in the early 2000s, when microarchitectural features for virtualization were rare, I used coLinux in a working capacity. It has a design was amazing at how well it worked given the constrained size of the code changes. In short, it ran a copy of Linux in supervisor mode in addition to Windows (this is the "driver mode"). At the same time. Both in supervisor mode. As a giant coroutines yielding to one another.

https://en.wikipedia.org/wiki/Cooperative_Linux http://www.colinux.org/publications/Reprint-Aloni-OLS2004.pd...

Re:Windows on Btrfs by lta on Saturday April 22, 2023 @09:50AM (#35666603)
A friend of mine has been using this setup for a very long time do be able to write music and work on the same station. I remember I was amazed at how solid the thing was.

Does anyone know if there's a relationship between colinux and how ms eventually ended up implementing wsl ?

Re:Windows on Btrfs by fdr on Sunday April 23, 2023 @08:51PM (#35682409)
Not so much. WSL1 was a too-audacious attempt to implement enough Linux-style system calls in Windows to run Linux software. Which it did surprisingly well, considering...but also, often strangely, and slowly.

I think the name is a bit ironic, since the whole idea is to avoid using any Linux code in Windows, but implementing system calls so that the non-Linux parts of a Linux distribution could pretend Windows was Linux. GNU/Windows-pretending-to-be-Linux, as it were.

WSL2 is virtualization-based, so it could be seen as more comparable to Docker's installation package as seen on non-Linux platforms, or Parallels: a somewhat elaborate attempt to improve the virtualization experience in interoperation with the host, e.g. setting up NAT, network file systems, or installing special drivers.

I don't think coLinux offers as much as it did, now that virtualization micro-architectural features are routinely available. At least one part of coLinux that took up quite a bit of its code was special drivers to interface with the host OS. This code would still be useful and has parallels in current approaches, but the decisive trick of toggling between two kernels running in supervisor mode has less room to be useful.

Also, you could only imagine the difficulty of identifying the origin of bugs in that set-up.

Re:Windows on Btrfs by mst on Saturday April 22, 2023 @01:29PM (#35668927)
I was really quite fond of colinux, out of assorted VM tech, colinux, cygwin and WSL1 and 2 that have provided me with enough of an X11+xterm+ssh rig to get work done comfortably on a windows machine I think colinux and WSL1 have been the least friction overall.
Re:Windows on Btrfs by arprocter on Friday April 21, 2023 @10:12PM (#35662702)
Reminds me of Wubi - I had a Pentium 4 box with a BIOS password that wouldn't clear, and this let me turn it into something 'useful'
Re:Windows on Btrfs by progman32 on Saturday April 22, 2023 @02:49AM (#35664015)
There was a distribution called WinLinux that did this, iirc. Installed like a normal piece of windows software. Was my first foray into unices when I was a young kid. There were some fun games in that distro!
Re:Windows on Btrfs by Spivak on Friday April 21, 2023 @11:45PM (#35663160)
Or just using NTFS since Linux now has good support for it.
Re:Windows on Btrfs by yellowapple on Saturday April 22, 2023 @04:36AM (#35664497)
The niche surely ain't that narrow, especially as Linux-based devices like Raspberry Pis and Steam Decks grow in popularity; being able to ready EXT-formatted SD cards and such seems like it'd be valuable even from Windows.
Re:Windows on Btrfs by lasftew on Saturday April 22, 2023 @05:05AM (#35664635)
It might be convenient, but it is also more complex than just being able to read file systems. External disks or partitions containing data in particular will / should always be fully encrypted nowadays, so you'd need interoperability of disk encryption schemes as well (dmcrypt, bitlocker). NAS can handle that transparently.
Re:Windows on Btrfs by arglebargle123 on Sunday April 23, 2023 @12:10PM (#35677458)
Now that the new NTFS3 driver is out in the wild there's also not much need. The number of people who boot windows and need to access an ext4 partition is tiny compared to the number of people booting Linux who need to access NTFS.