

#SYSTEMRESCUECD CHECK HDD CONDITION HOW TO#
dev/mapper/b1 /media/Backups ext4 rw,suid,dev,exec,auto,user,async,relatime 0 2 How to restore from a backup a set of files what was recently changed Beside the normal passphase to open the disk, we'll create a random key and then use it to unlock the disk after /root is mounted with it's own passphrase:ĭd if=/dev/urandom of=/root/.keyfiles/luks_backups bs=1024 count=4Ĭryptsetup luksAddKey /dev/sdi1 /root/.keyfiles/luks_backupsĮcho "b1 UUID=$(sudo blkid -s UUID -o value /dev/sdi1) /root/.keyfiles/luks_backups luks" > /etc/crypttab

Mkfs.ext4 -m 0 -L Backups /dev/mapper/b1 (-m 0 removes reserved blocks (i.e. set to 0%), since your system's livelihood does not depend on the empty space on this disk)
#SYSTEMRESCUECD CHECK HDD CONDITION PASSWORD#
Provide the current user password (not luks) This is a command line way to mount the device like KDE/Dolphin does it in GUI

Sudo mount -o loop,exec /path/to/systemrescuecd-x86-x.y.z.iso /media/temp How to create a bootable linux rescue USB stickĭont use isohybrid, it messes up the partition table Sync echo 3 | sudo tee /proc/sys/vm/drop_cachesĬat /media/some-disk/temp-file | pv > dev/null Then flush the cache and and perform the opposite operation using the newly-created file: To monitor you can insert pv into the pipeline after gzip or send -USR1 to the last dd in the pipeline How to mount sshfs on KDE session startĬopy the ssh keys to allow password-less mounting, test, then add it as a script command to KDE's startup via System-Settings -> Startup and Shutdown -> AutostartĬat /dev/zero | pv > /media/some-disk/temp-file Ssh "dd if=/dev/sda | gzip -1 -" | dd of=image.gz Dd if=/dev/sda | gzip -1 - | ssh dd of=image.gz
