Answer the question
In order to leave comments, you need to log in
Is it possible to make an Ubuntu swap file not on the ssd system disk, but on the hdd which is in optibay?
Hello. I was interested in the actual question, is it possible to make an Ubuntu swap file not where the system is (ssd), but on the hdd that is stuck in the optibay pocket. I found similar instructions, then they make a section there. 16 GB of memory is usually enough, but sometimes firefox gets fat and climbs into the swap, which is on ssd. It's definitely not good for the disk.
Answer the question
In order to leave comments, you need to log in
I will support the speaker from the comments that all these "suffering of the SSD from the swap" remained somewhere far away. Now the resource of disks has increased so much and the firmware has become so wiser that those (to be honest, small) amounts of data that the browser drives during its work will lead to its failure in a very long time.
A swap on something slow is generally a perversion, since everything will be fiercely slowed down because of it with a lack of memory. Do you need it?
$ sudo fallocate -l 16G /optibay/swapfile
$ sudo chmod 600 /optibay/swapfile
$ sudo mkswap /optibay/swapfile
Then fix the line in /etc/fstab, replacing the path to the swap and restart the computer.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question