r/linuxquestions • • 27d ago

Support Dual boot Bazzite and Windows. Windows drive turned read only recently when accessing from Bazzite.

I can use 'Open as Administrator' from the right click menu to change them, but I previously didn't have to do that.

I noticed this issue when qBittorrent couldn't write to the drive. I used 'Open as Adminstrator' to change the permissions in the folder to 'Can View & Modify Content'. But any new files from windows will go back to read only.

No idea why this randomly happened.

Solved: Using Disks. Added the lines 'uid=1000,gid=1000' to mount options. Full line looks like this 'nosuid,nodev,nofail,x-gvfs-show,uid=1000,gid=1000'

6 Upvotes

9 comments sorted by

2

u/MrFantasma60 27d ago

Boot to Windows and check the partition for errors. System errors in Windows put it in read only mode to prevent damage.

After that, disable Fast Startup.

Fast startup causes that when you shut down Windows, it doesn't fully shutdown, but goes into a kind of hibernation. In that state, it's read only, otherwise writing to the partition would damage the file system. 

Check here how to disable Fast Startup:

https://www.windowscentral.com/software-apps/windows-11/how-to-enable-or-disable-fast-startup-on-windows-11

1

u/Rose-mary95 27d ago

I've tried that, windows says no errors and fast startup was already off.

1

u/MrFantasma60 27d ago

I think I misunderstood your post.

Is the whole Windows partition read only? Or specific folders?  Can you write to the partition at all? 

Keep in mind that Linux has no effect on NTFS permissions, so if there are any specific folders that are read only, you have to change that from within Windows. 

However, it seems that what is happening is that the Windows partition is being mounted as root, instead of as your user. Where is it being mounted? 

Finally, this may sound silly but, have you rebooted Windows? As in boot to it, then reboot, before shutting down? With Fast Startup disabled, this shouldn't matter, but Windows is dumb at times. 

1

u/Rose-mary95 27d ago

If right click and go into properties for the ntfs files. Under Ownership User: root and Group: root.
I can change those files if i right click then use open as administrator.

1

u/MrFantasma60 27d ago

So that is what is happening, the Windows partition is being mounted as root.

That can be changed, but I'll have to defer to someone who knows Linux deeper than me, I'm not sure how it's done. Particularly in Bazzite.
I thought that was done in fstab, but I'm running KDE Neon, and my Windows partition mounts under my user automatically when I mount it from Dolphin. And I have nothing in fstab.

I'm sure someone will give you the answer.
Good luck!

2

u/DrDesperate 27d ago

Since Windows reports no errors and Fast Startup is already off, first distinguish a read-only mount from a permissions-display issue: findmnt -T /path/to/folder -o TARGET,FSTYPE,OPTIONS will show whether Linux mounted it ro or rw. If it's ro, check the kernel journal for NTFS/ntfs3 errors before trying more permission changes. If it's rw, compare the mount's UID/GID options with the user running qBittorrent, since NTFS permissions changed in a file manager may not persist like ordinary Linux permissions.

1

u/Rose-mary95 27d ago

Where do i type findmnt -T /path/to/folder -o TARGET,FSTYPE,OPTIONS ? Do i just open the terminal from the task bar?

Also i was mistaken about qBittorent. Only new files that come from windows go back being read only.

1

u/DrDesperate 27d ago

yep, the terminal is the right place. open it from the app menu (or the taskbar if there’s a terminal icon), then replace /path/to/folder with the Linux path to a folder on that Windows drive. the command only reads mount info, it won’t change anything.

0

u/angelicWhirr 27d ago

you're speaking a whole different language here, kinda impressive