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 12:07] – 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 120: | Line 124: | ||
sleep 5 | sleep 5 | ||
echo " | echo " | ||
- | sudo wipe -f -q -Q 1 / | + | |
+ | sudo dd if=/ | ||
sync | sync | ||
sleep 1 | sleep 1 | ||
Line 126: | 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.1608120459.txt.gz · Last modified: 2021/02/01 05:55 (external edit)