From 0f77725af38b7699cef362d32f0004018a0714b8 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Wed, 25 Jul 2018 22:30:09 +0200 Subject: [PATCH] parted --- in/public/storage/index.rst | 3 ++- in/public/storage/parted/index.rst | 38 ++++++++++++++++++++++++++++++ 2 files changed, 40 insertions(+), 1 deletion(-) create mode 100644 in/public/storage/parted/index.rst diff --git a/in/public/storage/index.rst b/in/public/storage/index.rst index c2eef59..8c42c44 100644 --- a/in/public/storage/index.rst +++ b/in/public/storage/index.rst @@ -4,4 +4,5 @@ Storage .. toctree:: :maxdepth: 2 - mdadm/index + mdadm/index + parted/index diff --git a/in/public/storage/parted/index.rst b/in/public/storage/parted/index.rst new file mode 100644 index 0000000..03e9b25 --- /dev/null +++ b/in/public/storage/parted/index.rst @@ -0,0 +1,38 @@ +Parted +====== + +Examples with 2 × 2 TB hard disk drives as MBR, +for a virtual 4 TB with data and 32 GB of swap as GPT. + +MBR +--- + +:: + + parted /dev/sda + mktable msdos + mkpart primary 1 2000399 + +:: + + parted /dev/sdb + mktable msdos + mkpart primary 1 2000399 + +.. warning:: + + The first megabyte makes room for an embedded bootloader. + +GPT +--- + +:: + + parted /dev/md0 + mktable gpt + mkpart data 1 3966128 + mkpart swap 2 4000527 + +.. info:: + + Start offset of a partition can be inferior than actual free space beginning.