maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N900 (https://talk.maemo.org/forumdisplay.php?f=44)
-   -   Help! Cannot connect via mass storage mode anymore (https://talk.maemo.org/showthread.php?t=38465)

Butterfly 2009-12-26 10:57

Help! Cannot connect via mass storage mode anymore
 
When I connect via USB to my laptop andclick mass storage mode. I get the following message 'Unable to connect via USB. Device storage in use'
My N900 wont mount on my desktop so now I have no way of transfering music anymore. It has worked fine for the last fortnight so don't know what's changed. I cannot use PC suite as I am using a mac. Can anyone help? I have installed any applications on my N900 except for bounce.

emesem 2009-12-26 11:22

Re: Help! Cannot connect via mass storage mode anymore
 
Just make sure that no program is accessing your /home/user/MyDocs (shell, file manager, media player)... Then it should be possible. So If really no applications are running it should be definitely be possible to use it as mass storage device.

Another way is to use ssh.

onutz 2009-12-26 12:48

Re: Help! Cannot connect via mass storage mode anymore
 
also u can look for debian chroot image if you installed it already, it uses the mc too

archebyte 2009-12-26 22:10

Re: Help! Cannot connect via mass storage mode anymore
 
Quote:

Originally Posted by Butterfly (Post 442036)
When I connect via USB to my laptop andclick mass storage mode. I get the following message 'Unable to connect via USB. Device storage in use'

On the N900, open a root terminal and type

Code:

lsof | grep MyDocs
This will give you a list of programs accessing the MyDocs folder. something like this:
Code:

Nokia-N900-42-11:~# lsof | grep MyDocs
sh        3474      user  cwd    DIR      179,1    65536      4326 /home/user/MyDocs/tmp

this is acutally an XTerminal program cd'ed into the tmp folder in MyDocs. Note the process-id (3474)

kill the offending program(s):
Code:

kill -9 3474
Try connecting the USB cable again. HTH

Butterfly 2009-12-26 23:56

Re: Help! Cannot connect via mass storage mode anymore
 
Thanks for your help guys. I tried restarting the phone (after you, Emesem, said something was trying to access the mydocs) and I also restarted my Mac and it's working again!!! I'm glad I didn't have to use terminal, it looks complicated. Anyway, I really appreciate everyone who's tried to help me. Thanks :)

floffe 2009-12-26 23:56

Re: Help! Cannot connect via mass storage mode anymore
 
archebyte: Good advice, but one should always try a kill <pid> before a kill -9 <pid> to let the app shut down gracefully if possible.

Butterfly 2009-12-26 23:58

Re: Help! Cannot connect via mass storage mode anymore
 
Quote:

Originally Posted by onutz (Post 442074)
also u can look for debian chroot image if you installed it already, it uses the mc too

Thanks for your surgestion, but I've really no idea what debian chroot is...

Butterfly 2009-12-26 23:59

Re: Help! Cannot connect via mass storage mode anymore
 
Quote:

Originally Posted by floffe (Post 442546)
archebyte: Good advice, but one should always try a kill <pid> before a kill -9 <pid> to let the app shut down gracefully if possible.

You guys have lost me! :confused:

floffe 2009-12-27 00:10

Re: Help! Cannot connect via mass storage mode anymore
 
The kill command from the terminal tells apps to shut down. The pid is short for process id, which archebyte mentioned above, and used to send the shutdown signal to the right process = app. Running kill process-id tells that app to shutdown pretty much the same way as clicking an X in the top corner (think ringing a doorbell and asking the person answering to please leave). kill -9 process-id kills the app immediately, not letting it save open stuff and so on (think smashing open the door and forcefully throwing out the person).

j.s 2009-12-27 00:10

Re: Help! Cannot connect via mass storage mode anymore
 
Quote:

Originally Posted by Butterfly (Post 442553)
You guys have lost me! :confused:

The process id (PID) is like a serial number that uniquely and succinctly identifies an instance of a program that is running. (More than one instance of a program might be running at the same time.)

kill is an application that can be run by simply typing kill in a terminal. kill PID is like asking a troublesome guest with ID # PID to leave.

-9 is an option that modifies the behavior of the application kill. kill -9 PID is like cutting the head off a troublesome guest, possibly making a mess, and increasing risk of harm to yourself.


All times are GMT. The time now is 10:34.

vBulletin® Version 3.8.8