From 4e588f521fc3538fbc219f69fee1a5f838591f5d Mon Sep 17 00:00:00 2001 From: Robert Date: Tue, 12 Nov 2024 08:21:52 +0100 Subject: [PATCH] rm swapfile --- mint/make_swapvol.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mint/make_swapvol.sh b/mint/make_swapvol.sh index 023d54e..ad72848 100644 --- a/mint/make_swapvol.sh +++ b/mint/make_swapvol.sh @@ -24,6 +24,9 @@ rootdev=${rootdevsrc%\[/@]} echo "BTRFS-Device ist daher $rootdev" echo "OK - erzeuge jetzt (etwas umständlich) ein SubVol /@swap, in dem swapfile liegt" +# falls noch ein altes /swapfile da ist : kill +sudo rm /swapfile + # zunächst nochmal mounten, damit die root-subvols sichtbar werden sudo mount $rootdev /mnt # If you run ls /mnt, you'll see @, @home and other subvolumes that may be there. @@ -68,4 +71,5 @@ sudo echo "UUID=$uuid /swap btrfs defaults,subvol=@swap 0 0" >> /etc/fstab sudo echo "/swap/swapfile none swap sw 0 0" >> /etc/fstab # The UUID is the one of your /dev/sda1. -echo "Fertig" \ No newline at end of file +echo "Fertig! Swap ist nun im Subvol @swap" +sudo swapon \ No newline at end of file