Darren Kitchen Posted March 17, 2012 Share Posted March 17, 2012 This tutorial applies to the WiFi Pineapple Mark IV. 1. Partition and format your USB Flash Disk. We'll be using the 4GB SanDisk Cruzer Fit (Available in the HakShop /shameless plug) a. Using Ubuntu open Disk Utility from System > Admin. b. Unmount any mounted existing volumes c. Delete any existing partitions. You should now have a blank drive with no partitions as seen below. d. Create your first partition using the Create Partition button and make the partition take 80% of the available space. The unused space will be used for your swap partition. Make sure to uncheck the box regarding taking ownership and select EXT4 as the filesystem. e. Repeat the previous step using the last available space, unchecking the ownership box and selecting EXT4 as the FS. Name the partitions whatever you like. f. Your drive show look like the below image. Remove the USB drive from your Linux box. 2. Configure the Swap partition on your WiFi Pineapple a. On the WiFi Pineapple's Web UI browse the the USB page and ensure that your config looks like the one below. config global automount option from_fstab 1 option anon_mount 1 config global autoswap option from_fstab 1 option anon_swap 1 config mount option target /usb option device /dev/sda1 option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0 config swap option device /dev/sda2 option enabled 1 b. Plug in the USB drive and wait a minute for everything to settle. c. SSH into the WiFi Pineapple (typically "ssh email@example.com") d. Issue "mkswap /dev/sda2" root@Pineapple:~# mkswap /dev/sda2 Setting up swapspace version 1, size = 1003741 kB no label, UUID=97996185-a731-4d1e-92d8-1017fdb3603e e. Reboot the WiFi Pineapple by issuing "reboot" 3. Verify that swap space has been enabled a. From the Advanced page issue the command "free" More reading on fstab in openwrt: http://wiki.openwrt.org/doc/uci/fstab Installing packages to the USB partition: Your /etc/opkg.conf file should look like the below. You can verify by issuing "cat /etc/opkg.conf" from a SSH session or from the Advanced pages execute commands box. dest root / dest ram /tmp lists_dir ext /var/opkg-lists option overlay_root /overlay dest usb /usb Update opkg by issuing "opkg update" (Internet connection required so enable 3G or Tether) Install packages using the syntax "opkg install --dest usb packagename" Thoughts? Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.