maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   General (https://talk.maemo.org/forumdisplay.php?f=7)
-   -   Partitioning a flash card problems (https://talk.maemo.org/showthread.php?t=30352)

lma 2009-07-19 09:57

Re: Partitioning a flash card problems
 
What does
Code:

cat /proc/partitions
say?

Firebat2222 2009-07-19 10:11

Re: Partitioning a flash card problems
 
The more detail the better i suppose :)

Unfortunatly what you just told me to do is what ive been doing all along, but i still get the error "Invalid Argument" when i try to umount mmc2

Firebat2222 2009-07-19 10:12

Re: Partitioning a flash card problems
 
1 sec lemme check

Firebat2222 2009-07-19 10:19

Re: Partitioning a flash card problems
 
major , minor , #blocks , name
31 , 0 , 128 , mtdblock0
31 , 1 , 384 , mtdblock1
31 , 2 , 2048 , mtdblock2
31 , 3 , 2048 , mtdblock3
31 , 4 , 126464 , mtdblock4
254 , 0 , 62720 , mmcblk0
254 , 1 , 32000 , mmcblk0p1

lma 2009-07-19 10:33

Re: Partitioning a flash card problems
 
Quote:

Originally Posted by Firebat2222 (Post 305394)
major , minor , #blocks , name
...
254 , 0 , 62720 , mmcblk0
254 , 1 , 32000 , mmcblk0p1

That indicates only one partition on the card. First try unmounting (if necessary), removing and reinserting it so that the kernel rescans the partition table. If /proc/partitions still says the same re-do the partitioning.

Firebat2222 2009-07-19 10:48

Re: Partitioning a flash card problems
 
I unmounted and removed the card, and "cat /proc/partitions" no longer showed the last 2 lines.

I then reinserted the card, and re-partitioned the card, but after doing a final cat /proc/partitions scan it showed the same entries as you saw me post earlier.

bunanson 2009-07-19 10:50

Re: Partitioning a flash card problems
 
Go Control Panel>Memory>Virtual>Uncheck Extend virtual memory

bun

Firebat2222 2009-07-19 10:52

Re: Partitioning a flash card problems
 
it was never checked in the first place

Firebat2222 2009-07-19 10:53

Re: Partitioning a flash card problems
 
although, is there a way to remove virtual memory in the terminal?

lma 2009-07-19 11:25

Re: Partitioning a flash card problems
 
Quote:

Originally Posted by Firebat2222 (Post 305397)
I then reinserted the card, and re-partitioned the card, but after doing a final cat /proc/partitions scan it showed the same entries as you saw me post earlier.

Hm, maybe the 770 sfdisk is slightly different... Try using it interactively, without a here document:

Code:

# sfdisk /dev/mmcblk0
1,15000,6
15001,,
<enter>
<enter>

and say "y" if/when it asks to write the partition table to disk. Do post the entire output here if it still doesn't work.

Quote:

Originally Posted by Firebat2222 (Post 305400)
although, is there a way to remove virtual memory in the terminal?

"swapoff -a" to stop using it, "gconftool-2 -s /system/osso/af/mmc-swap -t bool false" (or maybe /system/osso/af/internal-mmc-swap? not sure which key the 770 is using) to make osso forget about it and "rm /media/mmc1/.swap" to delete it.


All times are GMT. The time now is 19:17.

vBulletin® Version 3.8.8