Linux and dynamic disk

LDM — Logical Disk Manager (Dynamic Disks)¶

Originally Written by FlatCap — Richard Russon .

Anton Altaparmakov on 30 March 2007 for Windows Vista.

Overview¶

Windows 2000, XP, and Vista use a new partitioning scheme. It is a complete replacement for the MSDOS style partitions. It stores its information in a 1MiB journalled database at the end of the physical disk. The size of partitions is limited only by disk space. The maximum number of partitions is nearly 2000.

Any partitions created under the LDM are called «Dynamic Disks». There are no longer any primary or extended partitions. Normal MSDOS style partitions are now known as Basic Disks.

If you wish to use Spanned, Striped, Mirrored or RAID 5 Volumes, you must use Dynamic Disks. The journalling allows Windows to make changes to these partitions and filesystems without the need to reboot.

Once the LDM driver has divided up the disk, you can use the MD driver to assemble any multi-partition volumes, e.g. Stripes, RAID5.

To prevent legacy applications from repartitioning the disk, the LDM creates a dummy MSDOS partition containing one disk-sized partition. This is what is supported with the Linux LDM driver.

A newer approach that has been implemented with Vista is to put LDM on top of a GPT label disk. This is not supported by the Linux LDM driver yet.

Example¶

Below we have a 50MiB disk, divided into seven partitions.

The missing 1MiB at the end of the disk is where the LDM database is stored.

Источник

Dynamic disks

Dynamic disks, enabled by the Logical Disk Manager (LDM), is a technology for Microsoft Windows that is similar to LVM and mdadm.

General consideration for Linux usage

In general it is not recommended to convert the disk drive to host your Linux into a dynamic disk. This is because:

  • In a dynamic disk, an entire disk is put in a one, big partition. (More precisely, a GPT dynamic disk will have one big partition for data and the other, one small metadata partition. An MBR dynamic disk has a sole partition. See How Dynamic Disks and Volumes Work in microsoft.com.)
  • To turn a disk to a dynamic disk, all existing partitions have to be recognized by Windows — Linux partitions (ext4, btrfs, lvm, you name it) are out!
Читайте также:  Отключить файрвол linux mint

Probably the sole case you want to use dynamic disks is when you use RAID in Windows.

Dynamic disks cannot be used on removable disks, either.

Usual course

LVM and mdadm are the preferred tools under Arch Linux. However, if the system is being dual-booted with Windows, Windows will not be able to read these setups. The usual course then is to attempt to use fakeraid using dmraid or to use network storage. However, network storage retrieval will be capped to 1Gb/s (119MiB/s) and getting RAID drivers loaded on an existing Windows installation can be daunting (if not impossible) if the Windows OS partition is installed on a drive that is on the very controller that you want to switch from AHCI to RAID. Even if you have a spare AHCI controller card, your system may not have enough space to hold two Option ROMs.

Terminology

Read «spanned volume» of a dynamic disk as a «logical volume» in Linux LVM, and «striped volume» as RAID0.

Installing support for dynamic disks

Note: This tool will only give you the ability to read and write dynamic disks in Arch Linux. For all other tasks, you will have to use Windows’ Logical Disk Manager.

Install the libldm package. Once installed, ldmtool can be used to query and mount dynamic disks.

Mandatory preparation

To create device mappers, simply do:

This populates /dev/mapper with volumes under LDM. Once this is done, they become accessible in a usual manner, say by:

# mount -t ntfs /dev/mapper/LDM volume /mnt/mountpoint 

Other commands

To find what volumes a disk group contains:

# ldmtool show diskgroup diskgroup UUID 

To create individual device mappers:

# ldmtool create volume volume name 

To create device mappers for all volumes in a disk group:

# ldmtool create volume diskgroup UUID 

Systemd

To get dynamic disks to behave like filesystems natively supported by the Linux kernel, enable ldmtool.service .

Once this setup is complete, you can add entries to /etc/fstab that reference dynamic disk volumes and have those mounted like any other volume.

Читайте также:  One by wacom драйвера linux

See also

Источник

LDM — Logical Disk Manager (Dynamic Disks)¶

Originally Written by FlatCap — Richard Russon .

Anton Altaparmakov on 30 March 2007 for Windows Vista.

Overview¶

Windows 2000, XP, and Vista use a new partitioning scheme. It is a complete replacement for the MSDOS style partitions. It stores its information in a 1MiB journalled database at the end of the physical disk. The size of partitions is limited only by disk space. The maximum number of partitions is nearly 2000.

Any partitions created under the LDM are called «Dynamic Disks». There are no longer any primary or extended partitions. Normal MSDOS style partitions are now known as Basic Disks.

If you wish to use Spanned, Striped, Mirrored or RAID 5 Volumes, you must use Dynamic Disks. The journalling allows Windows to make changes to these partitions and filesystems without the need to reboot.

Once the LDM driver has divided up the disk, you can use the MD driver to assemble any multi-partition volumes, e.g. Stripes, RAID5.

To prevent legacy applications from repartitioning the disk, the LDM creates a dummy MSDOS partition containing one disk-sized partition. This is what is supported with the Linux LDM driver.

A newer approach that has been implemented with Vista is to put LDM on top of a GPT label disk. This is not supported by the Linux LDM driver yet.

Example¶

Below we have a 50MiB disk, divided into seven partitions.

The missing 1MiB at the end of the disk is where the LDM database is stored.

Источник

LDM — Logical Disk Manager (Dynamic Disks)¶

Originally Written by FlatCap — Richard Russon .

Anton Altaparmakov on 30 March 2007 for Windows Vista.

Overview¶

Windows 2000, XP, and Vista use a new partitioning scheme. It is a complete replacement for the MSDOS style partitions. It stores its information in a 1MiB journalled database at the end of the physical disk. The size of partitions is limited only by disk space. The maximum number of partitions is nearly 2000.

Any partitions created under the LDM are called “Dynamic Disks”. There are no longer any primary or extended partitions. Normal MSDOS style partitions are now known as Basic Disks.

If you wish to use Spanned, Striped, Mirrored or RAID 5 Volumes, you must use Dynamic Disks. The journalling allows Windows to make changes to these partitions and filesystems without the need to reboot.

Читайте также:  Astra linux версия libreoffice

Once the LDM driver has divided up the disk, you can use the MD driver to assemble any multi-partition volumes, e.g. Stripes, RAID5.

To prevent legacy applications from repartitioning the disk, the LDM creates a dummy MSDOS partition containing one disk-sized partition. This is what is supported with the Linux LDM driver.

A newer approach that has been implemented with Vista is to put LDM on top of a GPT label disk. This is not supported by the Linux LDM driver yet.

Example¶

Below we have a 50MiB disk, divided into seven partitions.

The missing 1MiB at the end of the disk is where the LDM database is stored.

Источник

LDM — Logical Disk Manager (Dynamic Disks)¶

Originally Written by FlatCap — Richard Russon .

Anton Altaparmakov on 30 March 2007 for Windows Vista.

Overview¶

Windows 2000, XP, and Vista use a new partitioning scheme. It is a complete replacement for the MSDOS style partitions. It stores its information in a 1MiB journalled database at the end of the physical disk. The size of partitions is limited only by disk space. The maximum number of partitions is nearly 2000.

Any partitions created under the LDM are called “Dynamic Disks”. There are no longer any primary or extended partitions. Normal MSDOS style partitions are now known as Basic Disks.

If you wish to use Spanned, Striped, Mirrored or RAID 5 Volumes, you must use Dynamic Disks. The journalling allows Windows to make changes to these partitions and filesystems without the need to reboot.

Once the LDM driver has divided up the disk, you can use the MD driver to assemble any multi-partition volumes, e.g. Stripes, RAID5.

To prevent legacy applications from repartitioning the disk, the LDM creates a dummy MSDOS partition containing one disk-sized partition. This is what is supported with the Linux LDM driver.

A newer approach that has been implemented with Vista is to put LDM on top of a GPT label disk. This is not supported by the Linux LDM driver yet.

Example¶

Below we have a 50MiB disk, divided into seven partitions.

The missing 1MiB at the end of the disk is where the LDM database is stored.

Источник

Оцените статью
Adblock
detector