22
submitted 3 days ago* (last edited 3 days ago) by HaraldvonBlauzahn@feddit.org to c/linux@lemmy.ml

Short answer is: yes, as soon as more than one OS mounts a file system in read-write mode.

The kernel of a modern OS (I am generously including Windows here) caches file system data structures in memory. When you hibernate the computer, the content of that memory is written into a large file because that speeds-up a later restart.

Now, if you boot up another OS, and modify these partitions (without mounting them read-only), you alter the file systems data structures. That happens already when you view folders because this modifies access times stored in the inodes.

When you now shut down the second OS, and resume the first OS, the restarted kernel will have and use cached file system metadata which id loaded from the image into the kernel, that does not match that of the files on disk. And this causes file system corruption by definition.

top 5 comments
sorted by: hot top controversial new old
[-] RoadTrain@lemdro.id 7 points 3 days ago

So, in fact, the short answer is no.

The answer is only yes if the question is “Hibernating and booting into another OS and modifying the same partition externally: will my filesystems be corrupted?”.

[-] HaraldvonBlauzahn@feddit.org 2 points 3 days ago* (last edited 3 days ago)

As I wrote above, for any safe access the file systems need to be mounted read-only (which is not the default). Otherwise, listing or viewing a file or directory already changes its metadata.

[-] Cyber@feddit.uk 1 points 3 days ago

noatime would help here

[-] HaraldvonBlauzahn@feddit.org 5 points 3 days ago* (last edited 3 days ago)

And, this is another reason to use virtual machines, like GNOME Boxes or virt-manager. Put your sweet little Windows sleeping beauty in a VM so that it wakes up without scratches.

[-] HaraldvonBlauzahn@feddit.org 5 points 3 days ago

The other solution is to mount the shared, or borrowed file systems read-only. That works and is safe, but it could suck after a while for being impractical.

this post was submitted on 02 Aug 2025
22 points (100.0% liked)

Linux

57021 readers
545 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 6 years ago
MODERATORS