![]() |
2010-09-22
, 11:32
|
|
Posts: 115 |
Thanked: 43 times |
Joined on May 2010
@ UK, London
|
#72
|
For those who need more VM, and wish to use their entire MicroSD card for this purpose:
(WARNING: This will erase the entire MicroSD card, or worse, some or all of your internal memory if you mistype the device name.. If you plan to proceed, I recommend that you have some idea what you are doing)
In x-term:
The last line will have to be rerun each time your device is rebooted, unless you add an init script to run it.Code:sudo gainroot mkswap /dev/mmcblk1p1 swapon /dev/mmcblk1p1
![]() |
2010-09-24
, 15:29
|
Posts: 692 |
Thanked: 264 times |
Joined on Dec 2009
|
#73
|
![]() |
2010-10-12
, 09:10
|
Posts: 4 |
Thanked: 0 times |
Joined on Oct 2010
|
#74
|
![]() |
2010-10-17
, 11:29
|
Posts: 32 |
Thanked: 24 times |
Joined on Sep 2010
|
#75
|
swapon /dev/mmcblk1p2 swapoff /dev/mmcblk0p3 swapon /dev/mmcblk0p3
cat /proc/swaps Filename Type Size Used Priority /dev/mmcblk0p3 partition 786424 0 -2 /dev/mmcblk1p2 partition 359868 476 -1
The Following User Says Thank You to elipsoid For This Useful Post: | ||
![]() |
2010-10-17
, 11:32
|
Posts: 3,664 |
Thanked: 1,530 times |
Joined on Sep 2009
@ Hamilton, New Zealand
|
#76
|
![]() |
2010-10-17
, 12:30
|
Posts: 32 |
Thanked: 24 times |
Joined on Sep 2010
|
#77
|
using memory card flash memory as virtual swap Ram will reduce the life of the flash chip by a lot..
The Following User Says Thank You to elipsoid For This Useful Post: | ||
![]() |
2010-10-18
, 13:10
|
Posts: 692 |
Thanked: 264 times |
Joined on Dec 2009
|
#78
|
![]() |
2010-10-18
, 23:53
|
Posts: 32 |
Thanked: 24 times |
Joined on Sep 2010
|
#79
|
![]() |
2010-10-19
, 09:52
|
Posts: 561 |
Thanked: 75 times |
Joined on Jan 2010
@ Spain
|
#80
|
sfdisk -l /dev/mmcblk0 | /bin/busybox awk \ -v home_opts="$home_opts" -v fat_opts="$fat_opts" \ -f /usr/lib/genfstab.awk > $tmp_fstab
sfdisk -l /dev/mmcblk1 | /bin/busybox awk \ -f /usr/lib/genfstab2.awk >> $tmp_fstab
fstab=/etc/fstab tmp_fstab=/tmp/fstab sfdisk -l /dev/mmcblk0 | /bin/busybox awk \ -v home_opts="$home_opts" -v fat_opts="$fat_opts" \ -f /usr/lib/genfstab.awk > $tmp_fstab sfdisk -l /dev/mmcblk1 | /bin/busybox awk \ -f /usr/lib/genfstab2.awk >> $tmp_fstab cmp -s $tmp_fstab $fstab || cp $tmp_fstab $fstab rm -f $tmp_fstab
cp /usr/lib/genfstab.awk / usr/lib/lib/genfstab2.awk
#!/usr/bin/awk BEGIN { # states so that we don't end up having more than one # of home or MyDocs; we can have as many swaps as we find __home = 0 __fat = 0 } /^\/dev\/mmc/ { start=1 } start == 1 && $6 == 82 { printf "%s none swap sw 0 0\n", $1 }
The Following 2 Users Say Thank You to WhiteWolf For This Useful Post: | ||
i do install nitdroid last time and i face the same problem with you ,since there was a reply tell us that we should try "/mmcblk1p2"
instead of " mmcblk1p1"
and it work!!