This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
miscscripts [2023/01/21 17:49] dwheele [Create a Filesystem on the New Partition] |
miscscripts [2023/01/21 18:13] (current) dwheele [Partition and Format GPT] |
||
|---|---|---|---|
| Line 60: | Line 60: | ||
| # mount /dev/sdc1 / | # mount /dev/sdc1 / | ||
| | | ||
| - | ==== Partition and Format GPT ==== | + | ==== Partition GPT with gdisk ==== |
| + | |||
| + | # gdisk /dev/sdc | ||
| + | |||
| + | |||
| + | ==== Partition and Format GPT with PARTED | ||
| + | |||
| + | This is somewhat difficult to use because the mkpart command sometimes gives alignment errors. | ||
| $ sudo parted /dev/sdd | $ sudo parted /dev/sdd | ||
| Line 80: | Line 87: | ||
| ==== Create a Filesystem on the New Partition ==== | ==== Create a Filesystem on the New Partition ==== | ||
| - | # mkfs.ext4 -L offsitebackup /dev/sdd | + | # mkfs.ext4 -L offsitebackup /dev/sdd1 |
| - | (Formerly pointed at /dev/sdd1, but without the 1, avoided getting a misalignment error. See https:// | ||
| ==== Mount for Test Use ==== | ==== Mount for Test Use ==== | ||