It depends on the ransomware and in general as long as device is accessible and you could copy and paste, they could get infected with ransomware.
To protect Windows 10 or Windows 11, you may use Controlled Folder Access, have a look at:
https://answers.microsoft.com/en-us/protect/forum/all/ransomware-protection-how-to-use-controlled-folder/006bf873-caec-43be-966f-996bb5fafb04
In addition, you have to make sure update your Anti-Malware.
Running regular backup is also a good practice.
As for the USB device, you may make it read-only or protect it with password.
However, if the device is infected when you remove the read-only or enter the password, it will be infected.
So backup is best strategy, so if there is infection you could just format and restore backup.
unmounted the partition can prevent infection with ransomware virus
unmounted the partition can prevent infection with ransomware virus?
For example, a USB flash drive, With command : mountvol /d
2 answers
Sort by: Most helpful
-
Reza-Ameri 16,961 Reputation points
2022-09-19T16:31:36.84+00:00 -
Limitless Technology 44,221 Reputation points
2022-09-21T15:18:22.937+00:00 Hello there,
There is no practical answer to this. It all depends on how good the malware was designed.
Some are just as basic as encrypting basic documents, some go as deep as disabling any methods of back-up and restore and accessing the disk in a more advanced manner.Ransomware does not take data out, but makes it inaccessible (in theory temporarily). What a piece of ransomware encrypts depends on a particular software, so a generalization is impossible
------------------------------------------------------------------------------------------------------------------------
--If the reply is helpful, please Upvote and Accept it as an answer--