maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   General (https://talk.maemo.org/forumdisplay.php?f=7)
-   -   N900 Memory card format unsupported (https://talk.maemo.org/showthread.php?t=79685)

helloct 2011-11-04 18:47

N900 Memory card format unsupported
 
hello

I end up with Memory card format ussupported while trying to install nitdroid in my internal EMMC with this tuto http://wiki.maemo.org/Nitdroid_easy_install_on_EMMC This is what i get with sfdisk -l .

BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso30+0m5) built-in shell (ash)
Enter 'help' for a list of built-in commands.

~ $ sudo gainroot
Root shell enabled


BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso30+0m5) built-in shell (ash)
Enter 'help' for a list of built-in commands.

/home/user # sfdisk -l

Disk /dev/mmcblk0: 977024 cylinders, 4 heads, 16 sectors/track
Units = cylinders of 32768 bytes, blocks of 1024 bytes, counting from 0

Device Boot Start End #cyls #blocks Id System
/dev/mmcblk0p1 0+ 75 76- 2424 83 Linux
/dev/mmcblk0p2 884865 950400 65536 2097152 83 Linux
/dev/mmcblk0p3 950401 974976 24576 786432 82 Linux swap / Solaris
/dev/mmcblk0p4 0 - 0 0 0 Empty
/home/user #


when I connect it to my PC i GET two device one with 2mb as space, the second ask me to insert a disk.

help please, its been a week i search, see similar thread but nothing.

tuxsavvy 2011-11-04 19:04

Re: N900 Memory card format unssupported
 
1) If I'm not mistaken, nitdroid is to be ideally installed on the microSD{HC} card, not in the eMMC.
2) Let me guess, windows? Also you have enabled mass storage mode? The one with 2MB free I'm guessing is your 27GB space which is literally used up. The other one might be /home|/opt which is not normally accessible or it might be linux swap which again should not be be normally accessible. Not that it matters that much anyway.

helloct 2011-11-04 19:18

Re: N900 Memory card format unssupported
 
Well thank for your reply.
1) well I thought it was possible to install it on the N900 internal memory thats why...

2)yes am in windows but i have Ubuntu on dualboot too (if this may help)

yes I have enabled storage mode, I use to get N900 as name of the mass storage but here I have just disc amovible.

between, I installed Storage Usage And it only show my RootFS. Flashed it two times but nothing.

helloct 2011-11-05 13:37

Re: N900 Memory card format unssupported
 
Help me please.

michaaa62 2011-11-05 16:23

Re: N900 Memory card format unsupported
 
Step 6 of the tutorial went bad, really bad! Instead of a usable MyDocs partition, there was some sort of mistyping in fdisk, i think, which led to that tiny partition
Quote:

/dev/mmcblk0p1 0+ 75 76- 2424 83 Linux
and some free unused space between it and the optfs-partition
Quote:

/dev/mmcblk0p2 884865 950400 65536 2097152 83 Linux
Please note the difference between 76-(end of first partition) and 884865(start of second partition)

Return to step 5 and delete the first partition and continue carefully from there.

helloct 2011-11-05 17:01

Re: N900 Memory card format unsupported
 
Quote:

Originally Posted by michaaa62 (Post 1118781)

Return to step 5 and delete the first partition and continue carefully from there.

I can't return to step 5. when I type p it says
-sh: p: not found

And if I start from step 1 it says at line 3

cp: cannot stat ' /home/user/MyDocs/util-linux_2.13.1.1-1_armel.deb' :No such file or directory

What I do? :(

bbkshine 2011-11-05 18:28

Re: N900 Memory card format unsupported
 
Reboot it And try again..

Btw Currently I am doing the same Process with 2-3 guides..

http://talk.maemo.org/showthread.php?t=66459
http://wiki.maemo.org/Nitdroid_easy_...lling_Nitdroid

Will get u the result after some hours abt my installation...

Hope everything will went cool

helloct 2011-11-05 18:47

Re: N900 Memory card format unsupported
 
Quote:

Originally Posted by bbkshine (Post 1118817)
Reboot it And try again..

Btw Currently I am doing the same Process with 2-3 guides..

http://talk.maemo.org/showthread.php?t=66459
http://wiki.maemo.org/Nitdroid_easy_...lling_Nitdroid

Will get u the result after some hours abt my installation...

Hope everything will went cool

Thank you for your help.

But what will happen IF I flash the whole EMMC??? I dont care about my data. I want erase ALL ALL (RootFS, EMMC...)

michaaa62 2011-11-05 18:58

Re: N900 Memory card format unsupported
 
Sorry..., step 5 is in fdisk from util-linux package, but after deletion of the first partition and reboot some time ago, there is NO MyDocs content apart from what is maemo creating by default. Be aware that space is small and precious right now with a missing MyDocs partition.

BUT: /home/user/bin should still exist so starting with step 3 should be possible.

helloct 2011-11-05 19:09

Re: N900 Memory card format unsupported
 
Quote:

Originally Posted by michaaa62 (Post 1118826)
Sorry..., step 5 is in fdisk from util-linux package, but after deletion of the first partition and reboot some time ago, there is NO MyDocs content apart from what is maemo creating by default. Be aware that space is small and precious right now with a missing MyDocs partition.

BUT: /home/user/bin should still exist so starting with step 3 should be possible.

Well I dont know a lot about those command but I think I cant do step 3 without Fdisk installed first right???

anyways, after reboot here is what I get from step 3:
/bin/sh: home/user/bin/fdisk: not found.

Between how can delete that first partition???

peterleinchen 2011-11-05 19:32

Re: N900 Memory card format unsupported
 
Hey .

Try
which fdisk
or
which sfdisk
or which gparted

and see, if you have them installed.
Output should be
/sbin/fdisk
or similar.

Then you may try to get your first partition back and restore also the file system flag. Maybe you are lucky and MyDocs is as before.

If not, you may reflash your device with eMMC vanilla image first. no reboot and then flash firmware.
This will for sure recreate everything and you will have a virgin N900 again.

michaaa62 2011-11-05 19:37

Re: N900 Memory card format unsupported
 
Then, i am afraid, you have to start the whole process again But first download only fdisk containing util-linux package to correct the partitions and to setup the My Docs partition correctly later. This will also take care of resizing of the first partition and creating the filesystem.

Edit: Did you flash the 8GB custom image? There is no technical background to that question, just want to be assured that space does not become a problem later on.

helloct 2011-11-05 21:15

Re: N900 Memory card format unsupported
 
@peterleinchen
which sfdisk work

Quote:

Originally Posted by peterleinchen;
Then you may try to get your first partition back and restore also the file system flag

And how to do that?

(Yes me KING of SuperNOOB :confused:)

@michaaa62
Quote:

Originally Posted by michaaa62 (Post 1118830)
Then, i am afraid, you have to start the whole process again

hi,
well does this refer to my last post or to what peterleinchen suggest
(reflash your device with eMMC vanilla image first. no reboot and then flash firmware.) ???

Quote:

Originally Posted by michaaa62 (Post 1118830)
But first download only fdisk containing util-linux package to correct the partitions and to setup the My Docs partition correctly later.

And how to download Fdisk?
As far as I know, step 1 describe how to download and install Fdisk, I've try it but get stuck at line 3 http://bit.ly/skyLoB.

Again THANK YOU for your help.

tuxsavvy 2011-11-05 22:03

Re: N900 Memory card format unsupported
 
1) fdisk is part of busybox-power which is available in extras-devel
2) When you hit p and you got:
Code:

-sh: p: not found
It means you're not within the fdisk prompt but you're back in shell prompt. Notice how the error starts with -sh? That means its back to the standard linux shell.

A fdisk prompt would look something like this:
Code:

Command (m for help):
A normal ash command prompt (part of busybox package and can be easily modified) would look something like this:
Code:

~ $

michaaa62 2011-11-05 22:07

Re: N900 Memory card format unsupported
 
There is no need to reflash!
You just lost the MyDocs partition, which should, anyway, be deleted and later recreated smaller.
Just start the procedures of the linked howto http://wiki.maemo.org/Nitdroid_easy_install_on_EMMC again. First download the package containing fdisk : EDIT: Or go tuxsavvy's way and install busybox-power to get a working fdisk Through apt-get.
Right now your device has no partitions mounted to MyDocs, but the folder /home/user/MyDocs still exists.
Then follow the 'method2' procedure through to step 9. You then will have prepared a working MyDocs partition again and a seperate Nitdroid partition, aka. /dev/mmcblk0p5.

Good luck!

helloct 2011-11-05 22:14

Re: N900 Memory card format unsupported
 
Quote:

Originally Posted by tuxsavvy (Post 1118861)
1) fdisk is part of busybox-power which is available in extras-devel

OK thank.
Am installing busybox-power so, will informe you.

peterleinchen 2011-11-05 22:17

Re: N900 Memory card format unsupported
 
Quote:

Originally Posted by helloct (Post 1118793)
I can't return to step 5. when I type p it says
-sh: p: not found

And if I start from step 1 it says at line 3

cp: cannot stat ' /home/user/MyDocs/util-linux_2.13.1.1-1_armel.deb' :No such file or directory

What I do? :(

With sfdisk its quite complicated, even if you know what to do.

But you have to have fdisk already installed (assuming under /usr/bin)
So return to step 5 is not so wrong:
p is not a command, but an option inside of fdisk program
so before typing p, you need to run fdisk (or /usr/bin/fdisk)

and of course you cant start earlier as you do not have a MyDocs partition anymore.

--edit
oops, sorry. Did not see those posts. Michaaa is right, the folder /home/user/MyDocs still exists and can be used. So just go ahead ...

helloct 2011-11-05 22:41

Re: N900 Memory card format unsupported
 
ok, I add extra devel to download busybox-box, refresh and oops, my RootSF is full now though I have almost any app installed.

so to install it through terminal, it's like that????

root
apt-get install busybox-power

right???

helloct 2011-11-05 22:49

Re: N900 Memory card format unsupported
 
Ok done,
Fdisk is installed.
I'll informe you for the next stuff.

helloct 2011-11-05 23:11

Re: N900 Memory card format unsupported
 
Ok back again
at step 5/9 I got this when I enter /home/user/bin/fdisk /dev/mmcblk0

-sh: /home/user/bin/fdisk: not found

the same with /usr/bin/fdisk or /usr/bin/fdisk /dev/mmcblk0 that give me

-sh: /usr/bin/fdisk: not found
:(

though with which fdisk i get

/sbin/fdisk

helloct 2011-11-06 05:15

Re: N900 Memory card format unsupported
 
Thank, I just did a flash.

http://i42.tinypic.com/2ppet04.png

michaaa62 2011-11-06 06:50

Re: N900 Memory card format unsupported
 
After flashing you have a working MyDocs again, but still have to go through all of the steps of the howto to adjust the size and create an extra partition for Nitdroid.
Quote:

Originally Posted by helloct (Post 1118876)
Ok back again
at step 5/9 I got this when I enter /home/user/bin/fdisk /dev/mmcblk0

-sh: /home/user/bin/fdisk: not found

the same with /usr/bin/fdisk or /usr/bin/fdisk /dev/mmcblk0 that give me

-sh: /usr/bin/fdisk: not found
:(

though with which fdisk i get

/sbin/fdisk

I guess, at the time the wiki page, you are following, was written, there was no busybox-power available or not known to the author(s).
With fdisk provided by busybox-power (your shell) there is no need and no success with steps 1, 3, so skip them. Also in step 9: there is no /home/user/bin/fdisk, just use
Code:

fdisk /dev/mmcblk0

helloct 2011-11-06 10:55

Re: N900 Memory card format unsupported
 
@michaaa62

ok, thank.
But after my flash I have 98.2MB / 227,9 as free space in RootFS with only Storage Usage installed as app. is this normal?

michaaa62 2011-11-06 11:18

Re: N900 Memory card format unsupported
 
That is actually a pretty good result, i had worse results after a reflash than that! The 256MB of the N900 is really only 227,9 MB as shown, and fiasco image will take those 130 MB.

There are some scripts to even get some more valuable space back, i prefer that one: http://wiki.maemo.org/User:Tanner#Sa...pace_on_rootfs

helloct 2011-11-06 21:17

Re: N900 Memory card format unsupported
 
Quote:

Originally Posted by michaaa62 (Post 1118954)
After flashing you have a working MyDocs again, but still have to go through all of the steps of the howto to adjust the size and create an extra partition for Nitdroid.

I guess, at the time the wiki page, you are following, was written, there was no busybox-power available or not known to the author(s).
With fdisk provided by busybox-power (your shell) there is no need and no success with steps 1, 3, so skip them. Also in step 9: there is no /home/user/bin/fdisk, just use
Code:

fdisk /dev/mmcblk0

hi, michaaa,
At line 12 step 7, it ask me Partition number (1-4): and if I enter the value 5 as described, it tell me:

Value out of range.
Partition number (1-4):


And am stuck their, as this was the cause of my main problem.
So what to do?

michaaa62 2011-11-06 21:27

Re: N900 Memory card format unsupported
 
So the step, where the extended partition is created, failed. Look at your partitions with 'p' like print partition table, there is also 'm' for manual in fdisk.

EDIT: There seems to be an error in the usage of fdisk in step 7 of the tutorial!!!
Here is the block that i consider correct, the red letter is a small 'L':[code]n
e
First cylinder: 800001
Last cylinder: 884865
n
l
First cylinder: 800001
Last cylinder: 884865
t
1
76
t
5
76

helloct 2011-11-06 21:41

Re: N900 Memory card format unsupported
 
Quote:

Originally Posted by michaaa62 (Post 1119228)
So the step, where the extended partition is created, failed. Look at your partitions with 'p' like print partition table, there is also 'm' for manual in fdisk.

So I add a new partion with 'n' or what?

I use to do those stuff easily on PC while installing different linux but here, it's like I have never touch a keyboard.

michaaa62 2011-11-06 21:51

Re: N900 Memory card format unsupported
 
Quote:

Originally Posted by helloct (Post 1119233)
So I add a new partion with 'n' or what?

I use to do those stuff easily on PC while installing different linux but here, it's like I have never touch a keyboard.

fdisk is a pain to use, like vi!:eek:

helloct 2011-11-06 21:59

Re: N900 Memory card format unsupported
 
OK, I've learn however :)

'q' to quit and mount /home/user/MyDocs

peterleinchen 2011-11-06 22:53

Re: N900 Memory card format unsupported
 
Quote:

Originally Posted by michaaa62 (Post 1119234)
fdisk is a pain to use, like vi!:eek:

Yeah, you are right. But if you are used to them you are very fast and you love 'em. Me not ;)

We may have only 4 primary (incl. extended) partitions on a disk. So this will be the reason why he chose first an extended partition 4 and then created the 5th logical partition (inside that 4th extended).
Do not know why he chose that way, cause you may have used that4th directly as primary! ? This makes only sense, if you want to create more logical partitions inside that 4th extended one. But hey, nevermind.

Did you succeed?
I saw, that you learned how to quit, but yo need to confirm with 'w' write :D


All times are GMT. The time now is 20:01.

vBulletin® Version 3.8.8