Disk write error due to read-only filesystem

a year ago by biofaust to c/linux_gaming

Disclaimer: I am very new to Linux (1 week).

I have installed the Valve version of Steam on LMDE6. I have used Disks to automatically mount the NTFS drive I used with Windows (doesn't hold bootloader, it is just for Steam library storage) at boot ( /media/[username]/Gaming ) and I made it the default library folder in Steam.

Running games works perfectly (actually, performance is surprisingly good), but I cannot install them due to a "disk write error".

I looked for solutions and found this page, from which I understand that I need to change permissions to the mounting point, but when I do, using chown -R, I get a "Read-only filesystem" error for all files and folders.

I can see no options to fix this in Disks and I tried to edit fstab once, but it messed things up so badly I had to use the USB drive with the portable installer to fix things.

load all comments
Drathro 13 points a year ago

This might be due to windows hibernation behavior. When you shut down windows 10 and 11, it actually hibernates the drive instead of a full shutdown. You can disable it by turning off "fast startup" option(s). I haven't had to do it in a while so I can't recall exactly where the option lives. Hibernated drives get marked to prevent writing to them as it may corrupt the windows install.

path: 0 16633477, hotness: undefined, score: 13, children: 6
tal 6 points a year ago

Oh, yeah, $ man mount.ntfs mentions that:

  Windows hibernation and fast restarting
   On computers which  can  be  dual-booted  into  Windows  or
   Linux,  Windows  has  to  be fully shut down before booting
   into Linux, otherwise the NTFS  file  systems  on  internal
   disks may be left in an inconsistent state and changes made
   by Linux may be ignored by Windows.

   So,  Windows  may  not be left in hibernation when starting
   Linux, in order to  avoid  inconsistencies.  Moreover,  the
   fast  restart  feature  available on recent Windows systems
   has to be disabled. This can be achieved by issuing  as  an
   Administrator  the  Windows command which disables both hi‐
   bernation and fast restarting :

          powercfg /h off

   If either Windows is hibernated or its fast restart is  en‐
   abled,  partitions  on  internal  disks  are  forced  to be
   mounted in read-only mode.

And then:

   remove_hiberfile
          When the NTFS volume  is  hibernated,  a  read-write
          mount is denied and a read-only mount is forced. One
          needs either to resume Windows and shutdown it prop‐
          erly,  or use this option which will remove the Win‐
          dows hibernation file. Please note, this means  that
          the  saved  Windows session will be completely lost.
          Use this option under your own responsibility.

Good catch. If you're right about this being the cause, then my suggestion above about mounting read-write will probably just result in another read-only mount (though I bet that mount.ntfs will print something about a read-only mount being forced in the console).

Good odds that OP just needs to fully shut down Windows, rather than suspending it.

path: 0 16633477 16633810, hotness: undefined, score: 6, children: 2
Hawke 1 point a year ago

What’s with that disaster of colorized text?

path: 0 16633477 16633810 16634604, hotness: undefined, score: 1, children: 1
biofaust 2 points a year ago

I am going to specify in the body of the post that this is a drive I used as library drive only for Steam, it is not the one holding the Windows boot.

Would that change things?

path: 0 16633477 16633570, hotness: undefined, score: 2, children: 2
tal 3 points a year ago

I haven't run into this myself, but from the mount.ntfs man page snippet I listed below, it doesn't sound like it; it references "partitions", so I don't think that it's just the system partition in Windows that's affected.

path: 0 16633477 16633570 16634025, hotness: undefined, score: 3, children: 0
mvirts 2 points a year ago path: 0 16633477 16633570 16647763, hotness: undefined, score: 2, children: 0
linux_gaming
linux_gaming

@lemmy.world

login for more options
28034
2639
2673

Discussions and news about gaming on the GNU/Linux family of operating systems (including the Steam Deck). Potentially a $HOME away from home for disgruntled /r/linux_gaming denizens of the redditarian demesne.

This page can be subscribed to via RSS.

Original /r/linux_gaming pengwing by uoou.

No memes/shitposts/low-effort posts, please.

That includes posts generated by LLMs. It doesn’t matter if you “don’t have the time” or “would’ve written the same anyway”, or if “everyone’s doing it geez get with the times”.

For now it’ll also include “AI”-assisted projects that haven't had at least two months of (public, verifiable) dev time behind them.

Resources

Help:

Launchers/Game Library Managers:

General:

Discord:

IRC:

Matrix:

Telegram:

go to feed...