|
#1
|
|||
|
|||
|
Hi,
I'm basically trying to turn my N900 into something like this http://hsti.com/shop/wireless-media-...ew-look-4.html. The idea being that I could plug my N900 in mass storage mode and be able to access network shares that way. Just in case somebody asks, I've already tried mounting a share inside MyDocs, and whilst this works fine by itself, it prevents the phone from being connected in mass storage mode ("device is already in use"). Any pointers would be greatly appreciated! Thanks. |
|
#2
|
|||
|
|||
|
Just a quick update, I have tried remounting /dev/mmcblk0p1/ whilst the device is connected through USB (which works fine) and then mounting the network share inside the MyDocs folder, but no files show under the network mounted folder on the PC.
|
|
#3
|
|||
|
|||
|
USB storage mode outputs a block device through USB.
The file system is unmounted in Maemo en the (now free) device is exported through USB. Because it is unmounted in maemo, any mounts or symlinks to network drives are not available anymore. It is possible to use an image file of a drive and mount that as a loopback device on the N900. You can then output that image over USB or mount it on the N900 itself. Information about this is in the wiki: http://wiki.maemo.org/Repartitioning_the_flash I don't think it is possible to use a network share as an loopback image, but if you find otherwise, please let us know. There are other alternatives however. In PC Suite mode, the N900 outputs an OBEX file server over USB. In the home folder there is an .obex folder. you can put an symlink to your mounted network drive there. After that it is accessible through USB (In Windows by default, and can be made to mount in linux). Other options are setting up a network over USB and routing a share. |
|
#4
|
|||
|
|||
|
Quote:
by .obex do you mean /home/user/.obex-root/ folder?
|
|
#5
|
|||
|
|||
|
yes.
If you, for example, make a symlink to your root file system: ln -s / /home/user/.obex-root/root you will have a folder called "root" from where you can access ALL files on your N900. I haven't tested it with network mounts, but I think that should work also. But you should be careful. The obex server runs as user, not root. So you have the access rigths of the normal user, (read-only for most directories ) . Also it is not very smart to link to the root folder, because the obex server also exports over Bluetooth. ANY paired and trusted device will have access to ALL files on your N900 (including contacts, browsing history, ssh keys, etc. etc. etc.). |
|
#6
|
|||
|
|||
|
Quote:
And for warning. I am not a noob, and not OP anyway I'm just working now on some scripts to control phone via bluetooth and the access to some directory this way can solve one of my problems maybe
|
|
#7
|
|||
|
|||
|
Bernard, thank you so much for all this information! I'll see what I can figure out about loopback images from network shares. The OBEX file solution sounds like it would be a little less intrusive so I'll probably try that first.
Networking over USB is unfortunately not an option as the device I want to plug the N900 to only accepts USB data sticks and nothing else, hence the idea of serving network shares through USB. I'll let you know how I get on, thanks! |
|
#8
|
|||
|
|||
|
if the device only accepts USB data sticks, than you could be out of luck. I think the obex support in windows is done through a driver that is installed with Nokia Ovi Suite. And on ubuntu you need to install a few things for OBEX USB support (obexftp and obexfs if i'm not mistaken).
I made an automount script for Ubuntu some time ago. It uses an udev rule and obexfs to automatically mount any Nokia phone connected in PC Suite/Ovi Suite mode. The only problem is that Nautilus doesn't recognize the mount as being non-local, so I need to turn thumbnail previewing off. So if you think that mounting folders through OBEX is buggy in Ubuntu, disable all file previewing first (edit-> preferences-> preview). But if someone can tell me how I can tell nautilus to do that on a per folder basis, please let me know. It is the only reason why I don't make the script public (I don't want lots of support questions about this problem) |
|
#9
|
|||
|
|||
|
Like I said. IF routing a network share over USB mass storage is possible, it isn't very easy.
After thinking about it, there may be an option, that I think has a good chance of working, but is isn't easy! What you could try is this: 1. get your N900 to export an image as a loopback device over USB (is a bit tricky, and you should control the N900 over WIFI via SSH, because over an USB networking connection makes experimenting with the USB port difficult) 2. get your ubuntu machine (I assume that the "network drive" is on this machine) to make a virtual image representation of the harddrive that you originally intended to share over a network. The tool for this is called xmount. Test the image with a virtual machine in VirtualBox for example. 3. mount the directory with the virtual image representation on the N900 over a wifi network connection using NFS or SSH. 4. make the N900 use that image as a loopback device. that way you should be able export a harddrive over a network through USB mass storage on the N900. IF that works, then you may try to use xmount on the N900. But I think it only can use real harddrives, not network shares. Good luck! Please keep in mind, I'm only speculating, I have NOT tested any of this! |
![]() |
|
|