User Tools

Site Tools


software:fedora_boot_backupstick

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

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 ===== 
-<code> 
-# Connect the stick, find out which device it got: 
-[root@電脳 ~]# cat /proc/partitions  
-major minor  #blocks  name 
- 
- 259        0  250059096 nvme0n1 
- 259        1     266240 nvme0n1p1 
- 259        2    1048576 nvme0n1p2 
- 259        3  248743239 nvme0n1p3 
- 253        0  240930816 dm-0 
- 253        1    7811072 dm-1 
- 253        2  240928768 dm-2 
- 253        3    7809024 dm-3 
-          0   60063744 sda  <----  
-[root@電脳 ~]#  
- 
-### install tools 
-dnf -y install pv cryptsetup rsync 
- 
-### Fetch Fedora iso, and directly write it. Takes 2:22min for me.  
-URL="https://download.fedoraproject.org/pub/fedora/linux/releases/32/Workstation/x86_64/iso/Fedora-Workstation-Live-x86_64-32-1.6.iso" 
-URL="https://download.fedoraproject.org/pub/fedora/linux/releases/33/Workstation/x86_64/iso/Fedora-Workstation-Live-x86_64-33-1.2.iso" 
- 
-wget -O - $URL | pv >/dev/sda 
-   
-### Create a new, forth partition spanning the rest of the stick 
-fdisk /dev/sda 
-# n, p, <return>, <return>, w 
- 
-### 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 /dev/mapper/luksusb 
-mount /dev/mapper/luksusb /mnt/usbbackup 
-</code> 
  
 ===== Setup steps, Fedora 33 ===== ===== Setup steps, Fedora 33 =====
software/fedora_boot_backupstick.txt · Last modified: 2020/11/19 08:14 by chris