V
V
Viktor Yanyshev2019-01-15 12:15:32
linux
Viktor Yanyshev, 2019-01-15 12:15:32

How to remount SWAP?

When I installed the system, when partitioning disks, the mount point for the swap pointed to the usual hdd instead of ssd. Now I want to remount the swap on ssd. What do I need to do for this? Run live with mint and in gparted cut off the required amount for the swap from the ssd and specify it as a new mount point?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
P
planc, 2019-01-15
@planc

just create a file on the disk of the required size and make it swap:
https://wiki.archlinux.org/index.php/Swap_(%D0%A0%...

U
uRoot, 2019-01-15
@uroot

In principle, yes, but before that you need to disable SWAP on Mint: how to do it. Now it will be possible to do without liveCD.
SWAP needs to be disabled to avoid a number of possible problems

S
Sergey Sashkin, 2019-01-15
@LexPex

sudo fallocate -l 1G /tmp/swapfile
sudo chmod 600 /tmp/swapfile
sudo mkswap /tmp/swapfile
sudo swapon /tmp/swapfile

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question