ldm.txt 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. LDM - Logical Disk Manager (Dynamic Disks)
  2. ------------------------------------------
  3. Originally Written by FlatCap - Richard Russon <ldm@flatcap.org>.
  4. Last Updated by Anton Altaparmakov on 30 March 2007 for Windows Vista.
  5. Overview
  6. --------
  7. Windows 2000, XP, and Vista use a new partitioning scheme. It is a complete
  8. replacement for the MSDOS style partitions. It stores its information in a
  9. 1MiB journalled database at the end of the physical disk. The size of
  10. partitions is limited only by disk space. The maximum number of partitions is
  11. nearly 2000.
  12. Any partitions created under the LDM are called "Dynamic Disks". There are no
  13. longer any primary or extended partitions. Normal MSDOS style partitions are
  14. now known as Basic Disks.
  15. If you wish to use Spanned, Striped, Mirrored or RAID 5 Volumes, you must use
  16. Dynamic Disks. The journalling allows Windows to make changes to these
  17. partitions and filesystems without the need to reboot.
  18. Once the LDM driver has divided up the disk, you can use the MD driver to
  19. assemble any multi-partition volumes, e.g. Stripes, RAID5.
  20. To prevent legacy applications from repartitioning the disk, the LDM creates a
  21. dummy MSDOS partition containing one disk-sized partition. This is what is
  22. supported with the Linux LDM driver.
  23. A newer approach that has been implemented with Vista is to put LDM on top of a
  24. GPT label disk. This is not supported by the Linux LDM driver yet.
  25. Example
  26. -------
  27. Below we have a 50MiB disk, divided into seven partitions.
  28. N.B. The missing 1MiB at the end of the disk is where the LDM database is
  29. stored.
  30. Device | Offset Bytes Sectors MiB | Size Bytes Sectors MiB
  31. -------+----------------------------+---------------------------
  32. hda | 0 0 0 | 52428800 102400 50
  33. hda1 | 51380224 100352 49 | 1048576 2048 1
  34. hda2 | 16384 32 0 | 6979584 13632 6
  35. hda3 | 6995968 13664 6 | 10485760 20480 10
  36. hda4 | 17481728 34144 16 | 4194304 8192 4
  37. hda5 | 21676032 42336 20 | 5242880 10240 5
  38. hda6 | 26918912 52576 25 | 10485760 20480 10
  39. hda7 | 37404672 73056 35 | 13959168 27264 13
  40. The LDM Database may not store the partitions in the order that they appear on
  41. disk, but the driver will sort them.
  42. When Linux boots, you will see something like:
  43. hda: 102400 sectors w/32KiB Cache, CHS=50/64/32
  44. hda: [LDM] hda1 hda2 hda3 hda4 hda5 hda6 hda7
  45. Compiling LDM Support
  46. ---------------------
  47. To enable LDM, choose the following two options:
  48. "Advanced partition selection" CONFIG_PARTITION_ADVANCED
  49. "Windows Logical Disk Manager (Dynamic Disk) support" CONFIG_LDM_PARTITION
  50. If you believe the driver isn't working as it should, you can enable the extra
  51. debugging code. This will produce a LOT of output. The option is:
  52. "Windows LDM extra logging" CONFIG_LDM_DEBUG
  53. N.B. The partition code cannot be compiled as a module.
  54. As with all the partition code, if the driver doesn't see signs of its type of
  55. partition, it will pass control to another driver, so there is no harm in
  56. enabling it.
  57. If you have Dynamic Disks but don't enable the driver, then all you will see
  58. is a dummy MSDOS partition filling the whole disk. You won't be able to mount
  59. any of the volumes on the disk.
  60. Booting
  61. -------
  62. If you enable LDM support, then lilo is capable of booting from any of the
  63. discovered partitions. However, grub does not understand the LDM partitioning
  64. and cannot boot from a Dynamic Disk.
  65. More Documentation
  66. ------------------
  67. There is an Overview of the LDM together with complete Technical Documentation.
  68. It is available for download.
  69. http://www.linux-ntfs.org/
  70. If you have any LDM questions that aren't answered in the documentation, email
  71. me.
  72. Cheers,
  73. FlatCap - Richard Russon
  74. ldm@flatcap.org