How to mount LDM partitions on Bazzite?

How to mount LDM partitions on Bazzite?

I’ve always used command sudo ldmtool create all but on Bazzite it doesn’t work.
I don’t know how to install ldmtool on this system.

Is this what you are looking for?

$ sudo dnf info libldm
Updating and loading repositories:
Repositories loaded.
Available packages
Name           : libldm
Epoch          : 0
Version        : 0.2.4
Release        : 16.fc41
Architecture   : i686
Download size  : 57.8 KiB
Installed size : 131.1 KiB
Source         : libldm-0.2.4-16.fc41.src.rpm
Repository     : fedora
Summary        : A tool to manage Windows dynamic disks
URL            : https://github.com/mdbooth/libldm
License        : LGPLv3+ and GPLv3+
Description    : libldm is a library for managing Microsoft Windows dynamic disks, which use
               : Microsoft's LDM metadata. It can inspect them, and also create and remove
               : device-mapper block devices which can be mounted. It includes ldmtool, which
               : exposes this functionality as a command-line tool.
               : 
               : libldm is released under LGPLv3+. ldmtool is released under GPLv3+.
Vendor         : Fedora Project

If so, create a distrobox and export the tool to your host - perhaps in the $HOME/bin dir which should already be in your PATH. You may need to create that dir if it does not exist.

You should be able to use the BoxBuddy app that is pre-installed to help. I am not familiar with it as I have gotten used to editing distrobox.ini manually.

The important things in it to solve your problem are:

  • use a Fedora base image (or adjust the paths below)
  • additional_packages=“libldm”
  • exported_bins=“/usr/bin/ldmtool”
  • exported_bins_path=“/var/home/YOUR_USER/bin”

and assemble the distrobox. As you run into other software just add to the additional_packages and exported_bins entries as appropriate.

It will place a proxy script at ~/bin/ldmtool for example - that will allow you to call it from the host. The script will “use” the binary in the container - so keep it running.

Hopefully that will get you started.

In general, the idiomatic ways to install software on Universal Blue offerings are:

  • Flatpak (via Software store typically)
  • brew (for cli utilities) - I checked; brew search ldm produced nothing useful that I could see.
  • distrobox (easiest) or other container tech.

Please see: