maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   General (https://talk.maemo.org/forumdisplay.php?f=7)
-   -   help mounting microSD partitioning (https://talk.maemo.org/showthread.php?t=76146)

maemo-coldhearted 2011-08-29 07:49

help mounting microSD partitioning
 
partitioning my sdCard giving me error like this

Quote:

root
umount /dev/mmcblk1p1
sfdisk -uM /dev/mmcblk1p1 << EOF
,2100,C
,,L
,,
,,
EOF
ERROR

Quote:

Checking that no-one is using this disk right now...
BLKRRPART: Invalid argument
OK
Warning: start=16 - this looks like a partition rather than the entire disk. Using fdisk on it is probably meaningless.
[Use the ==force option if you really want this]
i dont know what is the force option to do that? any idea?

and again
Quote:

umount /dev/mmcblk1p1
mkfs.vfat /dev/mmcblk1p1 -n sdcard
mke2fs -j -m0 -L Android /dev/mmcblk1p2
ERROR

Quote:

Could not stat /dev/mmcblk1p2 --- No such file or directory

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

please advice me about my problem please.....

Zas 2011-08-29 08:30

Re: help mounting microSD partitioning
 
Use "sfdisk -uM /dev/mmcblk1 << EOF"
instead of "sfdisk -uM /dev/mmcblk1p1 << EOF"

maemo-coldhearted 2011-08-29 10:35

Re: help mounting microSD partitioning
 
i successfully use your code like this

Quote:

sfdisk -uM /dev/mmcblk1 << EOF
but after that i tried to enter this code but it gives me error

Quote:

umount /dev/mmcblk1p1
it gives me error that " Invalid Argument "

after i use your code sfdisk -uM /dev/mmcblk1 << EOF my N900 say

Quote:

Memory Card Format Unsupported
but i know this Unsupported is due to i format the memory card to other format.. now i want to know how will i do after i use your CODE

then i want to insert this code

Quote:

umount /dev/mmcblk1p1
mkfs.vfat /dev/mmcblk1p1 -n sdcard
mke2fs -j -m0 -L Android /dev/mmcblk1p2
but in the line of "umount /dev/mmcblk1p1" it gives me error Invalid Argument..

any idea?

Amboss 2011-08-29 10:45

Re: help mounting microSD partitioning
 
I'm not much into this, but:

You change the device name on the sfdisk command. Shouldn't you be changing it on the other commands as well?

umount /dev/mmcblk1p1

Whats the output with:
sfdisk -l

maemo-coldhearted 2011-08-29 10:56

Re: help mounting microSD partitioning
 
by the way i want to install nitdroid on my iphone i just see that code on this site http://wiki.nitdroid.com/index.php?title=N900-install

i know they update already the nitdroid installer to autoinstall but my internet suck me because of my net is so slow but i have the files of nitdroid so i want to install it manually...

any idea about my problem?


i dont know actually about the output of this...
Quote:

Whats the output with:
sfdisk -l

misterc 2011-08-29 10:58

Re: help mounting microSD partitioning
 
Quote:

Originally Posted by maemo-coldhearted (Post 1078346)
[...]
but in the line of "umount /dev/mmcblk1p1" it gives me error Invalid Argument..

any idea?

what is the output of
Code:

ls /dev/mm*
?
are you doing all this as root (or using sudo)?

misterc 2011-08-29 11:05

Re: help mounting microSD partitioning
 
Quote:

Originally Posted by maemo-coldhearted (Post 1078355)
by the way i want to install nitdroid on my iphone [...]

are you sure about that ???

maemo-coldhearted 2011-08-29 11:08

Re: help mounting microSD partitioning
 
how can i know the output of this code

Code:

ls /dev/mm*

maemo-coldhearted 2011-08-29 11:08

Re: help mounting microSD partitioning
 
sorry misterc on my N900...

sorry i've just confused..

maemo-coldhearted 2011-08-29 11:12

Re: help mounting microSD partitioning
 
Quote:

are you doing all this as root (or using sudo)?
yes im doing that root also

Quote:

root
umount /dev/mmcblk1p1
Quote:

sudo gainroot
umount /dev/mmcblk1p1
it says invalid argument

misterc 2011-08-29 13:12

Re: help mounting microSD partitioning
 
Quote:

Originally Posted by maemo-coldhearted (Post 1078367)
yes im doing that root also





it says invalid argument

instead of typing
Code:

umount /dev/mmcblk1p1
type
Code:

ls /dev/mm*
and post the output here

Amboss 2011-08-29 14:56

Re: help mounting microSD partitioning
 
Quote:

Originally Posted by maemo-coldhearted (Post 1078365)
how can i know the output of this code

Code:

ls /dev/mm*

It will give you a list of devices with names starting with "mm"

There needs to be an item listed "mmcblk1p1" for the umount to work. If there is none u don't need to unmount it.

btw: did you type in the other lines before EOF as well?

Code:

sfdisk -uM /dev/mmcblk1 << EOF
,<YOUR NUMBER IN MB>,C
,,L
,,
,,
EOF

all lines are needed as the EOF actually ends the command.

maemo-coldhearted 2011-08-30 02:16

Re: help mounting microSD partitioning
 
yes.. mates..

after i type this code
Quote:

ls /dev/mm*
it gives me a list of " mm "

that comes to

/dev/mmcblk0
/dev/mmcblk0p1
/dev/mmcblk0p2
/dev/mmcblk0p3
/dev/mmcblk1
/dev/mmcblk1p1
/dev/mmcblk1p2

so what should i do after i see this commands?

Quote:

There needs to be an item listed "mmcblk1p1" for the umount to work. If there is none u don't need to unmount it.
so the "mmcblk1p1" should be work because i see the command of that on the list?


and yes...
i do followed correct the code like this
Quote:

sfdisk -uM /dev/mmcblk1 << EOF
,<YOUR NUMBER IN MB>,C
,,L
,,
,,
EOF

misterc 2011-08-30 05:16

Re: help mounting microSD partitioning
 
Quote:

Originally Posted by maemo-coldhearted (Post 1078745)
[...]

/dev/mmcblk0
/dev/mmcblk0p1
/dev/mmcblk0p2
/dev/mmcblk0p3
/dev/mmcblk1
/dev/mmcblk1p1
/dev/mmcblk1p2

so what should i do after i see this commands?[...]

to see which of those "devices" are mounted and thus actually available to the user, post the output of the following command
Code:

mount | grep mmc

maemo-coldhearted 2011-08-30 06:16

Re: help mounting microSD partitioning
 
how can i know if one of that devices are mounted?

after i use your code


"mount | grep mmc"

Amboss 2011-08-30 08:41

Re: help mounting microSD partitioning
 
The command shows only the items which are mounted. If /dev/mmcblk1p1
or /dev/mmcblk1p2 are listed they are mounted.

maemo-coldhearted 2011-08-30 09:20

Re: help mounting microSD partitioning
 
so if i type this command

Quote:

umount /dev/mmcblk1p1
and if says invalid argument and then i try to type this command

Quote:

mount | grep mmc
but i didnt see a "mmcblk1p1" to umount so i dont need to umount it right?

so i just go to the next command right?

then if i use this command

Quote:

umount /dev/mmcblk1p1
mkfs.vfat /dev/mmcblk1p1 -n sdcard
mke2fs -j -m0 -L Android /dev/mmcblk1p2

cd /
mkdir /and
but in the command of "mkdir /and" it says file exist so i dont need to mkdir /and its because exist already? so i just go to the next command? is it right?


please advice mates...

maemo-coldhearted 2011-08-30 09:57

Re: help mounting microSD partitioning
 
i successfully installed the ginger.tar on my N900 but

after i boot in mutiboot then i choose the Nitdroid but i see the error

Quote:

Fs Opts: rw,noatime,errors=ro
in the multiboot menu i See the

1 - Maemo 2.6.28-omapl
2 - Maemo kernel-power46
3 - Nitdroid 2.6.28.NIT.06 on mmcblk1p2

how to solve this issue?


All times are GMT. The time now is 00:59.

vBulletin® Version 3.8.8