![]() |
2015-01-04
, 09:12
|
|
Posts: 1,197 |
Thanked: 2,710 times |
Joined on Jan 2010
@ Hanoi
|
#322
|
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:
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.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
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!
![]() |
2015-01-04
, 09:19
|
Posts: 1,203 |
Thanked: 3,027 times |
Joined on Dec 2010
|
#323
|
The Following 4 Users Say Thank You to Android_808 For This Useful Post: | ||
![]() |
2015-01-04
, 11:39
|
|
Posts: 387 |
Thanked: 1,700 times |
Joined on Feb 2010
@ Cambridge, MA, USA
|
#324
|
![]() |
2015-01-04
, 12:00
|
Posts: 1,203 |
Thanked: 3,027 times |
Joined on Dec 2010
|
#325
|
The Following User Says Thank You to Android_808 For This Useful Post: | ||
![]() |
2015-01-05
, 18:53
|
Posts: 2,292 |
Thanked: 4,135 times |
Joined on Apr 2010
@ UK
|
#326
|
Well, I don't see a reason for autochecking in Flopswap. You can easily schedule the checking script, e.g. with alarmed.
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.
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?
Thanks very much! That was the step I was missing. I'm a happy FlopSwap user now.
The Following User Says Thank You to sixwheeledbeast For This Useful Post: | ||
![]() |
2015-01-05
, 19:53
|
Posts: 252 |
Thanked: 221 times |
Joined on Jul 2010
|
#327
|
![]() |
2015-01-05
, 20:07
|
Posts: 3,328 |
Thanked: 4,476 times |
Joined on May 2011
@ Poland
|
#328
|
I'd suggest performing a mandatory check right after each fresh swap. Otherwise the displayed info is obsolete, e.g. it looks like there is 87% fresh swap written, when in fact it is close to zero.
The Following User Says Thank You to marmistrz For This Useful Post: | ||
![]() |
2015-01-06
, 01:00
|
Posts: 252 |
Thanked: 221 times |
Joined on Jul 2010
|
#329
|
![]() |
2015-01-06
, 07:38
|
|
Posts: 4,118 |
Thanked: 8,901 times |
Joined on Aug 2010
@ Ruhrgebiet, Germany
|
#330
|
I'd suggest performing a mandatory check right after each fresh swap. Otherwise the displayed info is obsolete, e.g. it looks like there is 87% fresh swap written, when in fact it is close to zero.
Well, the check may indicate how intensive the current write to swap is. Normally if I do a manual check right after a fresh swap, it will indicate >0% fresh swap written.
The Following User Says Thank You to peterleinchen For This Useful Post: | ||
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:
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!