PartMan

From Wikitech
Revision as of 18:19, 21 October 2011 by LeslieCarr (Talk | contribs)

Jump to: navigation, search

Basic Info

Partman is an incomprehensible automatic partitioning language.

Help Files

These files are in the Debian and Ubuntu packages, and give some explanation

PartManAuto

PartManAutoRaid

Dissecting a Semi-working configuration

# Automatic software RAID 1 with LVM partitioning

d-i     partman-auto/method     string  raid

This sentence makes partman know that it will be making a raid

# Use the first two disks
d-i     partman-auto/disk       string  /dev/sda /dev/sdb

after d-i partman-auto/disk you must put the list of hard drives that are going to be used

  1. Define physical partitions

d-i partman-auto/expert_recipe string \

               multiraid ::                                                    \
                       400000    1000    9500000       raid                    \
                               $primary{ }  method{ raid }                     \
                       .                                                       \
                       4000    1200    4100    linux-swap                      \
                       $primary{ } method{ swap } format{ }                    \
                       .
  1. Parameters are:
  2. <raidtype> <devcount> <sparecount> <fstype> <mountpoint> \
  3. <devices> <sparedevices>

d-i partman-auto-raid/recipe string \

               1       2       0       ext3    /                       \
                       /dev/sda1#/dev/sdb1                             \
               .

d-i partman-md/confirm boolean true d-i partman-md/device_remove_md boolean true d-i partman/confirm_write_new_label boolean true d-i partman/choose_partition select finish d-i partman/confirm boolean true

d-i partman-lvm/device_remove_lvm boolean true

d-i mdadm/boot_degraded boolean true Different Partman profiles and what they do

Personal tools
Namespaces

Variants
Actions
Navigation
Ops documentation
Wiki
Toolbox