View Single Post
Posts: 119 | Thanked: 79 times | Joined on May 2009 @ Brasilia, Brazil
#28
Originally Posted by arekieh View Post
Id definitely rather make a swap partition since you say yours worked better, might as well .
so i would just re run this command:
Code:
apt-get install e2fsprogs
umount /media/mmc1
umount /media/mmc2
sfdisk /dev/mmcblk0
/dev/mmcblk0p1:1,30000,6
/dev/mmcblk0p2:30001,,
/dev/mmcblk0p3:
/dev/mmcblk0p4:
but like this:

Code:
apt-get install e2fsprogs
umount /media/mmc1
umount /media/mmc2
sfdisk /dev/mmcblk0
/dev/mmcblk0p1:1,30000,6
/dev/mmcblk0p2:30001,45000,
/dev/mmcblk0p3:45001,,
/dev/mmcblk0p4:
??
Yes, but only defining /dev/mmcblk0p3 as swap
Code:
/dev/mmcblk0p3:45001,,
should be
Code:
/dev/mmcblk0p3:45001,,82
and how would i go about assigning that partition as the swap partition?
To format the partition as swap, just run (in terminal as root)
Code:
mkswap /dev/mmcblk0p3
To activate swap:
Code:
swapon /dev/mmcblk0p3
To make the swapon command run automatically, the easiest solution I found was to edit /etc/init.d/rcS and add the comand in the very end of it. Still in terminal, and still as root, run:
Code:
vi /etc/init.d/rcS
Go to the (almost) last line, the one right before 'exit 0' and type the swapon command there.

In case you don't know how to use vi, after running the command use the d-pad to scroll until the line before the last, and press 'i'. This will turn vi into edit mode. After pressing 'i' you'll be able to actually type into the file. Just type the command from over there and you're all set.

After that, press the Esc. Vi will leave 'edit mode' and start accepting commands (save, exit, etc).

The command for 'save and exit' is
Code:
:wq
And now you have a swap partition in /dev/mmcblk0p3, activated at boot =)

Let us know if anything happens =)

Probably, I don't know how things have changed since the last release of Diablo (the one you'll probably have on your N810, assuming you reflashed), but I supposed it would.

Like I said, I'm a swap partition guy =)

Last edited by Bobbe; 2009-05-27 at 23:04.
 

The Following User Says Thank You to Bobbe For This Useful Post: