View Single Post
Estel's Avatar
Posts: 5,028 | Thanked: 8,613 times | Joined on Mar 2011
#10
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
__________________
N900's aluminum backcover / body replacement
-
N900's HDMI-Out
-
Camera cover MOD
-
Measure battery's real capacity on-device
-
TrueCrypt 7.1 | ereswap | bnf
-
Hardware's mods research is costly. To support my work, please consider donating. Thank You!
 

The Following 3 Users Say Thank You to Estel For This Useful Post: