Windows dynamische Laufwerke

Under Windows I have grouped several drives to one big “dynamic drive”. To be able to access it under Linux, you have to install the package “ldmtool”.


sudo apt install -y ldmtool

Afterwards you need to create a service for it:


sudo bash -c "cat > /etc/systemd/system/ldmtool.service" <<'EOF'

[Unit] 
Description=Logical Disk Manager
Before=local-fs-pre.target
DefaultDependencies=no

[Service]
Type=forking
User=root
ExecStart=/usr/bin/ldmtool create all

[Install]
WantedBy=multi-user.target
EOF

Then you need to activate the service:


sudo systemctl daemon-reload
sudo systemctl enable --now ldmtool.service

You can find out the name of the drive with the command:


lsblk | grep ldm_vol

In my case that is ldm_vol_RECHNERNAME-Dg0_Volume1

To finally mount the drive, use the following service:


sudo bash -c "cat > /etc/systemd/system/media-ldm.mount" <<'EOF'
[Unit]
Description=Mount local drive "ldm" (/media/ldm)
After=ldmtool.service

[Mount]
What=/dev/mapper/<LAUFWERKSBEZEICHNUNG>
Where=/media/ldm
Type=ntfs
Options=defaults,rw,fmask=133,dmask=022,noatime,uid=1000,gid=1000
TimeoutSec=60

[Install]
WantedBy=multi-user.target
EOF

sudo systemctl daemon-reload
sudo systemctl enable --now media-ldm.mount

Quellen: