![]() |
2009-05-27
, 21:41
|
Posts: 678 |
Thanked: 197 times |
Joined on Jul 2007
@ San Jose CA
|
#21
|
The Following User Says Thank You to nhanquy For This Useful Post: | ||
![]() |
2009-05-27
, 22:01
|
Posts: 39 |
Thanked: 3 times |
Joined on May 2009
|
#22
|
![]() |
2009-05-27
, 22:05
|
Posts: 119 |
Thanked: 79 times |
Joined on May 2009
@ Brasilia, Brazil
|
#23
|
sfdisk -l -uM
The Following User Says Thank You to Bobbe For This Useful Post: | ||
![]() |
2009-05-27
, 22:06
|
Posts: 39 |
Thanked: 3 times |
Joined on May 2009
|
#24
|
Disk /dev/mmcblk0: 61440 cylinders, 4 heads, 16 sectors/track Units = mebibytes of 1048576 bytes, blocks of 1024 bytes, counting from 0 Device Boot Start End MiB #blocks Id System /dev/mmcblk0p1 0+ 937- 938- 960000 6 FAT16 /dev/mmcblk0p2 937+ 1919 983- 1006048 83 Linux /dev/mmcblk0p3 0+ 0- 1- 31+ 83 Linux /dev/mmcblk0p4 0 - 0 0 0 Empty Disk /dev/mmcblk1: 245696 cylinders, 4 heads, 16 sectors/track Units = mebibytes of 1048576 bytes, blocks of 1024 bytes, counting from 0 Device Boot Start End MiB #blocks Id System /dev/mmcblk1p1 0+ 7677 7678- 7862264 b W95 FAT32 /dev/mmcblk1p2 0 - 0 0 0 Empty /dev/mmcblk1p3 0 - 0 0 0 Empty /dev/mmcblk1p4 0 - 0 0 0 Empty
![]() |
2009-05-27
, 22:28
|
Posts: 119 |
Thanked: 79 times |
Joined on May 2009
@ Brasilia, Brazil
|
#25
|
![]() |
2009-05-27
, 22:32
|
Posts: 678 |
Thanked: 197 times |
Joined on Jul 2007
@ San Jose CA
|
#26
|
![]() |
2009-05-27
, 22:38
|
Posts: 39 |
Thanked: 3 times |
Joined on May 2009
|
#27
|
Everything looks clean and good. Your mmc2 (internal) has 2 partitions; your mmc1(external) has one big FAT32 partition. Now you can put OS into your mmc2, the 2nd partition.
With this configuration you have the choice put the OS into the mmc2 not the mmc1.
Your thread title "trying to boot from flash card" is misleading. It should say "trying to boot from the 2G internal flash of the N810".
Okay, now that I know which one you own that made more sense to me. Since you have 8gb to store your files on your external slot, I recommend you use some of your internal space for swap (virtual memory for your system to use as cache when you run out of RAM). You can use the external one, too, but you would lose swap when you removed the card for any reason. Anyways, up to you.
Your solutions are as follows:
Create a swap file from inside the menu. Just go to Settings -> Control Panel. In the 'memory' section you can create a virtual swap file. That's the easiest solution, but it limits your amount of swap to 128mb.
Another solution is to create a swap partition manually and start it on boot. To do that you'd have to re-run the sfdisk command while booting from the original OS (not the cloned one) and re-partition your disk. When I did this with my N800 and informed the EXACT SAME size and type to one of my partitions, it didn't destroy any of the data in it. For example, I had a 5gb vfat partition right in the beginning of my 8gb card. When I had to clone my system a second time I ran sfdisk, informed the exact same beginning, size and partition type and it re-wrote the partition table. All the other partitions changed size, except for my vfat. And the files stood there. I dunno if that's what normally happens or if I 'got lucky', but I think it's what's supposed to happen. So if you re-run sfdisk, leave the same 900-sth megabytes for the cloned maemo partition, but instead of leaving the whole rest for files you leave, say, 350-400 mb for swap and the rest for files, it should be fine. Then again, do it at your own risk if you choose to.
There have been discussions about which one is better, swap file or swap partition, or how much swap actually helps, but in my personal experience a swap partition with more than 128mb (the maximum you can set easily in control panel) has worked considerably better.
Once again, up to you! Let me know if you want to make some swap and need some help doing it.
And about penguinbait's tools, isn't it like not-supported for Diablo 43-7 and above?
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:
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:
![]() |
2009-05-27
, 22:59
|
Posts: 119 |
Thanked: 79 times |
Joined on May 2009
@ Brasilia, Brazil
|
#28
|
Id definitely rather make a swap partition since you say yours worked better, might as well.
so i would just re run this command:
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,, /dev/mmcblk0p3: /dev/mmcblk0p4:
??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:
/dev/mmcblk0p3:45001,,
/dev/mmcblk0p3:45001,,82
and how would i go about assigning that partition as the swap partition?
mkswap /dev/mmcblk0p3
swapon /dev/mmcblk0p3
vi /etc/init.d/rcS
:wq
would this work:
http://talk.maemo.org/showthread.php?t=17209
The Following User Says Thank You to Bobbe For This Useful Post: | ||
![]() |
2009-05-27
, 23:03
|
Posts: 39 |
Thanked: 3 times |
Joined on May 2009
|
#29
|