Skip to content

Instantly share code, notes, and snippets.

@mahammad
Last active September 21, 2021 06:24
Show Gist options
  • Save mahammad/6d2807db934733718e81 to your computer and use it in GitHub Desktop.
Save mahammad/6d2807db934733718e81 to your computer and use it in GitHub Desktop.
Ubuntu swap hatası
$ `sudo mkswap /dev/sda6`
Setting up swapspace version 1, size = 7998460 KiB
no label, UUID=18881d0f-d9ec-43be-a23f-0cbd78ea6d22
$ `sudo nano /etc/crypttab` # Update crypttad with new UUID
$ `sudo /etc/init.d/cryptdisks` reload
* Stopping remaining crypto disks...
* cryptswap1 (stopped)... [ OK ]
* Starting remaining crypto disks...
* cryptswap1 (starting)..
* cryptswap1 (started)... [ OK ]
$ `sudo swapon -a`
$ `ls -l /dev/disk/by-uuid/`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment