Is the USB swap supposed to take place automatically?
In other words, I was able to successfully extend memory allocation as described in the original post, however, after rebooting the device, I noticed that after issuing the "free" command, the Swap line did not show any memory. I had to issue "swapon /dev/sda2" to allocate the memory again.
Here is some background on what I did:
1. Formatted and partitioned USB Cruzer Fit 8GB drive (USB Partition 1, 6GB, and USB Partition 2, 2GB); both as described in the original post.
2. ssh into pineapple.
3. Issued mkswap /dev/sda2
4. Received "device is busy" error
5. Issued umount /dev/sda2
6. Issued mkswap /dev/sda2
7. Received a successful message like the one in the original post
8. Issued swapon /dev/sda2
9. Memory is allocated successfully in the pineapple
I had no other choice but to umount the sda2 in order to bypass the "device is busy" error
Is it possible to script-in the command swapon /dev/sda2? If so, where would you recommend inserting it? I don't plan on removing the USB from the device.
EDIT: I apologize Hak5 Admin/Mods --- I read a post above and saw the following to always allow the memory allocation:
USB --> fstab Configuration ---> config swap ---> Option Enabled 1 (default is 0)
Pineapple working like a charm!!!