Reply
Thread Tools
Posts: 116 | Thanked: 39 times | Joined on Jun 2010 @ Finland
#1
Hello

I'm using N900 as a music player, and I transferred some audio files to it via USB. After I disconnected the USB, I moved those files to audio clips (or MyDocs/.sounds) folder. The problem is that everything else on that folder was lost after moving these files to it.

Is there a way to recover them?
 

The Following User Says Thank You to zimmerit For This Useful Post:
peterleinchen's Avatar
Posts: 4,117 | Thanked: 8,901 times | Joined on Aug 2010 @ Ruhrgebiet, Germany
#2
This sounds like a question for michaaa62

Just a guess:
all other files under MyDocs are gone, too?

Maybe on removal of USB the MyDocs did not get mounted correctly.
/home/user/MyDocs is just a mount point for eMMC partition.
So the data now resides on the home partition.
If I am right after a reboot you will only see the old data, not the new one.

Where.did.you.copy.the.new.music.to? As you said after moving from already copied-over files to MyDocs/.sounds.
__________________
SIM-Switcher, automated SIM switching with a Double (Dual) SIM adapter
--
Thank you all for voting me into the Community Council 2014-2016!

Please consider your membership / supporting Maemo e.V. and help to spread this by following/copying this link to your TMO signature:
[MC eV] Maemo Community eV membership application, http://talk.maemo.org/showthread.php?t=94257

editsignature, http://talk.maemo.org/profile.php?do=editsignature
 

The Following 4 Users Say Thank You to peterleinchen For This Useful Post:
pichlo's Avatar
Posts: 6,445 | Thanked: 20,981 times | Joined on Sep 2012 @ UK
#3
Good spot, Peter! I was going to speculate about partitions inside partitions and resulting fanthom FATs (yes, it has happened to me once), but not remounting after unplugging is indeed the most obvious answer. If that is the case and it gets mounted correctly after a reboot, then the new files will become invisible.
__________________
Русский военный корабль, иди нахуй!
 

The Following 4 Users Say Thank You to pichlo For This Useful Post:
endsormeans's Avatar
Posts: 3,139 | Thanked: 8,156 times | Joined on Feb 2013 @ From my Gabriola Island hermitage, near the Edge of the World
#4
yup...
I can confirm it has happened to me as well...
until I figured out what it was ....it was vexing .
__________________
Lurker since 2007, Member since 2013, Certifiable since 1972

Owner of :
1-n770 (in retirement), 3-n800's / 3-n810's (still in daily use), 5-n900's ((3 are flawless, 1 loose usb ( parts), 1 has no telephony (parts))
3-nexus 5's : 1 w/ Floko Pie 9.1 (running beautifully) waiting for Stable Droid 10 rom, 1 w/ ̶Ubuntu Touch, 1 with Maru OS (intend maemo leste when ready)

1/2 - neo900 pre- "purchased" in 2013. N̶o̶w̶ ̶A̶w̶a̶i̶t̶i̶n̶g̶ ̶r̶e̶f̶u̶n̶d̶ ̶p̶r̶o̶c̶e̶s̶s̶ ̶l̶a̶s̶t̶ ̶f̶e̶w̶ ̶y̶e̶a̶r̶s̶ - neo900 start up declared officially dead -
Lost invested funds.


PIMP MY N8X0 (Idiot's Guide and a video walkthrough)http://talk.maemo.org/showthread.php?t=94294
THE LOST GRONMAYER CATALOGShttp://talk.maemo.org/showthread.php...ight=gronmayer
N8X0 VIDEO ENCODING THE EASY WAYhttp://talk.maemo.org/showthread.php...ght=mediacoder
242gb ON N800http://talk.maemo.org/showthread.php?t=90634
THE PAIN-FREE MAEMO DEVELOPMENT LIVE DISTRO-ISO FOR THE NOOB TO THE PROhttp://talk.maemo.org/showthread.php?t=95567
AFFORDABLE MASS PRODUCTION FOR MAEMO PARTShttp://talk.maemo.org/showthread.php?t=93325

Meateo balloons now available @ Dave999's Meateo Emporium
 

The Following 3 Users Say Thank You to endsormeans For This Useful Post:
Posts: 116 | Thanked: 39 times | Joined on Jun 2010 @ Finland
#5
Originally Posted by peterleinchen View Post
This sounds like a question for michaaa62

Just a guess:
all other files under MyDocs are gone, too?

Maybe on removal of USB the MyDocs did not get mounted correctly.
/home/user/MyDocs is just a mount point for eMMC partition.
So the data now resides on the home partition.
If I am right after a reboot you will only see the old data, not the new one.

Where.did.you.copy.the.new.music.to? As you said after moving from already copied-over files to MyDocs/.sounds.
No, everything else on MyDocs is still there. New music was copied from MyDocs to Mydocs/.sounds

edit. I've previously waited few minutes after removing USB connection, because old files in this .sounds/Audio clips are missing at first for some reason, and they appear later on. Now I forgot to wait before moving new files in to it.

Last edited by zimmerit; 2018-07-04 at 08:43.
 

The Following User Says Thank You to zimmerit For This Useful Post:
peterleinchen's Avatar
Posts: 4,117 | Thanked: 8,901 times | Joined on Aug 2010 @ Ruhrgebiet, Germany
#6
Sounds strange.

Now: how did you move these files?
Terminal amd mv
or some file manager?

Even I.cannot believe that one of those would nuke the folder before moving
__________________
SIM-Switcher, automated SIM switching with a Double (Dual) SIM adapter
--
Thank you all for voting me into the Community Council 2014-2016!

Please consider your membership / supporting Maemo e.V. and help to spread this by following/copying this link to your TMO signature:
[MC eV] Maemo Community eV membership application, http://talk.maemo.org/showthread.php?t=94257

editsignature, http://talk.maemo.org/profile.php?do=editsignature
 

The Following 2 Users Say Thank You to peterleinchen For This Useful Post:
pichlo's Avatar
Posts: 6,445 | Thanked: 20,981 times | Joined on Sep 2012 @ UK
#7
Originally Posted by zimmerit View Post
...old files in this .sounds/Audio clips are missing at first for some reason, and they appear later on.
That is exactly what Peter was talking about.

The N900's eMMC (think of it as a kind of permanently soldered-in memory card) has three partitions:
  1. 29 GB FAT, mounted as /home/MyDocs and usually just referred to as "MyDocs"
  2. 2 GB etx2, mounted as /home and referred to either as "home" or as "opt", depending on who you ask and in what context
  3. 768 MB swap

When you attach your N900 to a PC with a USB cable in the Mass Storage mode, the 29 GB MyDocs partition is unmounted (i.e., it becomes invisible to the phone) and is exposed in its entirety to the PC as an external USB storage.

Please note that the /home/MyDocs directory ("folder" in the Microsoft newspeak) still exists, only no longer as a mount point. Which means that if you try to read from or write to this directory, the phone will "see" it as part of the 2 GB "home" partition. The standard File Manager is aware of this and hides MyDocs in Mass Storage mode, but alternative file managers and of course the command line do no such tricks so any attempt to access /home/MyDocs goes to the "home" partition.

This situation persists for a few seconds, sometimes up to a minute, after unplugging the USB cable, until the phone re-mounts MyDocs again.

Once MyDocs is mounted, any content written to /home/MyDocs while it was seen as part of the "home" partition becomes shadowed by the mounted partition and effectively disappears from view, until you unmount MyDocs again. Thus, the contents of /home/MyDocs, as seen from the phone's point of view, changes depending on whether the phone is connected as Mass Storage or not. This is why the default File Manager hides MyDocs in the Mass Storage mode, to avoid confusing the user. But, as mentioned above, other file managers and CLI do no such thing.

I suggest using the command line to check the contents of /home/MyDocs while in the Mass Storage mode. It should be an empty directory but you may be surprised what you find. If you do find something there, move it somewhere else and, once the USB is unplugged and MyDocs mounted again, move it there. It would also free up space on the much smaller, 2 GB home partition.

I hope I did not make the above too confusing and/or too tedious. It is quite late and I am tired and prone to rambling incoherently.
__________________
Русский военный корабль, иди нахуй!
 

The Following 8 Users Say Thank You to pichlo For This Useful Post:
endsormeans's Avatar
Posts: 3,139 | Thanked: 8,156 times | Joined on Feb 2013 @ From my Gabriola Island hermitage, near the Edge of the World
#8
Naw pichlo not long enough,
This isn't approaching TL,DR territory...
More like...
EC,BH...
Epic Compendium, Brain Hemorrhaged....

Why Oh why pichlo ...
can you not write a simple sentence or paragraph...?

(You realize this is an opportunity I most certainly will take advantage of... )
__________________
Lurker since 2007, Member since 2013, Certifiable since 1972

Owner of :
1-n770 (in retirement), 3-n800's / 3-n810's (still in daily use), 5-n900's ((3 are flawless, 1 loose usb ( parts), 1 has no telephony (parts))
3-nexus 5's : 1 w/ Floko Pie 9.1 (running beautifully) waiting for Stable Droid 10 rom, 1 w/ ̶Ubuntu Touch, 1 with Maru OS (intend maemo leste when ready)

1/2 - neo900 pre- "purchased" in 2013. N̶o̶w̶ ̶A̶w̶a̶i̶t̶i̶n̶g̶ ̶r̶e̶f̶u̶n̶d̶ ̶p̶r̶o̶c̶e̶s̶s̶ ̶l̶a̶s̶t̶ ̶f̶e̶w̶ ̶y̶e̶a̶r̶s̶ - neo900 start up declared officially dead -
Lost invested funds.


PIMP MY N8X0 (Idiot's Guide and a video walkthrough)http://talk.maemo.org/showthread.php?t=94294
THE LOST GRONMAYER CATALOGShttp://talk.maemo.org/showthread.php...ight=gronmayer
N8X0 VIDEO ENCODING THE EASY WAYhttp://talk.maemo.org/showthread.php...ght=mediacoder
242gb ON N800http://talk.maemo.org/showthread.php?t=90634
THE PAIN-FREE MAEMO DEVELOPMENT LIVE DISTRO-ISO FOR THE NOOB TO THE PROhttp://talk.maemo.org/showthread.php?t=95567
AFFORDABLE MASS PRODUCTION FOR MAEMO PARTShttp://talk.maemo.org/showthread.php?t=93325

Meateo balloons now available @ Dave999's Meateo Emporium
 

The Following 3 Users Say Thank You to endsormeans For This Useful Post:
peterleinchen's Avatar
Posts: 4,117 | Thanked: 8,901 times | Joined on Aug 2010 @ Ruhrgebiet, Germany
#9
Originally Posted by endsormeans View Post
Naw pichlo not long enough,
This isn't approaching TL,DR territory...
More like...
EC,BH...
Epic Compendium, Brain Hemorrhaged....

Why Oh why pichlo ...
can you not write a simple sentence or paragraph...?

(You realize this is an opportunity I most certainly will take advantage of... )
Oh endso
At least this was readable under a minute.
__________________
SIM-Switcher, automated SIM switching with a Double (Dual) SIM adapter
--
Thank you all for voting me into the Community Council 2014-2016!

Please consider your membership / supporting Maemo e.V. and help to spread this by following/copying this link to your TMO signature:
[MC eV] Maemo Community eV membership application, http://talk.maemo.org/showthread.php?t=94257

editsignature, http://talk.maemo.org/profile.php?do=editsignature
 

The Following 3 Users Say Thank You to peterleinchen For This Useful Post:
Community Council | Posts: 4,920 | Thanked: 12,867 times | Joined on May 2012 @ Southerrn Finland
#10
@pichlo explained it very well, in a way that a layman can underztand it.
Of course to people who understand the way filesystem mounting in unix/linux works this is already old plain porridge.
 

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

Thread Tools

 
Forum Jump


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