Skip to content

mounting from readonly media fails #1835

Description

@My1

When using Veracrypt on read-only media it fails.

Expected behavior

it mounts as read only

Observed behavior

device-mapper: reload ioctl on veracrypt1 failed: Read-only file system
Command failed

Steps to reproduce

  1. 1 make a veracrypt volume on a medium you can prevent writing from (I have a Veracrypt partition on an RDX drive with a write protect switch, an SD card, or a microSD in an SD Adapter should also work if the reader checks for the write protect switch)
  2. safely unmount, eject etc.
  3. turn on write protect
  4. insert into the system
  5. try mounting in veracrypt

Screenshots

Image

Your Environment

Please tell us more about your environment

VeraCrypt version: 1.26.29

Operating system and version: Kubuntu 24.04

System type: x86-64

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions