maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N900 (https://talk.maemo.org/forumdisplay.php?f=44)
-   -   The problem of internal memory (https://talk.maemo.org/showthread.php?t=81218)

behrooz 2011-12-30 18:25

The problem of internal memory
 
I few months that I have problems with the phone's internal memory
I flash a different way!
But it still remains difficult
I am faced with the following message after flash :(
Please help me solve this problem would be quite

http://up4.iranblog.com/images/z9hgdmpyxlysw01b40a.jpg

NIN101 2011-12-30 18:30

Re: The problem of internal memory
 
Did you flash EMMC ? What does the filemanager say when you chose the internal storage (if you see an entry for that)?

behrooz 2011-12-30 20:00

Re: The problem of internal memory
 
Quote:

Originally Posted by NIN101 (Post 1143573)
Did you flash EMMC ? What does the filemanager say when you chose the internal storage (if you see an entry for that)?

File Manager opens, but nothing inside it

maemo55 2012-01-01 03:06

Re: The problem of internal memory
 
hardware Problem

michaaa62 2012-01-01 14:22

Re: The problem of internal memory
 
To get this working in X-Terminal application you need rootsh installed:
Code:

sudo gainroot
umount /dev/mmcblk0p1

There might be an neglectable error here
Code:

fsck -af /dev/mmcblk0p1
mount /dev/mmcblk0p1 /home/user/MyDocs

If any errors occur, please post them here.

behrooz 2012-01-01 19:55

Re: The problem of internal memory
 
Quote:

Originally Posted by michaaa62 (Post 1144191)
To get this working in X-Terminal application you need rootsh installed:
Code:

sudo gainroot
umount /dev/mmcblk0p1

There might be an neglectable error here
Code:

fsck -af /dev/mmcblk0p1
mount /dev/mmcblk0p1 /home/user/MyDocs

If any errors occur, please post them here.


Code:

BusyBox v1.19.3 (Debian 1.19.3power1) built-in shell (ash)
Enter 'help' for a list of built-in commands.

~ $ sudo gainroot
Root shell enabled


BusyBox v1.19.3 (Debian 1.19.3power1) built-in shell (ash)
Enter 'help' for a list of built-in commands.

/home/user # umount /dev/mmcblk0p1
umount: can't umount /dev/mmcblk0p1: Invalid argument
/home/user # umount /dev/mmcblk0p1
umount: can't umount /dev/mmcblk0p1: Invalid argument
/home/user # fsck -af /dev/mmcblk0p1
fsck 1.41.3.maemo0 (12-Oct-2008)
dosfsck 2.11, 12 Mar 2005, FAT32, LFN
/dev/mmcblk0p1: 1026 files, 3857/393231 clusters
/home/user # mount /dev/mmcblk0p1 /home/user/MyDocs
/home/user #

The drive will mount the file management

But do not drive after restart :confused:

michaaa62 2012-01-01 20:49

Re: The problem of internal memory
 
Did you reboot for some purpose?
Did you get access to the files?

The commands seem to have succeeded, no unexpected errors in the X-Terminal output!

Mike Fila 2012-01-01 20:56

Re: The problem of internal memory
 
You could try to format the drive since you can see it in the file manager.

Open file manager press and hold nokia N900 until the menu pops up and choose format.

behrooz 2012-01-02 00:35

Re: The problem of internal memory
 
Quote:

Originally Posted by michaaa62 (Post 1144286)
Did you reboot for some purpose?
Did you get access to the files?

The commands seem to have succeeded, no unexpected errors in the X-Terminal output!

After the restart file manager is empty
But you can mount the drive and the drive is the default file

I unbutu - flasher - Phoenix, I flash the phone with both file

(Ate this problem when the image of the device installed on megoo)

So how can I solve this problem? :(

I formatted the drive via the phone still the same

Estel 2012-01-02 02:41

Re: The problem of internal memory
 
Definitely it is not a hardware problem - that's good. IMO, some of Your initial scripts (executed on boot) aren't working properly, thus Your vfat isn't mounted as MyDocs on boot.

You can:

a) Check init scripts related to MyDocs mounting - use search for list of them. You can also think for a while, what action that You did could affect boot scripts.

b) flash FIASCO (see reflashing in wiki). If problem still persist, flash whole vanilla eMMC image + fiasco. It's no way for it to persist after that. This solution is best to take *if* (and only if) You've created some mess on Your device, that You don't know how to roll back, or can't identify.

c) If You don't care after tracking down origins of problem, or cleaning whole thing from scratch, You can just create a text file in Your /etc/event.d/ (for example, /etc/event.d/mydocson), and paste following content into it:
Code:

description "MyDocs on"
start on started hildon-desktop
stop on starting shutdown
console none
service

script

# umounting /dev/mmcblk0p1, just in case something was screwed up bizzarely, and it get mounted somewhere else by boot scripts
umount /dev/mmcblk0p1

#mounting MyDocs exactly the way it should be mounted on boot
mount -t vfat /dev/mmcblk0p1 /home/user/MyDocs -o noauto,nodev,noexec,nosuid,noatime,nodiratime,utf8,uid=29999,shortname=mixed,dmask=000,fmask=0133,rodir

end script

This way, after every boot You'll have MyDocs mounted. Be aware of some untraced bug, that, in some cases, makes MyDocs to stay unmounted after using mass storage mode (even if one use "safe device removal") - if this affect You as well, You may want to create a script of any name You fancy in /usr/local/sbin/, and paste this inside:
Code:

#!/bin/sh

# Mounting eMMC partition 1
mount -t vfat /dev/mmcblk0p1 /home/user/MyDocs -o noauto,nodev,noexec,nosuid,noatime,nodiratime,utf8,uid=29999,shortname=mixed,dmask=000,fmask=0133,rodir

# Printing info
dbus-send --type=method_call --dest=org.freedesktop.Notifications /org/freedesktop/Notifications org.freedesktop.Notifications.SystemNoteInfoprint string:"eMMC vFAT mounted, MyDocs is available"

... the (as root) chmod +x it. Ñow, every time Your MyDocs is unmounted after mass storage (or any unknown disaster) You may mount it by just executing this script as root - it will ever give Your fancy popup message upon completion ;) (As with every script located in correct place, You don't need to type full path to execute it - name alone in root terminal is sufficient, and tab auto-completion works like with every program).

Hope it helps.

/Estel


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

vBulletin® Version 3.8.8