Sharing a bazzite game library to windows OS

Hi, So I have dual boot Windows and Bazzite and think I might need to allocate more space to windows as there are some games I have on bazzite I want to put back into windows but was wondering instead of increased storage space can I share my library to windows?
135 Replies
Kasher_CS
Kasher_CS•3mo ago
GitHub
GitHub - maharmstone/btrfs: WinBtrfs - an open-source btrfs driver ...
WinBtrfs - an open-source btrfs driver for Windows - maharmstone/btrfs
HikariKnight
HikariKnight•3mo ago
if it is only steam games or emulators then btrfs. gamepass, epic, etc does not like btrfs apparently
Rhan121
Rhan121•3mo ago
It's PC steam games but added via Non Steam games option if that makes sense? So lutris install -> add non steam game
Kasher_CS
Kasher_CS•3mo ago
Should be fine I think Not much you'd lose aside from time
Rhan121
Rhan121•3mo ago
I'll try it then but as a last resort incase it don't work is there a way I can re allocate storage to give windows more and decrease bazzite? Without having to remove bazzite and re allocate through window?
HikariKnight
HikariKnight•3mo ago
live usb and use a partition manager to resize both and potentially wait a good while as data is moved (also there is the risk of data loss and the partitions being broken) once you start the process there is no going back without data loss until it is done yeah but he is shrinking the partition for bazzite so he needs to use a live usb
Rhan121
Rhan121•3mo ago
(sorry for all the questions) so on the Winabtrf do I need to re partition my SSD to btrfs? I think it's NTFS atm
HikariKnight
HikariKnight•3mo ago
no it lets you read btrfs filesystems in windows and it is very important that you configure the winbtrfs permissions correctly as specified in the readme
Rhan121
Rhan121•3mo ago
So it's not as simple as clicking install on the btrfs.inf included in the zip file? I'm just reading through the site and there's a lot on there and is a bit daunting to me cos it's like information overlaod if things I don't understand and don't want to break anything
HikariKnight
HikariKnight•3mo ago
it is that easy to install it but you want it to work with bazzite and not mangle things, meaning you need to tell it what permissions it has to use when writing/editing files on the system its as simple as running 1 command and adding 2 entries to your registry as mentioned in the readme
Rhan121
Rhan121•3mo ago
Yeah I read this but it confused me because of all the commands and I didn't know which bit I need to follow
HikariKnight
HikariKnight•3mo ago
you need the SID that belongs to your windows user and map that to UID 1000 and GID 1000 for winbtrfs it will make it place and edit files as your bazzite user (permissions wise)
Rhan121
Rhan121•3mo ago
Where does it say that in the readme 😅
HikariKnight
HikariKnight•3mo ago
No description
HikariKnight
HikariKnight•3mo ago
for bazzite (and the vast majority of linux systems) if you want to use user permissions it will be uid 1000 and gid 1000 by default winbtrfs does everything as root (uid and gid 0) meaning if you launch a game and it edits its files grats you broke it on linux now and that 1 file can only be edited with sudo
Rhan121
Rhan121•3mo ago
Sorry you might need to dumb it down for me a bit further. I terms of what I need to is first go to HKLM\SYSTEM\CurrentControlSet\services\btrfs\Mappings in windows? But no idea what the Dword is? .... Do I just look for SID like the example e.g. S-1-5-21-1379886684-2432464051-424789967-1001 And change the end 1001 to 1000?
HikariKnight
HikariKnight•3mo ago
a dword is a file in regedit
Rhan121
Rhan121•3mo ago
At this point I'm honestly thinking is better just doing a KDE partition and shrinking the Linux size (but someone before mentioned it could break Linux as I might be removing something Linux needs)
HikariKnight
HikariKnight•3mo ago
also literally on the line below the image if you read the instructions
You can find your current SID by running wmic useraccount get name,sid.
You can find your current SID by running wmic useraccount get name,sid.
not familiar with windows SIDs so not sure if they are identical on each system for the first user
Kasher_CS
Kasher_CS•3mo ago
Go to HKLM\SYSTEM\CurrentControlSet\services\btrfs\Mappings Right click It will allow you to create a new DWORD
Rhan121
Rhan121•3mo ago
In Bazzite right? I know it's a stupid question... Because it says "Create a DWORD with the name of your Windows SID" and sounds weird to create a new DWORD in windows using a winsows SID ...
HikariKnight
HikariKnight•3mo ago
in windows... this is a windows driver
Rhan121
Rhan121•3mo ago
Ah 😅 so basically Windows -> Go to HKLM\SYSTEM\CurrentControlSet\services\btrfs\Mappings Right click A create a new DWORD with my SID which will be found by running the CMD "wmic useraccount get name,sid" But how does that map to GID and UID 1000? Also I have no idea what GID and UID is to do that
Kasher_CS
Kasher_CS•3mo ago
Yes Than click it again and type 1000 in the value
HikariKnight
HikariKnight•3mo ago
that path is inside regedit
Kasher_CS
Kasher_CS•3mo ago
Wait
HikariKnight
HikariKnight•3mo ago
it tells the btrfs driver that the user with the SID you provided is to be treated as if it is UID 1000 and GID 1000 in linux (meaning its the first user)
Kasher_CS
Kasher_CS•3mo ago
Don't type 1000 if its 0x something Type 3E8 in that case (By the way, just rebooted and installed it on windows to check)
Pryka
Pryka•3mo ago
why just not share windows ntfs partition for games? steam supports it and it easier than messing with btrfs drivers on windows
HikariKnight
HikariKnight•3mo ago
steam does actually not support it and it is actually not recommended as it requires hacky workarounds to work
Kasher_CS
Kasher_CS•3mo ago
Probably because they want to use bazzite storage for windows and not the opposite
HikariKnight
HikariKnight•3mo ago
and this
Rhan121
Rhan121•3mo ago
What do you mean if my SID shows Ox at the end instead of 1000?
Pryka
Pryka•3mo ago
GitHub
Using a NTFS disk with Linux and Windows
Compatibility tool for Steam Play based on Wine and additional components - ValveSoftware/Proton
Kasher_CS
Kasher_CS•3mo ago
No, after you create the value and you click it
Kasher_CS
Kasher_CS•3mo ago
No description
Kasher_CS
Kasher_CS•3mo ago
You need to Click on Decimal and type 1000
HikariKnight
HikariKnight•3mo ago
yes but its still not recommended to do it that way
Rhan121
Rhan121•3mo ago
Oh I see so the Ox is the hex value?
Pryka
Pryka•3mo ago
neither do winbtrfs, but I understand, and it is definitely not more "hacky" than winbtrfs, you basically set one thing. But yeah if he wants this on Bazzite side, winbtrfs is the way.
Rhan121
Rhan121•3mo ago
Actually before I ask more questions let me get that far. I'm about to finish work in 30mins so will hop on and try when I get home Also Thank you @HikariKnight and @Kasher_CS for your patience with me 😅
Kasher_CS
Kasher_CS•3mo ago
Yes, so our value is 1000 in Decimal, not in Hex, that's what I'm saying
Rhan121
Rhan121•3mo ago
Yeah all my games are on bazzite but I want to move some over to windows so I can test out the difference between AFMF and Losless scaling on my games and see which is better
Rhan121
Rhan121•3mo ago
Uhh guys I don't see btrfs?
No description
Rhan121
Rhan121•3mo ago
Is that supposed to appear after or before I install inf file?
Kasher_CS
Kasher_CS•3mo ago
After ofc
Rhan121
Rhan121•3mo ago
Oh that's why 😅
Kasher_CS
Kasher_CS•3mo ago
For me the subfolder under btrfs didn't show
Rhan121
Rhan121•3mo ago
Ok yeah so now I don't see mappings
No description
Rhan121
Rhan121•3mo ago
There's 4 Dword files here too
HikariKnight
HikariKnight•3mo ago
those are defaults i believe, ignore them make a folder/key called Mappings when you right click on the btrfs folder
Rhan121
Rhan121•3mo ago
Got it so is it Dword 32 or 64bit?
No description
HikariKnight
HikariKnight•3mo ago
DWORD is 32bit QWORD is 64bit you want DWORD
Rhan121
Rhan121•3mo ago
Oops I see now sorry bad eye sight
Rhan121
Rhan121•3mo ago
Look right?
No description
HikariKnight
HikariKnight•3mo ago
if thats your windows users SID then yes now do the same but make a folder named GroupMappings instead then that should be it also rename your folder from Mapping to Mappings
Rhan121
Rhan121•3mo ago
It is. It was blank and had a value if 0 at first
HikariKnight
HikariKnight•3mo ago
0 would be root which we do not want, steam (in linux) will hate it 😄
Rhan121
Rhan121•3mo ago
That's why I changed it to 1000
HikariKnight
HikariKnight•3mo ago
so in the end you should have
HKLM\SYSTEM\CurrentControlSet\services\btrfs\Mappings
HKLM\SYSTEM\CurrentControlSet\services\btrfs\GroupMappings
HKLM\SYSTEM\CurrentControlSet\services\btrfs\Mappings
HKLM\SYSTEM\CurrentControlSet\services\btrfs\GroupMappings
both containing your SID and the value 1000
Rhan121
Rhan121•3mo ago
Ok so that's done. Now I just go back to launch it in bazzite and the game will also show in windows?
HikariKnight
HikariKnight•3mo ago
once you add the steamlibrary to windows yes
Kasher_CS
Kasher_CS•3mo ago
This is what I suggest- Reboot Windows to verify your drive shows up Make a random file, perferebly in your user directory Reboot to bazzite and do ls -l and check ownership on that file
Rhan121
Rhan121•3mo ago
When you say verify the drive shows up where am I looking to check that?
Kasher_CS
Kasher_CS•3mo ago
This PC You will automatically have a drive letter
Rhan121
Rhan121•3mo ago
I only see my C drive
Kasher_CS
Kasher_CS•3mo ago
Secure boot? To work around this, go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\CI\Policy in Regedit, create a new DWORD value called UpgradedSystem and set to 1, and reboot. Try this
Rhan121
Rhan121•3mo ago
Secure boot is on
Kasher_CS
Kasher_CS•3mo ago
Than do this (Reboot into Windows mind you, ofc)
Rhan121
Rhan121•3mo ago
Just to double check I'm not creating a folder under policy just adding a new one to the default?
Rhan121
Rhan121•3mo ago
No description
Kasher_CS
Kasher_CS•3mo ago
Yes, just new DWORD No key
Rhan121
Rhan121•3mo ago
And decimal value to 1?
Kasher_CS
Kasher_CS•3mo ago
Yes
Rhan121
Rhan121•3mo ago
Done rebooting now Yep it's there now!
Kasher_CS
Kasher_CS•3mo ago
Alrighty, so create a file (In the home directory is best) and check it has correct permissions on Linux
Rhan121
Rhan121•3mo ago
So the txt file I created in home on the windows side didn't show up In Bazzite home
Kasher_CS
Kasher_CS•3mo ago
sudo ls?
Rhan121
Rhan121•3mo ago
Nope it's not there Perhaps it needs to go a folder down one more?
HikariKnight
HikariKnight•3mo ago
just out of curiosity
Kasher_CS
Kasher_CS•3mo ago
Very weird, did you create them maybe in different folders by accident
HikariKnight
HikariKnight•3mo ago
ls -la /sysroot/home
Kasher_CS
Kasher_CS•3mo ago
ls -la /sysroot/home/username You mean
Rhan121
Rhan121•3mo ago
Create what sorry?
Kasher_CS
Kasher_CS•3mo ago
The file
Rhan121
Rhan121•3mo ago
I put it in the fedora drive and then in home like you said
HikariKnight
HikariKnight•3mo ago
ls -la /home?
Rhan121
Rhan121•3mo ago
No description
HikariKnight
HikariKnight•3mo ago
and the last one?
Rhan121
Rhan121•3mo ago
So with my username says no such file it directory
HikariKnight
HikariKnight•3mo ago
this one
Rhan121
Rhan121•3mo ago
/home -> var/home it says
Rhan121
Rhan121•3mo ago
No description
Kasher_CS
Kasher_CS•3mo ago
ls -la /var/home
HikariKnight
HikariKnight•3mo ago
im bitten by the symlink again 😂
Rhan121
Rhan121•3mo ago
There it is at the bottom...
No description
HikariKnight
HikariKnight•3mo ago
yeah you took it literally 😛 we meant add the file to your home folder, either way as you can see the permissions are wrong nfsnobody and users users might work but not nfsnobody
Rhan121
Rhan121•3mo ago
So what do I need to do?
HikariKnight
HikariKnight•3mo ago
can you ls -lan /var/home
Kasher_CS
Kasher_CS•3mo ago
Seems like the registry change didn't stick (The first one obv, the second one is fine)
HikariKnight
HikariKnight•3mo ago
it will show the UID and GID instead of ownership names
Rhan121
Rhan121•3mo ago
No description
HikariKnight
HikariKnight•3mo ago
yeah one of the registry values is wrong and i believe the DWORD was left as hex instead of decimal
Kasher_CS
Kasher_CS•3mo ago
Nah drwxr-xr-x. 1 4096 users 92 Jul 31 17:50 '$RECYCLE.BIN'/ This is when its left as hex
HikariKnight
HikariKnight•3mo ago
hm ok well the Mappings registry is wrong either way the groupmappings one should ideally be 1000 but its 100 which is fine if we talking only about game files
Rhan121
Rhan121•3mo ago
Let me go back and check it I could of missed a 0 or something
Kasher_CS
Kasher_CS•3mo ago
Nah, you didn't, 100 is the default
HikariKnight
HikariKnight•3mo ago
oh it is now? back when i used it 0 was default for group
Kasher_CS
Kasher_CS•3mo ago
If anything you may have copied a wrong SID
Rhan121
Rhan121•3mo ago
So what does it mean it can't be done?
HikariKnight
HikariKnight•3mo ago
maybe copied the one from the readme?
Kasher_CS
Kasher_CS•3mo ago
No, it can be done, it's just that you provided the wrong SID Not the one from the readme
HikariKnight
HikariKnight•3mo ago
ok been ages since i actually used this driver
Rhan121
Rhan121•3mo ago
No I did my own but there were many SIDs I copied the one with my name I think
Kasher_CS
Kasher_CS•3mo ago
Well the mapping didn't apply, so verify it
Rhan121
Rhan121•3mo ago
So the SID I copy is it Admin, my name, default account? I'm guessing not guest
Kasher_CS
Kasher_CS•3mo ago
My name worked
Rhan121
Rhan121•3mo ago
So when I went back into the policy folder where Mappings and GroupMappings were it duplicated it for some reason One had the Dword I created and another different one
Kasher_CS
Kasher_CS•3mo ago
What's the different one? As in, value
Rhan121
Rhan121•3mo ago
Different SID value was 100 Also duplicate mappings has no Dword file
Rhan121
Rhan121•3mo ago
No description
No description
HikariKnight
HikariKnight•3mo ago
i wonder if there is a space in the folders you made? 🤔 since there is now 2 of each cant think of anything else
Rhan121
Rhan121•3mo ago
Lemme check one sec No spaces in Mappings folder but GroupMappings did oops
Kasher_CS
Kasher_CS•3mo ago
If the Groupmappings was 100 and mappings was 65534, change them both to 1000
Rhan121
Rhan121•3mo ago
No description
Kasher_CS
Kasher_CS•3mo ago
Did you recreate the file? After rebooting?
Rhan121
Rhan121•3mo ago
Oh no lemme do that Good news is no duplicate folders after removing the space Testing to see if I can see the new file now Yep it says 1000 now
Rhan121
Rhan121•3mo ago
Now what?
No description
Kasher_CS
Kasher_CS•3mo ago
All good than Use it the same as you use a normal secondary drive in Windows
HikariKnight
HikariKnight•3mo ago
@Rhan121 and for the future you want any interactions you do from windows to be inside D:\home\rhan 🙂
Rhan121
Rhan121•3mo ago
So just find my games in D:\ home\rhan\ games and add to steam
Kasher_CS
Kasher_CS•3mo ago
Yes
Rhan121
Rhan121•3mo ago
It works! 😯 Thank you guys for all your help! Closing this down now appreciate the help!
Want results from more Discord servers?
Add your server