maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   MeeGo / Harmattan (https://talk.maemo.org/forumdisplay.php?f=45)
-   -   [HELP] Application data - Not available in mass storage mode (https://talk.maemo.org/showthread.php?t=89579)

HtheB 2013-03-23 23:28

[HELP] Application data - Not available in mass storage mode
 
1 Attachment(s)
I have a stange problem with my N9.
I can't install any apps, it says that there is no space left. (The device somehow thinks that it's in mass storage mode :confused: )


Even after flashing, after some time, I always get this error, even if it's not within mass storage mode!?

Does anybody know what the problem might be?

chiagn900 2013-03-24 00:10

Re: [HELP] Application data - Not available in mass storage mode
 
did u flash the emmc.bin? flashed today got same error...reflashing with emmc.bin also now...will give u feed bCk once im done

chiagn900 2013-03-24 00:15

Re: [HELP] Application data - Not available in mass storage mode
 
flasher -f -F main.bin --erase-user-data=secure
flasher -f -F main.bin -F emmc.bin --flash-only=mmc

juiceme 2013-03-24 10:19

Re: [HELP] Application data - Not available in mass storage mode
 
When this happens, have you tried connecting it to a computer in mass storage mode, and then disconnecting and checking if it can get out of export mode?

What does it say about mmcblk0p1 when you check the mountpointts or fo a "df -h" ?

HtheB 2013-03-24 11:39

Re: [HELP] Application data - Not available in mass storage mode
 
Quote:

Originally Posted by juiceme (Post 1331309)
When this happens, have you tried connecting it to a computer in mass storage mode, and then disconnecting and checking if it can get out of export mode?

What does it say about mmcblk0p1 when you check the mountpointts or fo a "df -h" ?

if you look more closely, it's not the MyDocs that has the problem... but here is the output


$ df -h
Filesystem Size Used Available Use% Mounted on
/dev/root 3.9G 1.9G 1.9G 50% /
devtmpfs 10.0M 248.0K 9.8M 2% /dev
tmpfs 4.0M 64.0K 3.9M 2% /tmp
tmpfs 512.0K 148.0K 364.0K 29% /var/run
none 10.0M 248.0K 9.8M 2% /dev
tmpfs 64.0M 380.0K 63.6M 1% /dev/shm
/dev/mmcblk0p1 8.8G 7.2G 1.6G 82% /home/user/MyDocs
aegisfs 3.9G 1.9G 1.9G 50% /var/run/applauncherd
aegisfs 3.9G 1.9G 1.9G 50% /home/user/.facebook/private
aegisfs 3.9G 1.9G 1.9G 50% /home/user/.odnp-fpcd/private
aegisfs 3.9G 1.9G 1.9G 50% /home/user/.mms/private
aegisfs 3.9G 1.9G 1.9G 50% /home/user/.odnp/private
aegisfs 3.9G 1.9G 1.9G 50% /home/user/.positioningd/private
aegisfs 3.9G 1.9G 1.9G 50% /home/user/.signon/private
aegisfs 3.9G 1.9G 1.9G 50% /home/user/.slpgwd/layer
aegisfs 3.9G 1.9G 1.9G 50% /home/user/private
aegisfs 3.9G 1.9G 1.9G 50% /var/cache/timed/aegis
aegisfs 3.9G 1.9G 1.9G 50% /etc/ssl/certs
/dev/mapper/signonfs 6.8M 41.0K 6.4M 1% /home/user/.signon/signonfs-mnt

coderus 2013-03-24 12:06

Quote:

/home/user/MyDocs aegisfs
what the hell?

thedead1440 2013-03-24 12:08

Re: [HELP] Application data - Not available in mass storage mode
 
Quote:

Originally Posted by coderus (Post 1331331)
what the hell?

You are reading it wrong :p

Its /home/user/MyDocs the mount-point for /dev/mmcblk0p1 then the next line is aegifs mounts...

juiceme 2013-03-25 06:02

Re: [HELP] Application data - Not available in mass storage mode
 
Quote:

Originally Posted by HtheB (Post 1331324)
if you look more closely, it's not the MyDocs that has the problem... but here is the output

Okay, now I see what's your problem :)

First I thought it's MyDocs (mmcblk0p1) but it is in fact your /home (mmcblk0p3)

If you look at the "df -h" of your device, you see that you only have /root and /Mydocs mounted, but your /home is on your rootfs :)

thedead1440 2013-03-25 06:08

Re: [HELP] Application data - Not available in mass storage mode
 
juiceme,

How do you know his /home is mounted on rootfs? Due to the aegisfs mounts being on /home/user/?

Aegisfs even with mount points on /home/user/ always are on rootfs so that's perfectly normal... Here is a regular user's aegisfs mounts with everything else mounted correctly too...

HtheB 2013-03-25 07:38

Re: [HELP] Application data - Not available in mass storage mode
 
So, what should I do? I'm still clueless where the problem might be

thedead1440 2013-03-25 07:44

Re: [HELP] Application data - Not available in mass storage mode
 
Check do you have a /dev/mmcbl0p3 then maybe do a manual mount to /home?

HtheB 2013-03-25 07:51

Re: [HELP] Application data - Not available in mass storage mode
 
Quote:

Originally Posted by thedead1440 (Post 1331543)
Check do you have a /dev/mmcbl0p3 then maybe do a manual mount to /home?

Hmmm, thats weird. I couldnt mount it, asks me if I'm root or not :/
tried it with opensh, gives an error aswell:

Code:

~ # mount /dev/mmcblk0p3 /home
mount: permission denied (are you root?)
~ # opensh


BusyBox v1.20.0.git (MeeGo 3:1.20-0.2+0m8) built-in shell (ash)
Enter 'help' for a list of built-in commands.

~ # mount /dev/mmcblk0p3 /home
mount: mounting /dev/mmcblk0p3 on /home failed: Invalid argument

~ # mount /dev/mmcblk0p3 /home/
mount: mounting /dev/mmcblk0p3 on /home failed: Invalid argument


thedead1440 2013-03-25 07:54

Re: [HELP] Application data - Not available in mass storage mode
 
Code:

mount -t ext4 /dev/mmcblk0p3 /home/

HtheB 2013-03-25 07:56

Re: [HELP] Application data - Not available in mass storage mode
 
Quote:

Originally Posted by thedead1440 (Post 1331545)
Code:

mount -t ext4 /dev/mmcblk0p3 /home/

Still the same problem as before, Invalid argument

thedead1440 2013-03-25 07:58

Re: [HELP] Application data - Not available in mass storage mode
 
Can you try to umount /home first and see what it gives you?

HtheB 2013-03-25 08:04

Re: [HELP] Application data - Not available in mass storage mode
 
Guess what.....
yeah...
umount: can't umount /home: Invalid argument

thedead1440 2013-03-25 08:08

Re: [HELP] Application data - Not available in mass storage mode
 
Whats the output of "cat /etc/fstab"

HtheB 2013-03-25 08:10

Re: [HELP] Application data - Not available in mass storage mode
 
Code:

rootfs / rootfs defaults,errors=remount-ro,noatime 0 0
/dev/mmcblk0p3 /home ext4 rw,noatime,errors=remount-ro,barrier=1 0 0
/dev/mmcblk0p1 /home/user/MyDocs vfat noauto,nodev,noexec,nosuid,noatime,nodiratime,utf8,uid=29999,shortname=mixed,dmask=000,fmask=0133,rodir 0 0
ubi0:var /var ubifs noauto,no_chk_data_crc,bulk_read


thedead1440 2013-03-25 08:12

Re: [HELP] Application data - Not available in mass storage mode
 
Hmm its fine; rebooting doesn't help also?

HtheB 2013-03-25 08:13

Re: [HELP] Application data - Not available in mass storage mode
 
Quote:

Originally Posted by thedead1440 (Post 1331557)
Hmm its fine; rebooting doesn't help also?

that's the first thing i've also do though, nothing helps :(

juiceme 2013-03-25 09:58

Re: [HELP] Application data - Not available in mass storage mode
 
Quote:

Originally Posted by thedead1440 (Post 1331515)
juiceme,

How do you know his /home is mounted on rootfs? Due to the aegisfs mounts being on /home/user/?

Aegisfs even with mount points on /home/user/ always are on rootfs so that's perfectly normal... Here is a regular user's aegisfs mounts with everything else mounted correctly too...

If you look at the first "df -h" listing HtheB provided, there is no "/dev/mmcblk0p3" at all seen there... hence it's not mounted.
Instead, the stuff in /home/ is just under the home folder on rootfs.

juiceme 2013-03-25 10:07

Re: [HELP] Application data - Not available in mass storage mode
 
Quote:

Originally Posted by HtheB (Post 1331544)
Hmmm, thats weird. I couldnt mount it, asks me if I'm root or not :/
tried it with opensh, gives an error aswell:

You cannot mount it because you are runnig the system, you cannot overlay a mount when you have LOTS of open files there currently :D

How to check i now; Create another directory where you can do the mount, or if for example your /mnt/ is unmounted, do:
Code:

mount -t ext4 /dev/mmcblk0p3 /mnt/
Then just check what you have on the /mnt/

When you can check that you actually HAVE the stuff that's supposed to be there, you can boot your device in maintanance mode, copy the recent stuff that you have in your rootFS /home/ to mmcblk0p3, delete all stuff under your rootFS /home/ to save rootfs space, and finally correct the thing why it does not mount it in boot phase.

I suspect you have played with your /sbin/preinit and changed the mount order... :D

HtheB 2013-03-25 10:14

Re: [HELP] Application data - Not available in mass storage mode
 
Quote:

Originally Posted by juiceme (Post 1331590)
You cannot mount it because you are runnig the system, you cannot overlay a mount when you have LOTS of open files there currently :D

How to check i now; Create another directory where you can do the mount, or if for example your /mnt/ is unmounted, do:
Code:

mount -t ext4 /dev/mmcblk0p3 /mnt/
Then just check what you have on the /mnt/

When you can check that you actually HAVE the stuff that's supposed to be there, you can boot your device in maintanance mode, copy the recent stuff that you have in your rootFS /home/ to mmcblk0p3, delete all stuff under your rootFS /home/ to save rootfs space, and finally correct the thing why it does not mount it in boot phase.

I suspect you have played with your /sbin/preinit and changed the mount order... :D

Well, I haven't played with anything at all... I don't even have openmode (only inception). I can clearly see whats in /home though... But the problem is that I sometimes I can't install something because the app.data has no space (because somehow, the phone thinks it's is mass storage)

I can't even mount it anywhere else either... Yes, not even on /mnt
It gives the same error as before:

/ # mount -t ext4 /dev/mmcblk0p3 /mnt
mount: mounting /dev/mmcblk0p3 on /mnt failed: Invalid argument

juiceme 2013-03-25 10:33

Re: [HELP] Application data - Not available in mass storage mode
 
Quote:

Originally Posted by HtheB (Post 1331592)
Well, I haven't played with anything at all... I don't even have openmode (only inception). I can clearly see whats in /home though... But the problem is that I sometimes I can't install something because the app.data has no space (because somehow, the phone thinks it's is mass storage)

I can't even mount it anywhere else either... Yes, not even on /mnt
It gives the same error as before:

/ # mount -t ext4 /dev/mmcblk0p3 /mnt
mount: mounting /dev/mmcblk0p3 on /mnt failed: Invalid argument

Well that's not what should happen:

Code:

~ # mount | grep /mnt
~ #
~ # mount -t ext4 /dev/mmcblk0p3 /mnt
~ #
~ # mount | grep /mnt
/dev/mmcblk0p3 on /mnt type ext4 (rw,relatime,errors=remount-ro,barrier=1,stripe=8,data=ordered)
~ # ls /mnt
UserEncrypted  developer      lost+found    nemo          nitdroid      user          user2
~ #

I do not know that much about inception since I dont use that, only open mode.
Is it possible that you need to try mounting under opensh (or adrianesh, or whatever it's called...?)

Also it's possible that your partition table is corrupted or your mmcblk0p3 is shomehow corrupted as being unmountable.

What does it say when you use fdisk to look at the partition table?
Mine looks like this;

Code:

~ #
~ # /sbin/sfdisk -l

Disk /dev/mmcblk0: 1957120 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        16  1632511  1632496  52239872    c  W95 FAT32 (LBA)
                end: (c,h,s) expected (1023,3,16) found (1023,63,32)
/dev/mmcblk0p2    1760512  1891583  131072    4194304  83  Linux
/dev/mmcblk0p3    1891584  1957119  65536    2097152  83  Linux
/dev/mmcblk0p4    1632512  1760511  128000    4096000  83  Linux
                start: (c,h,s) expected (1023,3,16) found (1023,63,32)
                end: (c,h,s) expected (1023,3,16) found (1023,63,32)

Disk /dev/dm-0: 0 cylinders, 0 heads, 0 sectors/track

sfdisk: ERROR: sector 0 does not have an msdos signature
 /dev/dm-0: unrecognized partition table type
No partitions found
~ #


HtheB 2013-03-25 11:21

Re: [HELP] Application data - Not available in mass storage mode
 
I can't mount it as root, it tells me that I'm not root. So I try to mount it using opensh...

output of fdisk:

# /sbin/sfdisk -l

Disk /dev/mmcblk0: 485120 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 16 288511 288496 9231872 c W95 FAT32 (LBA)
/dev/mmcblk0p2 288512 419583 131072 4194304 83 Linux
/dev/mmcblk0p3 419584 485119 65536 2097152 83 Linux
/dev/mmcblk0p4 0 - 0 0 0 Empty

Disk /dev/dm-0: 0 cylinders, 0 heads, 0 sectors/track

sfdisk: ERROR: sector 0 does not have an msdos signature
/dev/dm-0: unrecognized partition table type
No partitions found

thedead1440 2013-03-25 11:22

Re: [HELP] Application data - Not available in mass storage mode
 
You were playing around with Nemo?

HtheB 2013-03-25 11:23

Re: [HELP] Application data - Not available in mass storage mode
 
Quote:

Originally Posted by thedead1440 (Post 1331626)
You were playing around with Nemo?

Yes, but that was a long time ago (I did a reflash a couple times already though)

thedead1440 2013-03-25 11:26

Re: [HELP] Application data - Not available in mass storage mode
 
Quote:

Originally Posted by HtheB (Post 1331628)
Yes, but that was a long time ago (I did a reflash a couple times already though)

When you reflashed you should have used --no-preserve for the emmc flash to clear up the partitions properly...

Now I think you can just use telnet and export your partitions and re-create everything properly and try instead of doing a reflash...

juiceme 2013-03-25 11:57

Re: [HELP] Application data - Not available in mass storage mode
 
Your partition setup at least looks normal at the first glance.
Propably wisest is to do as thedead1440 suggested; boot in maintanance mode, and check if you can export and/or mount the partition. If not, then there is definitely something wrong there so reformat the partition and cpy the stuff from your rootFS /home there.

BTW, let me guess a thing :D
You might not have realised at the time this went wrong the first time, but I will tell you the symptoms you had at that time:
  • Your device took a longer than usual to boot up
  • When it finally booted, it looked like a fresh device; if you had folders on the homescreen now thy were gone and all icons were on one page. If you had a lot of SMS'es or messages all were gone.
  • However, your MyDocs was intact, all your music/pictures/etc were just as usual.

The cause of this was, obviously the fact that when the device cannot mount your mmcblk0p3 as /home/, it will do a fallback procedure where it sets up your home directory from /etc/skel and the new /home/hierarchy lives now on your mmcblk02p :D

----- edit -----

What I meant to add, the script responsible for the above stuff is "/etc/init/mount-home.conf"

And you could try to run /sbin/fsck.ext4 for your mmcblk0p3, just in case ith hepls :)

peterleinchen 2013-03-25 13:04

Re: [HELP] Application data - Not available in mass storage mode
 
Everything said already ;)
I had similar experiences during my ubiboot preparation. Repartitioned and everything looked good, but forgot to mkfs anew. Then had wrong size of p1 partition.
After zeroing the first 512 bytes of p1 I had totally starnge mounts!
After mkfs everything was okay.

So if you repartitioned manually and flashed without --no-preserve then you should really follow thedead/juiceme's advice.

HtheB 2013-03-25 13:16

Re: [HELP] Application data - Not available in mass storage mode
 
Well... Actually,

What I did is:

flasher -f -F main.bin --erase-user-data=secure -R

Isn't that enough to also repair the partitions?

thedead1440 2013-03-25 13:18

Re: [HELP] Application data - Not available in mass storage mode
 
Quote:

Originally Posted by HtheB (Post 1331658)
Well... Actually,

What I did is:

flasher -f -F main.bin --erase-user-data=secure -R

Isn't that enough to also repair the partitions?

Yikes you didn't do it right no wonder... What you have done is just do a rootfs flash not emmc flash... If you screwed up partitions you should have done:

Code:

flasher -f -F main.bin -F emmc.bin --no-preserve --erase-user-data=secure -R
In simple terms, rootfs only flashes your / partition while emmc fixes your partitions ;)

HtheB 2013-03-25 13:19

Re: [HELP] Application data - Not available in mass storage mode
 
Quote:

Originally Posted by thedead1440 (Post 1331659)
Yikes you didn't do it right no wonder... What you have done is just do a rootfs flash not emmc flash... If you screwed up partitions you should have done:

Code:

flasher -f -F main.bin -F emmc.bin --no-preserve --erase-user-data=secure -R

Oke, I will flash it again using that command :)

Although, there is no emmc for N950 available :p does that really matter?

thedead1440 2013-03-25 13:20

Re: [HELP] Application data - Not available in mass storage mode
 
Quote:

Originally Posted by HtheB (Post 1331660)
Oke, I will flash it again using that command :)

Although, there is no emmc for N950 available :p does that really matter?

Why is there no emmc for N950? Extract the emmc from the pr1.2 beta one-click flasher and use it ;)

HtheB 2013-03-25 13:27

Re: [HELP] Application data - Not available in mass storage mode
 
Quote:

Originally Posted by thedead1440 (Post 1331662)
Why is there no emmc for N950? Extract the emmc from the pr1.2 beta one-click flasher and use it ;)

Any idea if that emmc will work with leaked pr1.3?

thedead1440 2013-03-25 13:30

Re: [HELP] Application data - Not available in mass storage mode
 
Quote:

Originally Posted by HtheB (Post 1331664)
Any idea if that emmc will work with leaked pr1.3?

It should work; I read it on a thread around here that you can extract and it'll work as expected :)

Vesuri 2013-04-04 10:57

Re: [HELP] Application data - Not available in mass storage mode
 
I also encountered a device with exactly the same symptoms.

I did the following:

1. dump the partition to a file:

Code:

dd if=/dev/mmcblk0p3 of=/home/user/MyDocs/home.img
2. copy the partition dump to a desktop Linux system
3. run fsck.ext4 on the partition dump

Code:

fsck.ext4 -y home.img
4. copy the fixed partition dump back to the device
5. write the partition dump back to the mmc

Code:

dd of=/dev/mmcblk0p3 if=/home/user/MyDocs/home.img
6. reboot
7. keep fingers crossed that this doesn't happen again :(

I first tried running fsck.ext4 on the device itself but it kept segfaulting. There could be something wrong with the memory chips on the device.

Unfortunately it seems that even though the partition now works again, too many files were corrupted on the partition. Most likely the tracker database was lost since all contacts, messages etc. were lost. However, at least after this /home is on its own partition as expected. Of course that would also be achievable by just making a new ext4 filesystem on the partition and copying the relevant files over from /home/user.


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

vBulletin® Version 3.8.8