03-09-2017, 11:42 AM
(This post was last modified: 03-09-2017, 11:56 AM by kenneth558.)
(03-09-2017, 07:20 AM)kenneth558 Wrote:(03-08-2017, 10:47 PM)pfeerick Wrote:(03-08-2017, 06:52 PM)kenneth558 Wrote:Code:root@DietPi:~# dphys-swapfile setup
want /mnt/8ccd4c9a-baa0-4717-83e3-ff582354a048/.swapfile=28000MByte, restricting to config limit: 2048MBytes, (etc...)
I'm not familiar with that command (used to just creating a swap partition and then enabling it), but since you've run the dphys-swapfile setup command... have you run dphys-swapfile swapon to then actually enable the swapfile usage? It appears you need to run both commands?
Yes, I did but didn't think to include it because the swapon command produced no response. My bad in not posting that info. Thank you kindly for asking. Did you enable swap via fstab instead?
Come to think of it, that cat /proc/swaps command output must have gotten chopped off somehow. It is actually:
Code:root@DietPi:~# cat /proc/swaps
Filename Type Size Used Priority
/mnt/8ccd4c9a-baa0-4717-83e3-ff582354a048/.swapfile file 2047996 0 -1
(03-09-2017, 10:29 AM)xalius Wrote: Can someone explain to me why you would A) need swap in the first palce and B) use non-standard tools to implement it?
A) Guessing that I don't need swap (for youtubing, at least), and
B) I actually discovered that dphys-swapfile is a standard part of Ubuntu in the course of this. I'm guessing that using a swap file instead of a swap partition is when you'd use use it. It is how the command-lining behind the whiptail GUI-like DietPi configurator tool handles swap.