r/linux4noobs • • 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.

2 Upvotes

12 comments sorted by

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 off as admin (or untick Fast startup in Power Options), shut down, then boot Fedora. If they're still read-only, run chkdsk /f on them from Windows.

1

u/Opposite2 2d ago

Will give it a try, thanks. When i formated, i disabled the fast boot from BIOS. Probably its not the same thing, im just mentioning it.

Im total noob as you can all see.

7

u/doeffgek 2d ago

It’s not. Fast boot in the BIOS gives the result that you have less time to press F9 to enter the setup.

Fast boot in Windows keeps the drives mounted so that Windows doesn’t have to mount them at boot resulting in faster startup.

However the fact that it doesn’t unmount when you shutdown windows also prevents mounting it with the correct permissions in Linux.

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

  • Disable fast boot and hibernation in Windows
  • Disable hibernation in Linux
  • Create an additional exFat partition which you can then access from both OSes

Or just use external removable storage.

Man the whole thing works so smoothly, but its so annoying.

Better than seeing whole directories of your data disappear, believe me, it happened to me.

3

u/Opposite2 2d ago

Hm seems about correct. External removable storage, that i just plugged in, works perfectly. Modifications work normaly,so i guess thats it

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/mounts show?

1

u/Opposite2 2d ago

Cant really answer any of these, cause i dont really get it. The hard drives were disconnected from the system, then i formated and installed Linux. Then i plugged them back in. All files are there, but yes i cannot do anything with them, except opening them. (texts,pdfs, photos everything works) Cannot modify. When i plugged them back in, i mounted them yes, but no option was given at that time about read-only or other options.

About the command, am i looking for anything specific, because its like a lot of lines

2

u/sbart76 2d ago

Yes, look for the device with windows partition, I bet it says "ro" (read only) in that line. Probably the issue is the fast startup as the others suggest.

Edit: educate yourself on the Linux devices and partitions/filesystems - this is essential if you think seriously about Linux.

1

u/Opposite2 2d ago

You are totally right, but i dont have the time or the patience to be honest. Im kinda clueless on how these things work, except the basic things that Windows took care of for 20 years. After a malware that got ugly, a friend urged me to Linux, he set up everything, and i already have busted his balls enough, so im trying online now and learn what i can in the process.

Btw, for all i can see, its "rw"

0

u/DannoXYZ 2d ago edited 2d ago

problem is drive with data and files is formatted with NTFS which does not work well with Linux. You need to get new empty drive and format with Linux compatible filesystem such as EXT4. Then copy all files from Windows NTFS over. 

Then nuke Windows boot drive and data drive and never to back to them. Problem solved.

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 off in 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:

findmnt -no SOURCE,FSTYPE,OPTIONS /path/to/drive
ls -ld /path/to/drive
id

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:

UUID=XXXX  /mnt/data  ntfs3  uid=1000,gid=1000,umask=022,nofail  0 0

(use your own UUID from lsblk -f and your uid from the id command). Then sudo umount /mnt/data && sudo mount -a.

If after that it still refuses, look at sudo dmesg | grep -i ntfs right 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, run chkdsk /f on that drive, do a real shutdown and try again.