Create RAID device
Create partitions on RAID device
-
+Welcome to fdisk <removed>.
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
-Device does not contain a recognized partition table
+Device does not contain a recognized partition table.
+Created a new <removed>.
-Command (m for help): Partition type:
+Command (m for help):
+Partition type:
p primary (0 primary, 0 extended, 4 free)
e extended
-Select (default p): Partition number (1-4, default 1): First sector (2048-204543, default 2048): Using default value 2048
-Last sector, +sectors or +size{K,M,G} (2048-204543, default 204543): Partition 1 of type Linux and of size 10 MiB is set
+Select (default p): Partition number (1-4, default 1): First sector (2048-204543, default 2048): Last sector, +sectors or +size{K,M,G,T,P} (2048-204543, default 204543):
+Created a new <removed>.
-Command (m for help): Partition type:
+Command (m for help):
+Partition type:
p primary (1 primary, 0 extended, 3 free)
e extended
-Select (default p): Partition number (2-4, default 2): First sector (22528-204543, default 22528): Using default value 22528
-Last sector, +sectors or +size{K,M,G} (22528-204543, default 204543): Using default value 204543
-Partition 2 of type Linux and of size 88.9 MiB is set
+Select (default p): Partition number (2-4, default 2): First sector (22528-204543, default 22528): Last sector, +sectors or +size{K,M,G,T,P} (22528-204543, default 204543):
+Created a new <removed>.
-Command (m for help):
-Disk /dev/md8: 104 MB, 104726528 bytes, 204544 sectors
-Units = sectors of 1 * 512 = 512 bytes
+Command (m for help): Disk <removed>: 99.9 MiB, 104726528 bytes, 204544 sectors
+Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 65536 bytes / 131072 bytes
Disk label type: dos
+Disk identifier: <removed>
+Device Boot Start End Blocks Id System
+<removed>p1 2048 22527 10240 83 Linux
+<removed>p2 22528 204543 91008 83 Linux
- Device Boot Start End Blocks Id System
-/dev/md8p1 2048 22527 10240 83 Linux
-/dev/md8p2 22528 204543 91008 83 Linux
-
-Command (m for help): The partition table has been altered!
-
+Command (m for help):
+The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.
+
Probe first RAID member
ID_FS_TYPE=linux_raid_member
ID_FS_USAGE=raid
Create partitions
-
+Welcome to fdisk <removed>.
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
-Device does not contain a recognized partition table
+Device does not contain a recognized partition table.
+Created a new <removed>.
-Command (m for help): Partition type:
+Command (m for help):
+Partition type:
p primary (0 primary, 0 extended, 4 free)
e extended
-Select (default p): Partition number (1-4, default 1): First sector (2048-104447, default 2048): Using default value 2048
-Last sector, +sectors or +size{K,M,G} (2048-104447, default 104447): Partition 1 of type Linux and of size 25 MiB is set
+Select (default p): Partition number (1-4, default 1): First sector (2048-104447, default 2048): Last sector, +sectors or +size{K,M,G,T,P} (2048-104447, default 104447):
+Created a new <removed>.
-Command (m for help): Partition type:
+Command (m for help):
+Partition type:
p primary (1 primary, 0 extended, 3 free)
e extended
-Select (default p): Partition number (2-4, default 2): First sector (53248-104447, default 53248): Using default value 53248
-Last sector, +sectors or +size{K,M,G} (53248-104447, default 104447): Using default value 104447
-Partition 2 of type Linux and of size 25 MiB is set
+Select (default p): Partition number (2-4, default 2): First sector (53248-104447, default 53248): Last sector, +sectors or +size{K,M,G,T,P} (53248-104447, default 104447):
+Created a new <removed>.
-Command (m for help):
-Disk /dev/...: 53 MB, 53477376 bytes, 104448 sectors
-Units = sectors of 1 * 512 = 512 bytes
+Command (m for help): Disk <removed>: 51 MiB, 53477376 bytes, 104448 sectors
+Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 32768 bytes
Disk label type: dos
+Disk identifier: <removed>
+Device Boot Start End Blocks Id System
+<removed>1 2048 53247 25600 83 Linux
+<removed>2 53248 104447 25600 83 Linux
- Device Boot Start End Blocks Id System
-/dev/...1 2048 53247 25600 83 Linux
-/dev/...2 53248 104447 25600 83 Linux
-
-Command (m for help): The partition table has been altered!
-
+Command (m for help):
+The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.
+
Create RAID1 device
Probe whole-disk
ID_PART_TABLE_TYPE=dos
Create RAID device
Create partitions on RAID device
-
+Welcome to fdisk <removed>.
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
-Device does not contain a recognized partition table
+Device does not contain a recognized partition table.
+Created a new <removed>.
-Command (m for help): Partition type:
+Command (m for help):
+Partition type:
p primary (0 primary, 0 extended, 4 free)
e extended
-Select (default p): Partition number (1-4, default 1): First sector (2048-102271, default 2048): Using default value 2048
-Last sector, +sectors or +size{K,M,G} (2048-102271, default 102271): Partition 1 of type Linux and of size 10 MiB is set
+Select (default p): Partition number (1-4, default 1): First sector (2048-102271, default 2048): Last sector, +sectors or +size{K,M,G,T,P} (2048-102271, default 102271):
+Created a new <removed>.
-Command (m for help): Partition type:
+Command (m for help):
+Partition type:
p primary (1 primary, 0 extended, 3 free)
e extended
-Select (default p): Partition number (2-4, default 2): First sector (22528-102271, default 22528): Using default value 22528
-Last sector, +sectors or +size{K,M,G} (22528-102271, default 102271): Partition 2 of type Linux and of size 10 MiB is set
+Select (default p): Partition number (2-4, default 2): First sector (22528-102271, default 22528): Last sector, +sectors or +size{K,M,G,T,P} (22528-102271, default 102271):
+Created a new <removed>.
-Command (m for help):
-Disk /dev/md8: 52 MB, 52363264 bytes, 102272 sectors
-Units = sectors of 1 * 512 = 512 bytes
+Command (m for help): Disk /dev/md8: 50 MiB, 52363264 bytes, 102272 sectors
+Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
+Disk identifier: <removed>
+Device Boot Start End Blocks Id System
+/dev/md8p1 2048 22527 10240 83 Linux
+/dev/md8p2 22528 43007 10240 83 Linux
- Device Boot Start End Blocks Id System
-/dev/md8p1 2048 22527 10240 83 Linux
-/dev/md8p2 22528 43007 10240 83 Linux
-
-Command (m for help): The partition table has been altered!
-
+Command (m for help):
+The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.
+
Probe first RAID member
ID_FS_TYPE=linux_raid_member
ID_FS_USAGE=raid
NR START END SECTORS SIZE NAME UUID
- 1 32 7679 7648 3.8M
- 2 7680 16383 8704 4.3M
+ 1 32 7679 7648 3.8M 8f8378c0-01
+ 2 7680 16383 8704 4.3M 8f8378c0-02
5 7936 12799 4864 2.4M
6 12544 16127 3584 1.8M
ts_device_deinit $DEVICE1
ts_device_deinit $DEVICE2
-ts_fdisk_clean
+ts_fdisk_clean $MD_DEVICE
# remove generated UUIDs
sed -i -e 's/ID_FS_UUID.*//g' $TS_OUTPUT