<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://pengwings.theleruby.com/index.php?action=history&amp;feed=atom&amp;title=Using_ldmtool_to_mount_NTFS_dynamic_mirror</id>
	<title>Using ldmtool to mount NTFS dynamic mirror - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://pengwings.theleruby.com/index.php?action=history&amp;feed=atom&amp;title=Using_ldmtool_to_mount_NTFS_dynamic_mirror"/>
	<link rel="alternate" type="text/html" href="https://pengwings.theleruby.com/index.php?title=Using_ldmtool_to_mount_NTFS_dynamic_mirror&amp;action=history"/>
	<updated>2026-05-14T18:11:04Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.6</generator>
	<entry>
		<id>https://pengwings.theleruby.com/index.php?title=Using_ldmtool_to_mount_NTFS_dynamic_mirror&amp;diff=35&amp;oldid=prev</id>
		<title>Theleruby at 17:03, 8 February 2026</title>
		<link rel="alternate" type="text/html" href="https://pengwings.theleruby.com/index.php?title=Using_ldmtool_to_mount_NTFS_dynamic_mirror&amp;diff=35&amp;oldid=prev"/>
		<updated>2026-02-08T17:03:04Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en-GB&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 17:03, 8 February 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l51&quot;&gt;Line 51:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 51:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;However, if ldmtool doesn&amp;#039;t run for some reason, the UUID link of the NTFS UUID instead points at one of the volume subparts. This would result in Linux trying to mount that subpart instead, which might result in corruption of the array. Using the LDM volume ID as documented above is much safer and results in the mount silently failing if ldmtool fails to run rather than the volume potentially being corrupted.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;However, if ldmtool doesn&amp;#039;t run for some reason, the UUID link of the NTFS UUID instead points at one of the volume subparts. This would result in Linux trying to mount that subpart instead, which might result in corruption of the array. Using the LDM volume ID as documented above is much safer and results in the mount silently failing if ldmtool fails to run rather than the volume potentially being corrupted.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;==== Known issues ====&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;* Dolphin shows unmount icon against LDM volumes for some reason (not sure how to fix this)&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key wiki:diff:1.41:old-20:rev-35:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Theleruby</name></author>
	</entry>
	<entry>
		<id>https://pengwings.theleruby.com/index.php?title=Using_ldmtool_to_mount_NTFS_dynamic_mirror&amp;diff=20&amp;oldid=prev</id>
		<title>Theleruby at 16:54, 8 February 2026</title>
		<link rel="alternate" type="text/html" href="https://pengwings.theleruby.com/index.php?title=Using_ldmtool_to_mount_NTFS_dynamic_mirror&amp;diff=20&amp;oldid=prev"/>
		<updated>2026-02-08T16:54:53Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en-GB&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 16:54, 8 February 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l29&quot;&gt;Line 29:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 29:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  sudo mkdir /var/mnt/whatever&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  sudo mkdir /var/mnt/whatever&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Add to /etc/fstab to mount readonly&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Add to /etc/fstab to mount readonly&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; sudo vim /etc/fstab&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  /dev/disk/by-id/dm-uuid-LDM-Volume1-LDM_UUID_GOES_HERE /var/mnt/whatever ntfs defaults,ro,nofail 0 0&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  /dev/disk/by-id/dm-uuid-LDM-Volume1-LDM_UUID_GOES_HERE /var/mnt/whatever ntfs defaults,ro,nofail 0 0&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Test mount to make sure it&amp;#039;s valid&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Test mount to make sure it&amp;#039;s valid&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key wiki:diff:1.41:old-14:rev-20:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Theleruby</name></author>
	</entry>
	<entry>
		<id>https://pengwings.theleruby.com/index.php?title=Using_ldmtool_to_mount_NTFS_dynamic_mirror&amp;diff=14&amp;oldid=prev</id>
		<title>Theleruby: Created page with &quot;How to do a read-only automatic fstab mount of an NTFS dynamic mirrored volume in Linux:  ==== Add ldm service to automatically create /dev/mapper for dynamic volumes ====  sudo vim /etc/systemd/system/ldm.service   [Unit]  Description=ldmtool  After=network.target    [Service]  Type=forking  User=root  ExecStart=/usr/bin/ldmtool create all  Restart=on-failure    [Install]  WantedBy=multi-user.target  Now you need to reboot  systemctl reboot  ==== Automatic mounting ====...&quot;</title>
		<link rel="alternate" type="text/html" href="https://pengwings.theleruby.com/index.php?title=Using_ldmtool_to_mount_NTFS_dynamic_mirror&amp;diff=14&amp;oldid=prev"/>
		<updated>2026-02-08T16:46:38Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;How to do a read-only automatic fstab mount of an NTFS dynamic mirrored volume in Linux:  ==== Add ldm service to automatically create /dev/mapper for dynamic volumes ====  sudo vim /etc/systemd/system/ldm.service   [Unit]  Description=ldmtool  After=network.target    [Service]  Type=forking  User=root  ExecStart=/usr/bin/ldmtool create all  Restart=on-failure    [Install]  WantedBy=multi-user.target  Now you need to reboot  systemctl reboot  ==== Automatic mounting ====...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;How to do a read-only automatic fstab mount of an NTFS dynamic mirrored volume in Linux:&lt;br /&gt;
&lt;br /&gt;
==== Add ldm service to automatically create /dev/mapper for dynamic volumes ====&lt;br /&gt;
 sudo vim /etc/systemd/system/ldm.service&lt;br /&gt;
&lt;br /&gt;
 [Unit]&lt;br /&gt;
 Description=ldmtool&lt;br /&gt;
 After=network.target&lt;br /&gt;
 &lt;br /&gt;
 [Service]&lt;br /&gt;
 Type=forking&lt;br /&gt;
 User=root&lt;br /&gt;
 ExecStart=/usr/bin/ldmtool create all&lt;br /&gt;
 Restart=on-failure&lt;br /&gt;
 &lt;br /&gt;
 [Install]&lt;br /&gt;
 WantedBy=multi-user.target&lt;br /&gt;
&lt;br /&gt;
Now you need to reboot&lt;br /&gt;
 systemctl reboot&lt;br /&gt;
&lt;br /&gt;
==== Automatic mounting ====&lt;br /&gt;
Find the UUID of the dynamic volume using ldmtool&lt;br /&gt;
 sudo ldmtool scan&lt;br /&gt;
Find the dev mapper ID of the volume, it should be dm-uuid-LDM-Volume1-LDM_UUID_GOES_HERE, where the UUID should be the same as the one we already identified, might as well double check though&lt;br /&gt;
 cd /dev/disk/by-id/&lt;br /&gt;
 ls -alF&lt;br /&gt;
Create mount directory&lt;br /&gt;
 sudo mkdir /var/mnt/whatever&lt;br /&gt;
Add to /etc/fstab to mount readonly&lt;br /&gt;
 /dev/disk/by-id/dm-uuid-LDM-Volume1-LDM_UUID_GOES_HERE /var/mnt/whatever ntfs defaults,ro,nofail 0 0&lt;br /&gt;
Test mount to make sure it&amp;#039;s valid&lt;br /&gt;
 sudo mount -a&lt;br /&gt;
If it&amp;#039;s valid then it should be remounted upon reboot due to fstab entry&lt;br /&gt;
&lt;br /&gt;
==== Stop the subportions of the array from appearing in udisks drive list ====&lt;br /&gt;
If you don&amp;#039;t do this then the volume subparts get listed in any program that asks udisks for a list of disks. Dolphin, LibreOffice, possibly other tools. Clicking them tries to mount the individual volume subportion which is undesired and might cause corruption of the array. It seems safer to create a udev rule which blocks the subparts from appearing in the udisks drive list, so they don&amp;#039;t appear on the GUI anywhere.&lt;br /&gt;
&lt;br /&gt;
Find the UUID of the NTFS volume using lsblk&lt;br /&gt;
 lsblk -f&lt;br /&gt;
Create hide partition udev rules file, replace the IDs as appropriate&lt;br /&gt;
 sudo vim /etc/udev/rules.d/99-hide-partitions.rules&lt;br /&gt;
&lt;br /&gt;
 SUBSYSTEM==&amp;quot;block&amp;quot;, ENV{ID_FS_UUID}==&amp;quot;NTFS_UUID_GOES_HERE&amp;quot;, ENV{UDISKS_IGNORE}=&amp;quot;1&amp;quot;&lt;br /&gt;
 SUBSYSTEM==&amp;quot;block&amp;quot;, ENV{DM_UUID}==&amp;quot;LDM-Volume1-LDM_UUID_GOES_HERE&amp;quot;, ENV{UDISKS_IGNORE}=&amp;quot;0&amp;quot;&lt;br /&gt;
&lt;br /&gt;
==== Important: do not add volume into fstab by NTFS UUID ====&lt;br /&gt;
If ldmtool does run, the UUID of the NTFS volume is pointed at the ldm /dev/mapper/ which works, so sometimes people do this.&lt;br /&gt;
&lt;br /&gt;
However, if ldmtool doesn&amp;#039;t run for some reason, the UUID link of the NTFS UUID instead points at one of the volume subparts. This would result in Linux trying to mount that subpart instead, which might result in corruption of the array. Using the LDM volume ID as documented above is much safer and results in the mount silently failing if ldmtool fails to run rather than the volume potentially being corrupted.&lt;/div&gt;</summary>
		<author><name>Theleruby</name></author>
	</entry>
</feed>