hibernate_from_a_non_activate_swapfile_from_btrfs
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| hibernate_from_a_non_activate_swapfile_from_btrfs [2020/12/16 10:19] – memeruiz | hibernate_from_a_non_activate_swapfile_from_btrfs [2021/02/01 05:55] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Hibernate from a non activate swapfile from btrfs ====== | ====== Hibernate from a non activate swapfile from btrfs ====== | ||
| + | |||
| + | *** Important! *** This didn't work! It is not secure! When wiping happens, the file gets moved to another place by btrfs, then, this doesn' | ||
| + | |||
| + | * This was just a stupid experiment. | ||
| ===== Create swapfile ===== | ===== Create swapfile ===== | ||
| Line 65: | Line 69: | ||
| * Modify / | * Modify / | ||
| - | GRUB_CMDLINE_LINUX_DEFAULT=" | + | GRUB_CMDLINE_LINUX_DEFAULT=" |
| * Activate the swap file | * Activate the swap file | ||
| Line 112: | Line 116: | ||
| echo " | echo " | ||
| sleep 0.2 | sleep 0.2 | ||
| + | xtrlock -b & | ||
| sudo s2disk | sudo s2disk | ||
| echo " | echo " | ||
| Line 119: | Line 124: | ||
| sleep 5 | sleep 5 | ||
| echo " | echo " | ||
| - | sudo wipe -f -q -Q 1 / | + | |
| + | sudo dd if=/ | ||
| sync | sync | ||
| sleep 1 | sleep 1 | ||
| Line 125: | Line 131: | ||
| sudo mkswap / | sudo mkswap / | ||
| echo "All done, ready to hiberante again" | echo "All done, ready to hiberante again" | ||
| + | |||
| + | ===== References ===== | ||
| + | |||
| + | |||
| + | https:// | ||
| + | |||
| + | https:// | ||
| + | |||
| + | https:// | ||
| + | |||
| + | https:// | ||
| + | |||
| + | https:// | ||
| + | |||
| + | https:// | ||
| + | |||
| + | https:// | ||
| + | |||
| + | |||
hibernate_from_a_non_activate_swapfile_from_btrfs.1608113955.txt.gz · Last modified: 2021/02/01 05:55 (external edit)
