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)

Firebat2222 2009-07-18 06:57

Partitioning a flash card problems
 
I seem to have run into a problem.... While following the guide to create a new partition on the nokia 770, i am unable to umount /media/mmc2

i get the following line in return: umount: /media/mmc2: invalid argument

maemofied 2009-07-18 07:06

Re: Partitioning a flash card problems
 
Quote:

Originally Posted by Firebat2222 (Post 305256)
I seem to have run into a problem.... While following the guide to create a new partition on the nokia 770, i am unable to umount /media/mmc2

i get the following line in return: umount: /media/mmc2: invalid argument


thats becoz u might not have mounted that or its already unmounted. May be u can jus ignore that.

Firebat2222 2009-07-18 07:24

Re: Partitioning a flash card problems
 
alright, so i ignored it and went along with the procedure, but ran into another problem which i belive to be linked to this one.... :(

now, when trying to run mk2fs /dev/mmcblk0p2 i get the following reply:

could not stat /dev/mmcblk0p2 --- No such file or directory

The device apparently does not exist; did you specify it correctly?

maemofied 2009-07-18 08:34

Re: Partitioning a flash card problems
 
i think your partitioning got conked somewhere.

Open xterm, type df and press enter and see if the partition /dev/mmcblk0p2 is listed. If it is not listed then your partitioning was not proper.

Firebat2222 2009-07-18 18:54

Re: Partitioning a flash card problems
 
hmmm.... it is not listed.... i am using a 770, and i think i remember reading somewhere that the procedure is slightly different, and had to do with the mmc2....

bunanson 2009-07-18 21:24

Re: Partitioning a flash card problems
 
Quote:

Originally Posted by Firebat2222 (Post 305256)
I seem to have run into a problem.... While following the guide to create a new partition on the nokia 770, i am unable to umount /media/mmc2

i get the following line in return: umount: /media/mmc2: invalid argument

You would also get this err mess if you are NOT root.

bun

Firebat2222 2009-07-19 00:26

Re: Partitioning a flash card problems
 
i am using gainroot.... and i make sure i have root acess every time i use the terminal....

GeraldKo 2009-07-19 07:54

Re: Partitioning a flash card problems
 
This could be off the wall, and I'm not familiar with the 770, but is it an mmc2 partition you want, or is it mmc1 on the 770? What "guide" are you following? Got a link? You're trying to do what?

Firebat2222 2009-07-19 08:10

Re: Partitioning a flash card problems
 
The guide is the one straight from maemo, http://wiki.maemo.org/Partitioning_a_flash_card

i want to create a bootable partition on the removable mmc card

this is mainly for practice, as i have a 2gb card coming in the mail, and would like to try booting debian or some other OS off of the card when it gets here, but for now i would like to figure out what i actually need to do

maemofied 2009-07-19 09:32

Re: Partitioning a flash card problems
 
Please make sure that you are following the below steps properly.

apt-get install e2fsprogs
umount /media/mmc1
umount /media/mmc2
sfdisk /dev/mmcblk0 << EOF
1,15000,6
15001,,
EOF


Follow each step at a time (enter one line of text and press enter)

Sorry if my detailing is too much. :)

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.

Firebat2222 2009-07-19 18:23

Re: Partitioning a flash card problems
 
Not sure if this is what was supposed to happen, or if it worked or not....

heres the output after I answered yes to writing the new partition:
Code:

Sucessfully wrote the new partition table....

If you created or changed a dos partition, /dev/foo7, say, then use dd
(1)
to zero the first 512 bytes: dd if =/dev/zero of=/dev/foo7 bs=512 count=1
(see fdisk(8).)


nhanquy 2009-07-19 18:49

Re: Partitioning a flash card problems
 
Quote:

Originally Posted by Firebat2222 (Post 305456)
Not sure if this is what was supposed to happen, or if it worked or not....

heres the output after I answered yes to writing the new partition:
Code:

Sucessfully wrote the new partition table....

If you created or changed a dos partition, /dev/foo7, say, then use dd
(1)
to zero the first 512 bytes: dd if =/dev/zero of=/dev/foo7 bs=512 count=1
(see fdisk(8).)


It works. Congratulations! now reboot and format !

Firebat2222 2009-07-19 19:19

Re: Partitioning a flash card problems
 
still saying umounting mmc2 is and invalid argument :/

and if i try to format using "mke2fs /dev/mmcblk0p2" it says no such file or directory

Ace195 2009-07-29 02:21

Re: Partitioning a flash card problems
 
I am getting the same issue.


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

vBulletin® Version 3.8.8