Automatically mount NTFS volumes as read-only: Difference between revisions

From Pengwings
Created page with "Get NTFS volume UUID lsblk -f sudo mkdir /var/mnt/whatever sudo vim /etc/fstab UUID=NTFS_UUID_GOES_HERE /var/mnt/whatever ntfs defaults,ro,nofail 0 0 If the drive is a dynamic mirror you need to use ldmtool instead, see Using ldmtool to mount NTFS dynamic mirror"
 
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
This only works for simple volumes
Get NTFS volume UUID
Get NTFS volume UUID
  lsblk -f
  lsblk -f


Create mount point
  sudo mkdir /var/mnt/whatever
  sudo mkdir /var/mnt/whatever
Add to fstab
  sudo vim /etc/fstab
  sudo vim /etc/fstab


  UUID=NTFS_UUID_GOES_HERE /var/mnt/whatever ntfs defaults,ro,nofail 0 0
  UUID=NTFS_UUID_GOES_HERE /var/mnt/whatever ntfs defaults,ro,nofail 0 0


If the drive is a dynamic mirror you need to use ldmtool instead, see [[Using ldmtool to mount NTFS dynamic mirror]]
If the drive is a dynamic mirror you need to use ldmtool instead, if you use the above instructions you might corrupt the volume
 
See [[Using ldmtool to mount NTFS dynamic mirror]] for those instructions

Latest revision as of 17:04, 8 February 2026

This only works for simple volumes

Get NTFS volume UUID

lsblk -f

Create mount point

sudo mkdir /var/mnt/whatever

Add to fstab

sudo vim /etc/fstab
UUID=NTFS_UUID_GOES_HERE /var/mnt/whatever ntfs defaults,ro,nofail 0 0

If the drive is a dynamic mirror you need to use ldmtool instead, if you use the above instructions you might corrupt the volume

See Using ldmtool to mount NTFS dynamic mirror for those instructions