Active Topics

 


Reply
Thread Tools
Posts: 678 | Thanked: 197 times | Joined on Jul 2007 @ San Jose CA
#21
Originally Posted by arekieh View Post
ahh, will that affect anything?
yes, you just formated the DOS partition of the external card. That's all! Because it's a new device so I think you haven't stored anything there yet,right?
 

The Following User Says Thank You to nhanquy For This Useful Post:
Posts: 39 | Thanked: 3 times | Joined on May 2009
#22
ya i havent stored anything on it yet. Do i have to undo that? and how would i do that?

thansk alot btw
 
Posts: 119 | Thanked: 79 times | Joined on May 2009 @ Brasilia, Brazil
#23
No need to undo it if you planned on keeping personal files in it. mkdosfs is pretty much the same as a DOS format c:, it just leaves you with an empty fat partition.

But I dunno exactly what you have been doing with your memory card, honestly after so much meddling you have to check. How big is the fat partition in it? Is it the full 2gb? Or are there other partitions there?

Code:
sfdisk -l -uM
might help clarify things. If it only shows the one partition for /dev/mmcblk1 (your /dev/mmcblk1p1 that is) then you just have 2gb of free vfat memory =). If not you can run sfdisk on it again and partition it as you wish.

Just checking, do you own an N800 or an N810?
 

The Following User Says Thank You to Bobbe For This Useful Post:
Posts: 39 | Thanked: 3 times | Joined on May 2009
#24
Hey,
Its an N810,
My internal mem card has two partitions, the one i boot off of is 967mb, and the other partition for storage is ~930mb (forget exact number)

my external mem card is an 8gb


edit:

sfdisk gives me this:

Code:
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

Last edited by arekieh; 2009-05-27 at 22:11.
 
Posts: 119 | Thanked: 79 times | Joined on May 2009 @ Brasilia, Brazil
#25
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?
 
Posts: 678 | Thanked: 197 times | Joined on Jul 2007 @ San Jose CA
#26
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".
 
Posts: 39 | Thanked: 3 times | Joined on May 2009
#27
Originally Posted by nhanquy View Post
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".
thanks. ill edit the title right away too


Originally Posted by Bobbe View Post
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?
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:
??

and how would i go about assigning that partition as the swap partition?



would this work:
http://talk.maemo.org/showthread.php?t=17209

Last edited by arekieh; 2009-05-27 at 22:54.
 
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:
Posts: 39 | Thanked: 3 times | Joined on May 2009
#29
thanks alot, gooing to try that right now
 
Posts: 119 | Thanked: 79 times | Joined on May 2009 @ Brasilia, Brazil
#30
Oh, and I just noticed all the Thanks =)
I'm thanked enough lol
 

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


 
Forum Jump


All times are GMT. The time now is 03:15.