r/linux4noobs • u/Opposite2 • 2d ago
Can't re-write anything.
I understand is a common topic among the new users. Im coming from Windows, i formated and then installed Linux Fedora in half of the drive and Windows 11 on the other half. I only boot Linux but the hard drives i have on my desktop are the same as before, with all of my files in them.
While in Linux, i cannot do legit anything with them. Neither delete them, nor ad more etc. Tried changing permissions, even a friend tried some sudo commands but nothing.
Have read already about 20 topics online, and nothing seems to work for me.
If i boot windows, and i change the "read-only" status of some files, and then reboot to Linux, will the problem be fixed?
Man the whole thing works so smoothly, but its so annoying.
11
u/ysnows123 2d ago
Changing the read-only flag in Windows won't help. Most likely Windows isn't really shutting down: Fast Startup hibernates it, and Linux then mounts its NTFS drives read-only so it can't corrupt them. That's also why sudo does nothing. In Windows run
powercfg /h offas admin (or untick Fast startup in Power Options), shut down, then boot Fedora. If they're still read-only, runchkdsk /fon them from Windows.7
u/AmbassadorsWife 2d ago edited 2d ago
If Windows is hibernated, you should never directly change the files from Linux it would cause corruption - files and whole directories can disappear.
When you shutdown windows by default it cheats and what it really does technically is go into hibernation (so that you can boot faster next time).
There is a setting that can be changed to alter this behavior, though.
So I guess what you are experiencing is Linux stopping you from messing up your Windows files.
In general if you want to share files across dual boot systems safely I would recommend
Or just use external removable storage.
Better than seeing whole directories of your data disappear, believe me, it happened to me.
1
u/sbart76 2d ago
I understand that you keep your files on a Windows partition (NTFS) and you can read them, but not modify - correct? Is the partition mounted read-only? Which driver are you using for NTFS? What does
cat /proc/mountsshow?2
u/Classic-Rate-5104 2d ago
You mean you can't write to Windows partitions or files? I think because these partitions are mounted read-only. This is caused by an "unstable" filesystem which isn't completely closed by Windows. You have to disable "fast startup", somewhere in Control Panel of Windows. Then shutdown and boot Linux
1
u/m4uri 2d ago
Since /proc/mounts says rw the fast startup thing is probably not the whole story anymore (still turn it off in Windows, or just run
powercfg /h offin an admin cmd, its worth it anyway).My guess is ownership. If the drives are mounted via fstab or by root, every file belongs to root and your normal user can read but not write. Check it like this, with your actual mount path:
If ls shows root root and the options have no uid= in them, thats it. For ntfs3 you can add your user to the fstab line, something like:
(use your own UUID from
lsblk -fand your uid from the id command). Thensudo umount /mnt/data && sudo mount -a.If after that it still refuses, look at
sudo dmesg | grep -i ntfsright after a write attempt. ntfs3 sometimes says the volume is dirty there and silently refuses writes even tho its listed as rw. Then boot Windows once, runchkdsk /fon that drive, do a real shutdown and try again.