Ragpuss
Regular Contributor
hi all,
Sorry if this has been covered,
I have an RT-AC86U with 2 drives attached, media on the usb3 as sda and swap on usb2 as sdb.
I have created a swapfile on a dedicated drive on the. USB2 port (sdb1)
The relevant line was added to post-mount ( swapon /tmp/mnt/swapfile/myswap.swp )
Do I also need to edit the fstab file to get the swapfile to auto start on boot ?
The swapfiles location is tmp/mnt/swapfile/myswap.swp
Can anyone please let me know if I need to do anything more to get it to start ?
If I run the free command the swapfile shows but its use is 0
Although if I type swapon /tmp/mnt/swapfile/myswap.swp to manually start it then it sais device or resource busy , so does that mean that its running ?
This is the readout on running free :
/tmp/home/root# free
total used free shared buffers cached
Mem: 440436 396848 43588 0 18804 189012
-/+ buffers/cache: 189032 251404
Swap: 1048572 0 1048572
Thank you.
Sorry if this has been covered,
I have an RT-AC86U with 2 drives attached, media on the usb3 as sda and swap on usb2 as sdb.
I have created a swapfile on a dedicated drive on the. USB2 port (sdb1)
The relevant line was added to post-mount ( swapon /tmp/mnt/swapfile/myswap.swp )
Do I also need to edit the fstab file to get the swapfile to auto start on boot ?
The swapfiles location is tmp/mnt/swapfile/myswap.swp
Can anyone please let me know if I need to do anything more to get it to start ?
If I run the free command the swapfile shows but its use is 0
Although if I type swapon /tmp/mnt/swapfile/myswap.swp to manually start it then it sais device or resource busy , so does that mean that its running ?
This is the readout on running free :
/tmp/home/root# free
total used free shared buffers cached
Mem: 440436 396848 43588 0 18804 189012
-/+ buffers/cache: 189032 251404
Swap: 1048572 0 1048572
Thank you.
Last edited: