Other Managing LDM disks

i have a LDM disk created by windows as such
without geom_part_ldm module

zpool part.jpg

with geom_part_ldm module

now i need to create a new NTFS partition inside the LDM scheme not the MBR scheme but whenever i do
Code:
gpart add -t ntfs -s 629145600 ada0
it errors out as follow
1750857934592.png

i think that this is because gpart is still assuming the scheme to be MBR but i have no idea how to make it think that it is LDM indeed

there is another issue that is more weird and i have no idea what's happening related to it
that is whenever i kldload or unload geom_part_ldm, bsdisks crashes with segfault and a dumped core, that is not as interesting or weird as the fact that whenever bsdisks crashes as this, gpart says that the MBR geom with the ms-ldm-data partitions doesn't exist whenever i unload the geom_part_ldm module gpart says the ada0 geom doesn't exist, what could be causing this?
1750858418973.png
 
First, the support in FreeBSD for the LDM partitioning scheme is limited. Adding new partitions is not supported at all. Look in the source code in /usr/src/sys/geom/part/g_part_ldm.c, function g_part_ldm_add(). That's the function that handles gpart add.

there is another issue that is more weird and i have no idea what's happening related to it
that is whenever i kldload or unload geom_part_ldm, bsdisks crashes with segfault and a dumped core, that is not as interesting or weird as the fact that whenever bsdisks crashes as this, gpart says that the MBR geom with the ms-ldm-data partitions doesn't exist whenever i unload the geom_part_ldm module gpart says the ada0 geom doesn't exist, what could be causing this?
If bsdisks crashes, you should report that as a bug. Build bsdisks with debug info by setting WITH_DEBUG=yes when executing make install in the port's directory. Then, after bsdisks crashes, you can obtain a stack trace from the core file and include it in your problem report.

For the problem where gpart reports that geom ada0 is missing, you can obtain more information by executing gpart list at different times and comparing the output. You can also set the sysctl kern.geom.debugflags to 1 and look for messages that will appear on the console and in dmesg output.
 
Back
Top