View Single Post
ste-phan's Avatar
Posts: 1,197 | Thanked: 2,710 times | Joined on Jan 2010 @ Hanoi
#322
Originally Posted by Ken-Young View Post
I'm too stupid to figure out how to use FlopSwap. I've read the FlopSwap wiki page, but it does not contain all the info I need. I'm hoping someone can help me out.

I've got a 64 GByte SD card which seems to work well in my N900. If I set it up as one big partition, all is well. I want to set it up with three partitions, one big one for /media/mmc1, and two smaller ones for flopswap to use. As I understand it, FlopSwap expects the 2nd and 3rd partitions of the SD card to be the swap spaces (is that right?). I've used sfdisk to partition the SD card as follows:
Code:
/home/user # sfdisk -l /dev/mmcblk1

Disk /dev/mmcblk1: 1948992 cylinders, 4 heads, 16 sectors/track
Units = cylinders of 32768 bytes, blocks of 1024 bytes, counting from 0

   Device Boot Start     End   #cyls    #blocks   Id  System
/dev/mmcblk1p1          0+ 1894591  1894592-  60626943+  83  Linux
/dev/mmcblk1p2     1894592  1921791   27200     870400   82  Linux swap / Solaris
/dev/mmcblk1p3     1921792  1948991   27200     870400   82  Linux swap / Solaris
/dev/mmcblk1p4          0       -       0          0    0  Empty
Since the blocks are 32768 bytes, the second and third partitions have 32768 x 27200 = 850 MBytes each. After repartitioning, I initially built an ext3 file system on partition 1 only, and rebooted the N900 (no file system was built on partitions 2 and 3). FlopSwap did not recognize the two new SD card partitions - it saw only the original internal swap. So I built ext3 file systems on partitions 2 and 3, and rebooted again. After rebooting, the N900 mounted partition 2 as /media/mmc1p2 and partition 3 as /media/mmc1p3. FlopSwap still did not find the SD card partitions. I tried manually dismounting partitions 2 and 3, but FlopSwap still did not see them.

Must the SD card swap partitions be numbers 2 and 3?

Must the SD card swap partitions be exactly 800 MBytes in size? Will slightly larger partitions work?

Must one build a file system on the swap partitions? If so, will ext3 work?

Must one do something to make FlopSwap notice the new SD card partitions, or to mark the new partitions as swap partitions for the OS?

Is there something else that I'm obviously doing wrong?

Thanks for any tips/info/help!
-Yes, flopswap expects 2nd and 3rd SD partition to be the two swap partitions.

-I had the same situation as you (unrecognized secondary swap partions on SD card, only viewing default one): Originally I formatted the card in a PC and it looked as if I had 2 swap partions (82?) but flopswap didn't find those. After I took the SD card back to a PC and used a different formatting tool (yes using GUI tools, hehehe) I noticed there was an error with the two swap partions. Formatted again and it worked.


Must the SD card swap partitions be numbers 2 and 3?


-guess not but then you would have to alter the script of Swapflop?

Must the SD card swap partitions be exactly 800 MBytes in size? Will slightly larger partitions work?


No, I tested long time with both smaller (512MB) and larger ones (1600MB). Results were equal.

Must one build a file system on the swap partitions? If so, will ext3 work?

-Swap is swap, you just format as SWAP space, OS will know what to do with it.

Must one do something to make FlopSwap notice the new SD card partitions, or to mark the new partitions as swap partitions for the OS?

No, just make sure the swap partiions are correctly created.

Is there something else that I'm obviously doing wrong?

No, it looks good. But then again , I am not the expert.
 

The Following 2 Users Say Thank You to ste-phan For This Useful Post: