Active Topics

 


Reply
Thread Tools
Posts: 75 | Thanked: 9 times | Joined on Dec 2009 @ Verona, Italy
#11
Originally Posted by andre3 View Post
ok, what if i want to copy a folder containing files from my pc to the MyDocs folder, how would i do that?
I don't know which OS are you using on your PC, but on my Linux i simply plug my phone, choose Storage Mode, and then an icon appears on my desktop ( you know, like usb pen drive) and then copy stuff from my PC to phone like copy to a pen drive.....

On Linux is so easy! ;-)
 
Posts: 17 | Thanked: 4 times | Joined on Mar 2010 @ Germany
#12
Guess I understand what you desire to do. The short answer is:
It is possible, but not by the default behavior. Actually MyDocs is a separate partition (/dev/mmcblk0p1). You can see this, if you enter "mount" on the command line in Xterminal as long as you are unconnected. If you do the same when connected, you will recognize, that this partition is unmounted, so it can only be accessed from PC side. Doing like you described would result in some scenarios. To keep it "short" I described them below, so you can stop reading after the solution, if you are not interested in the rest ;°)

-> WARNING: Concurrent data access requires special synchronization mechanisms. As unmounting the drive is the default behavior, I believe that Nokia may not have included such mechanism in their drivers. So fiddling with the drive from two different sides is pretty much of provoking data corruption. So only do this if you are aware what you are doing and be very careful!

So, after this important point, here is the "quick 'n' dirty" solution:

- If not done, yet: install rootsh
- Connect in Mass Storage mode
- Open Xterminal
- enter:
$> root
$> mount /dev/mmcblk0p1
$> <Ctrl+D>
$> ls MyDocs

Done!


If you are interested in what happens, if you try it in any "regular" way (like you did), here is why it does not work. Depending on from where you create the folder:

1. You can create /home/user/MyDocs/test on the N900 while unconnected. This folder will be physically created on the MyDocs partition. When you connect your N900 to the PC it will be unmounted with the complete partition. Thus, you can access it from PC side, now, but you won't see it from N900 as long as it is connected.

2. You can create e.g. /mnt/N900/test or E:\test as folder when connected. This would be effectively the same as described under 1.

3. If you create /home/user/MyDocs/test from N900 while connected, it will be created within the /dev/mmcblk0p2 (mark the last 2!!!), which is the partition mounted as /home (you can see this with "mount", too). So test will be a sub-folder of /home/user/MyDocs. The PC again cannot see th /dev/mmcblk0p2 file system,and thus cannot access this folder. But you can cd into it and do some work stuff. However, it'll get funny, as soon as you disconnect from the PC. /dev/mmcblk0p1 will be remounted under /home/user/MyDocs and will hide the test folder. If you happen to be there in your Xterminal session, trying to do some stuff will work as long as you do not use any relative or local file system access. If you try, you will get some error messages, saying, that your current working directory does not exist. You can escape by cd with an existing absolute path name. (Haven't tried this on my device, but this is standard UNIX behavior)

Other approaches like links will not work: Hard links can only be used inside the same file system. Symbolic links are only a reference to a path name as if you used this path directly. So, you would face all effects described above if...........

.......if a vfat file system (such as /dev/mmcblk0p1) could manage links at all ;°)
 
Posts: 17 | Thanked: 4 times | Joined on Mar 2010 @ Germany
#13
P.S.: You can at least read from both sides simultaneously and write, too. But you won't see files you create in this state from PC on N900 or vice versa. However, if you unmount it from N900 and from PC (resulting in remount on N900) you will see th new files, too.
 
ossipena's Avatar
Posts: 3,159 | Thanked: 2,023 times | Joined on Feb 2008 @ Finland
#14
Originally Posted by andre3 View Post
ok, what if i want to copy a folder containing files from my pc to the MyDocs folder, how would i do that?


@ the other person, I will check the link in ur sig// thanks guys
just copy the folder to the root of the drive that appears to my computer @windows.
__________________
Want to know something?
K.I.S.S. approach:
wiki category:beginners. Browse it through and you'll be much wiser!
If the link doesn't help, just use
Google Custom Search
 
Reply


 
Forum Jump


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