r/linuxquestions • • 11d ago

Resolved Windows is blocking my files from Linux

So I've been using Fedora as my main OS and Windows as my secondary (because of the Unversity) so I installed a drive that is shared between these two. I've been using it to storage my personal files so I have access to them on both OS without using a cloud service or USB.

Everything has been running as planned, but then I just wanted to hide a folder from Windows and when I booted Fedora, all folders where locked, I managed to unlock them but when I again booted Windows to do some homework, then on Fedora everything blocked again, this time not the main folders but everything inside them.

Does anyone know how to fix this? After this I'll probably uninstall Windows, fuck ass OS now messing with my files.

Edit: here is what I tried

  • Fast startup alr disabled on Windows
  • Full control granted for all users on Windows as well
  • Please note: I'm able to write on my disk on Fedora without a problem, it's just that Windows is blocking everything that already exists within the drive

Edit: thank you, I decided to backup my files and format my disk. I'll keep Windows because of the University but I will change my workflow and use my drives only on Linux.

0 Upvotes

15 comments sorted by

3

u/Johnden_ EndeavourOS 11d ago

If both operating systems are on one drive, then sometimes Windows doesn't like what isn't Windows. Having them on seperate drives might work.

4

u/greyboy_59 11d ago

Another reason to just uninstall Windows

3

u/Johnden_ EndeavourOS 11d ago

It is quite peaceful without it, and I've learned not to push people too much into believing Windows is an unintuitive mess. Now I would say, use what you think is comfortable. If something is obtrusive, it's time to change.

2

u/greyboy_59 11d ago

If it's for me, I'd only use Linux because I love Linux, I don't have a beef with other OS but with this, I started to hate Windows a little bit lol

Edit: typo

3

u/DerAndi_DE 11d ago

Sounds like a permission problem. What file system did you use for that shared partition? I recommend not using NTFS, that can lead to such problems. Ext4 cannot be read by Windows. ExFAT is IMHO a good choice, it doesn't have permissions and supports large files.

2

u/greyboy_59 11d ago

I currently use NTFS, so I'll just backup my files to my USB and format the drive to ExFAT

5

u/nickh84 11d ago

If its something u depend on using in Linux. Dont use NTFS.

5

u/SDG_Den 11d ago

dont use NTFS on linux. the permission system isnt POSIX compatible and any NTFS support is basically there so you can get your data off.

any shared drive should be exfat, it's the only FS with proper support on both sides, though it still doesnt have permissions and has strict limitations.

3

u/eldoran89 11d ago

What do you mean by locked? I mean it's a well know issue that windows fucks up permissions for Linux....if you mean there is a lock on the file on a more basic level, the fast boot and similar would come to mind that might keep a handle on files even though windows is not bootet...

-1

u/greyboy_59 11d ago

Yeah my files are locked in a basic level, I managed to unlock my files in the morning but then they locked again. I didn't know this was a common issue as I'm a noob using Linux, but I'm learning on the way

1

u/vilhelmobandito 11d ago

I'm pretty sure there are several programs for windows, that allow you to read and copy ext4 files to your windows ntfs partition to modify them there. And then you can move back those files, one on linux.

2

u/n1x_cybersec 11d ago

There are. I haven't had a windows install in a long time, but I did use them when I first started dual-booting, and I don't remember having any issues. The two that I remember are

https://winstall.app/apps/AntimatterStudios.ext4-win-driver

https://github.com/bobranten/Ext4Fsd

1

u/MintAlone 11d ago

Win files read only to linux? Have you turned off fast start in win. Default is enabled, means it never really shuts down, it hibernates leaving its filesystems locked and read-only to linux.

1

u/SuAlfons 11d ago

Another reason why Windows resp. NTFS can be troublesome in connection with Linux is Windows using Hibernation - or more commonly Quick Start (Quick Boot, however. It's a kind of "Hibernation to the Login Screen" that Windows does to speed up booting.

This usually leaves the NTFS partition in an "unclean" state, meaning not marked for shutdown and file handles remaining open. This usially results in Windows complaining about files having been changed under its nose. But maybe it may also lockup files?

Anyway, I use NTFS successfully on several dual-boot home systems.
But

  • I use a secondary "D-Drive" partition for data sharing. I rarely touch the Windows System partition (C drive).
  • I disabled the Quick Boot function in the Windows system settings (not Fast Boot in UEFI/BIOS, that's something independent and unrelated and may be switched on if you don't have problems)
  • I use some special mounting options (fixed user, group) to use for sharing a ( a, not the) Steam Library. I have left the default Steam library under Linux in place, it acts as a home for the Proton structures which don't like to be residing on NTFS.

1

u/Royal-Wear-6437 11d ago

Have you disabled "Fast Boot" in Windows? If not, when you shut it down it actually hibernates and leaves the disks marked as in use.