This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
software:fedora_boot_backupstick [2020/11/18 08:52] chris |
software:fedora_boot_backupstick [2020/11/19 08:14] (current) chris |
||
---|---|---|---|
Line 4: | Line 4: | ||
* and use the other part of the stick for backup of my homedir | * and use the other part of the stick for backup of my homedir | ||
* that backup should be encrypted, and also be able to detect bit rot | * that backup should be encrypted, and also be able to detect bit rot | ||
- | |||
- | ===== Setup steps, Fedora 32 ===== | ||
- | < | ||
- | # Connect the stick, find out which device it got: | ||
- | [root@電脳 ~]# cat / | ||
- | major minor # | ||
- | |||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | [root@電脳 ~]# | ||
- | |||
- | ### install tools | ||
- | dnf -y install pv cryptsetup rsync | ||
- | |||
- | ### Fetch Fedora iso, and directly write it. Takes 2:22min for me. | ||
- | URL=" | ||
- | URL=" | ||
- | |||
- | wget -O - $URL | pv >/ | ||
- | | ||
- | ### Create a new, forth partition spanning the rest of the stick | ||
- | fdisk /dev/sda | ||
- | # n, p, < | ||
- | |||
- | ### Now let's create LUKS+dm-integrity layer | ||
- | cryptsetup luksFormat --type luks2 /dev/sda4 \ | ||
- | --integrity hmac-sha256 --cipher aes-xts-plain64 -v | ||
- | cryptsetup open /dev/sda4 luksusb | ||
- | cryptsetup status luksusb | ||
- | mkfs.xfs / | ||
- | mount / | ||
- | </ | ||
===== Setup steps, Fedora 33 ===== | ===== Setup steps, Fedora 33 ===== |