{"id":93,"date":"2014-11-13T19:56:49","date_gmt":"2014-11-13T18:56:49","guid":{"rendered":"http:\/\/itso.dk\/?p=93"},"modified":"2015-12-13T23:50:22","modified_gmt":"2015-12-13T22:50:22","slug":"windows-dynamic-disk-in-arch","status":"publish","type":"post","link":"https:\/\/blog.itso.dk\/?p=93","title":{"rendered":"Windows Dynamic Disk and Systemd"},"content":{"rendered":"<p>If you are running Windows formatted dynamic disk, you will need to setup a tool to make that available in Linux: ldmtool<\/p>\n<p>For Arch users use this guide:<\/p>\n<p>ldmtool is in the AUR repo: <a href=\"https:\/\/aur.archlinux.org\/packages\/ldmtool\" target=\"_blank\">ldmtool<\/a><\/p>\n<p>You need to install gtk-doc and json-glib via pacman<\/p>\n<pre>sudo pacman -S gtk-doc json-glib<\/pre>\n<p>now you can download, extract and compile ldmtool<\/p>\n<pre>wget https:\/\/aur.archlinux.org\/packages\/ld\/ldmtool\/ldmtool.tar.gz\r\n tar -xvf ldmtool.tar.gz\r\n cd ldmtool\r\n makepkg -si\r\n\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p>For Fedora uses, the package:\u00a0<span style=\"font-weight: 400;\">libldm has to be installed.<\/span><\/p>\n<pre>sudo dnf install libldm<\/pre>\n<p>&nbsp;<\/p>\n<p>Now that you have got ldmtool installed, find you disk\/array with by scanning:<\/p>\n<pre>sudo ldmtool scan\r\nsudo ldmtool show diskgroup 2a343e-6790-11e4-8266-fd555999 (replace with own group id)\r\nsudo ldmtool create all<\/pre>\n<p>Now open your filebrowser and enjoy your newly found drive<\/p>\n<p>To enable this action on bootup create this script:<\/p>\n<p>\/etc\/systemd\/system\/ldmtool.service<\/p>\n<pre>[Unit]\r\nDescription= Windows Dynamic Disk LDMtool\r\nAfter=network.target\r\n[Service]\r\nType=forking\r\nUser=root\r\nExecStart=\/usr\/local\/bin\/ldmtool create all\r\n[Install]\r\nWantedBy=multi-user.target<\/pre>\n<p>Enable script at next boot with the command:<\/p>\n<pre>sudo systemctl enable ldmtool.service\r\n\r\n<\/pre>\n<p>\/etc\/systemd\/system\/mounts.service<\/p>\n<pre>[Unit]\r\nDescription= Windows Dynamic Disk Mounter\r\nAfter=network.target\r\n[Service]\r\nType=forking\r\nUser=thor\r\nExecStart=\/home\/thor\/.config\/fsmount.sh\r\n[Install]\r\nWantedBy=multi-user.target<\/pre>\n<pre>sudo systemctl enable mounts.service<\/pre>\n<p>Create a shell script with actual command to enable desired mounts.<\/p>\n<p>&nbsp;<\/p>\n<p>\/home\/thor\/.config\/fsmount.sh<\/p>\n<pre>#!\/usr\/bin\/sh\r\n\r\nsudo ntfs-3g \/dev\/disk\/by-label\/Gamedisk \/home\/thor\/Gamedisk<\/pre>\n<p>Add lines with the desired disk-label ids, without being prompted for password.<\/p>\n<pre>nano \/etc\/sudoers\r\n\r\nthor ALL= (root) NOPASSWD: \/usr\/bin\/ntfs-3g \/dev\/disk\/by-label\/Gamedisk \/home\/thor\/Gamedisk\r\n\r\n\r\n\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>If you are running Windows formatted dynamic disk, you will need to setup a tool to make that available in Linux: ldmtool For Arch users use this guide: ldmtool is in the AUR repo: ldmtool You need to install gtk-doc and json-glib via pacman sudo pacman -S gtk-doc json-glib now you can download, extract and &#8230;<\/p>\n<p><a href=\"https:\/\/blog.itso.dk\/?p=93\" class=\"more-link\">Continue reading &lsquo;Windows Dynamic Disk and Systemd&rsquo; &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":156,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8,2],"tags":[],"class_list":["post-93","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux-tip","category-windows-tip"],"_links":{"self":[{"href":"https:\/\/blog.itso.dk\/index.php?rest_route=\/wp\/v2\/posts\/93","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.itso.dk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.itso.dk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.itso.dk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.itso.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=93"}],"version-history":[{"count":12,"href":"https:\/\/blog.itso.dk\/index.php?rest_route=\/wp\/v2\/posts\/93\/revisions"}],"predecessor-version":[{"id":266,"href":"https:\/\/blog.itso.dk\/index.php?rest_route=\/wp\/v2\/posts\/93\/revisions\/266"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.itso.dk\/index.php?rest_route=\/wp\/v2\/media\/156"}],"wp:attachment":[{"href":"https:\/\/blog.itso.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=93"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.itso.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=93"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.itso.dk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=93"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}