maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   MicroSD - How to move music, photos, etc. to the card? (https://talk.maemo.org/showthread.php?t=75328)

n0ak 2011-07-29 17:06

MicroSD - How to move music, photos, etc. to the card?
 
I have 2gb MicroSD memmory card for my n900! I bought it just becouse my usb port is broken, and all I want is to put all the pictures music and videos on my MicroSD card is that possible .. If it is could u tell me how to do it ..
Thanks guys!! :)

funkmunk 2011-07-29 17:12

Re: MicroSD
 
U can move the file from the EMMC to the memory card from the default file manager...Click the drop down in the file manager...

n0ak 2011-07-29 17:16

Re: MicroSD
 
Quote:

Originally Posted by funkmunk (Post 1060694)
U can move the file from the EMMC to the memory card from the default file manager...Click the drop down in the file manager...

Thank you ! :) But could u tell me step by step what shud I do . Im noob in these things. Do I have to download this app (emmc) ?

funkmunk 2011-07-29 17:18

Re: MicroSD
 
No EMMC is ur internal memory...Open the File Manager & next to its name u will see a arrow head. Click on that and it will show u the option to move. Then just select the files & click move & ur done...!!!

trlopes1974 2011-07-29 17:24

Re: MicroSD
 
Assuming that you have all your pictures somewhere inside MyDocs...
open Xterm (ctrl+alt+x) and execute:
cd /home/user/MyDocs/
find . -name "*.jpg" -print -exec cp -R {} /media/mmc1 \;


videos:
find . -name "*.mp4" -print -exec cp -R {} /media/mmc1 \;


substitute "*.mp4" and "*.jpg" for other filetypes


EDIT: You can also connect via bluetooth and browse your phone mem via windows explorer

n0ak 2011-07-30 09:21

Re: MicroSD
 
LOL !! best explanation ever !! Sorry can't understand ya !!!
Cud u tell me that again step by step

TomJ 2011-07-30 10:36

Re: MicroSD
 
Quote:

Originally Posted by n0ak (Post 1061023)
LOL !! best explanation ever !! Sorry can't understand ya !!!
Cud u tell me that again step by step

Press the shift, control and X keys at the same tiume. This launches the XConsole, which is basically a program that allows you to type in commands.

Type (or copy and paste):
Code:

cd /home/user/MyDocs/
and press enter. This tells the console to move to the directory in which your photos etc are likely to be stored.

Type (or copy and paste):
Code:

find . -name "*.jpg" -print -exec cp -R {} /media/mmc1 \;
and press enter. This looks for jpg files 9picutes) and copies them to the memory card. (Probably; the syntax is unfamiliar to me, but it looks plausible and certainly won't do anything harmful).

The other option is to launch File Manager, which is built in. Play with it a bit; it should be fairly obvious how to use it...

tuxsavvy 2011-07-30 10:53

Re: MicroSD
 
The `find' syntax is relatively easy to understand once you are familiar with it.
find . means find anything that is in PWD (Present Working Directory) and usually recursively. Whatever outputs it find will be outputted via standard output (stdout) with full path to the file for instance: /home/user/MyDocs/DCIM/test.jpg
-name means to search based on the filename. In the cases above for example with "*.jpg" and *.mp4", *.jpg means any file matching the extension jpg. However many windows users tend to have filenames such as: holiday on the beach.jpg, linux behaves much like UNIX in this case and would parse each space as a new line. Simply put it would then become:
holiday
on
the
beach.jpg. This output usually would prevent other UNIX-like tools from being able to copy the file because it does not exist. To enclose it in quotations like " for instance prevents such cases from above happening. One way to alleviate that is to replace spaces with underscore _ markings.
-exec means to execute a program of user's choice, in which this case it is to copy. -R is recursively.
{} are whatever the output find prints out to stdout is handled by -exec which is cp -R.
\; are to exit any escaping control characters, without it, find will wait for the user to exit it by hand should there be any escaping control characters.

An example with that command above, say for example you have: beach 1.jpg, beach 2.jpg, beach 3.jpg residing in: /home/user/MyDocs/pictures. That command will basically copy: /home/user/MyDocs/pictures/beach 1.jpg, /home/user/MyDocs/pictures/beach 2.jpg and /home/user/MyDocs/pictures/beach 3.jpg into /media/mmc1.

The file manager way is the way I would not personally use especially if you have lots and lots of files you want to reallocate for instance. Sure, you can do it by hand which will take you lots of time or you can simply learn to use linux CLI and enjoy having the nifty powerful command line tools do all the work for you.

fahadj2003 2011-07-30 16:07

Re: MicroSD
 
u aint kiddin when you said you're a noob..

trlopes1974 2011-07-30 22:32

Re: MicroSD
 
just use the bluetooth option and ujse your windows explorer to navigate n900 memory... I think,in your case, it will be safer.

fahadj2003 2011-07-31 00:39

Re: MicroSD - How to move music, photos, etc. to the card?
 
i'd jus use filebox and mount the mmc to /and or something or the builtin file manager works just as fine..

shadowjk 2011-07-31 13:20

Re: MicroSD - How to move music, photos, etc. to the card?
 
Suggesting xterm commands to beginners seems like a stupid idea.

The filemanager approac:

Open file manager,

* find the directory you want to copy to sd:
tap n900,
longtap (tap, dont release, hold, wait for menu) Camera
select copy from the menu

* select destination:
tap the left-up pointing arrow
tap memory card
tap memory card

trlopes1974 2011-07-31 14:00

Re: MicroSD - How to move music, photos, etc. to the card?
 
It's not stupid. It is the faster way to get the results he wants. He does have an n900 with a linux os, so he should at least know what is a xterm and some basic commands.
So don't be an *** and by citicizing someone tha gave a perfectly valid answer.

n0ak 2011-08-03 11:37

Copying files to memory card MicroSD!!!
 
So the problem is I don't have an USB port for my n900 it's broken so I can't put the files from the copmuter on my phone or other way. So i bought MicroSD card 2 gb do do it..
But there seem to be a problem with x-terminal when I type in this.
Guys told me that this command is for putting all image files to MicroSD card.. See post here ______ http://talk.maemo.org/showthread.php?t=75328

Type (or copy and paste):
Code:
cd /home/user/MyDocs/
and press enter. This tells the console to move to the directory in which your photos etc are likely to be stored.

Type (or copy and paste):
Code:
find . -name "*.jpg" -print -exec cp -R {} /media/mmc1 \;

Above in the RED when I type in this x-term says
find: unrecognized: -exec
BusyBox v1.10.2 (debian 3:1.10.2.legal-losso30+0m5) multi-call binary

Usage: find [PATH...] [EXPRESSION]


Help me please guys I realy need to put my all files PICS VIDEOS etc.. into my memory card,.. So that I can put my phone into service.. And I can be sure that my files are not lost.. Thanks I will realy appreciate ur answers ;)

jedi 2011-08-03 11:41

Re: Copying files to memory card MicroSD!!!
 
Quote:

Originally Posted by n0ak (Post 1063363)
So the problem is I don't have an USB port for my n900 it's broken so I can't put the files from the copmuter on my phone or other way. So i bought MicroSD card 2 gb do do it..
But there seem to be a problem with x-terminal when I type in this.
Guys told me that this command is for putting all image files to MicroSD card.. See post here ______ http://talk.maemo.org/showthread.php?t=75328

Type (or copy and paste):
Code:
cd /home/user/MyDocs/
and press enter. This tells the console to move to the directory in which your photos etc are likely to be stored.

Type (or copy and paste):
Code:
find . -name "*.jpg" -print -exec cp -R {} /media/mmc1 \;

Above in the RED when I type in this x-term says
find: unrecognized: -exec
BusyBox v1.10.2 (debian 3:1.10.2.legal-losso30+0m5) multi-call binary

Usage: find [PATH...] [EXPRESSION]


Help me please guys I realy need to put my all files PICS VIDEOS etc.. into my memory card,.. So that I can put my phone into service.. And I can be sure that my files are not lost.. Thanks I will realy appreciate ur answers ;)

The busybox version of the find command does not support the '-exec' arg.

You could try something like:
Code:

for x in *.jpg; do mv $x /media/mmc1/ ; done
- which will move all the jpg files in the current dir to your SD card.

EDIT: and there was no need to create a new thread - why not continue on the last thread you created on the exact same subject?!

vi_ 2011-08-03 11:55

Re: Copying files to memory card MicroSD!!!
 
Quote:

Originally Posted by n0ak (Post 1063363)
So the problem is I don't have an USB port for my n900 it's broken so I can't put the files from the copmuter on my phone or other way. So i bought MicroSD card 2 gb do do it..
But there seem to be a problem with x-terminal when I type in this.
Guys told me that this command is for putting all image files to MicroSD card.. See post here ______ http://talk.maemo.org/showthread.php?t=75328

Type (or copy and paste):
Code:
cd /home/user/MyDocs/
and press enter. This tells the console to move to the directory in which your photos etc are likely to be stored.

Type (or copy and paste):
Code:
find . -name "*.jpg" -print -exec cp -R {} /media/mmc1 \;

Above in the RED when I type in this x-term says
find: unrecognized: -exec
BusyBox v1.10.2 (debian 3:1.10.2.legal-losso30+0m5) multi-call binary

Usage: find [PATH...] [EXPRESSION]


Help me please guys I realy need to put my all files PICS VIDEOS etc.. into my memory card,.. So that I can put my phone into service.. And I can be sure that my files are not lost.. Thanks I will realy appreciate ur answers ;)

Code:

find . -name "*.jpg" -print | xargs cp -R {} /media/mmc1 \;
or

Code:

find . -name "*.jpg" -print | xargs -I{} cp "{}" /media/mmc1
Or somthing

lol, I dunno.

n0ak 2011-08-03 13:57

Busybox x-term ..
 
Busybox doesn't work with -exec when you type in x-term so what I must do to get -exec working.. please help guys.. Can't get command done

vi_ 2011-08-03 14:01

Re: Busybox x-term ..
 
How about you look at the solutions provided to you in the thread you first asked this question?

n0ak 2011-08-03 14:03

Re: Busybox x-term ..
 
Quote:

Originally Posted by vi_ (Post 1063444)
How about you look at the solutions provided to you in the thread you first asked this question?

Yes I know but didn't help me at all :(

vi_ 2011-08-03 14:08

Re: Busybox x-term ..
 
Quote:

Originally Posted by n0ak (Post 1063448)
Yes I know but didn't help me at all :(

What do you mean it didn't help?

Code:

find . -name "*.jpg" -print0 | xargs -0 -I {} cp {} /media/mmc1
There is a more or less simple way to do this, half the work has been done for you. Just fiddle the above till it works.

Read up about find, xargs, cp, what all the flags do etc.

Must try harder FFS!

jedi 2011-08-03 14:11

Re: Busybox x-term ..
 
Quote:

Originally Posted by n0ak (Post 1063441)
Busybox doesn't work with -exec when you type in x-term so what I must do to get -exec working.. please help guys.. Can't get command done

Please stop creating new threads on this same subject.

You mean the find command provided by busybox does not support the -exec parameter. This has already been explained and more than one work-around already provided.

trlopes1974 2011-08-03 14:14

Re: Copying files to memory card MicroSD!!!
 
Did you ever tryed the bluetooth method????

n0ak 2011-08-03 14:16

Re: Copying files to memory card MicroSD!!!
 
Quote:

Originally Posted by vi_ (Post 1063376)
Code:

find . -name "*.jpg" -print | xargs cp -R {} /media/mmc1 \;
or

Code:

find . -name "*.jpg" -print | xargs -I{} cp "{}" /media/mmc1
Or somthing

lol, I dunno.

ohh yes m8 1st one seemed to work ,but there is still a problem..
all the image files say's cannot create '2.jpg/56454.jpg' : path does not exist .. what can i o with this

n0ak 2011-08-03 14:18

Re: Busybox x-term ..
 
Quote:

Originally Posted by vi_ (Post 1063451)
What do you mean it didn't help?

Code:

find . -name "*.jpg" -print0 | xargs -0 -I {} cp {} /media/mmc1
There is a more or less simple way to do this, half the work has been done for you. Just fiddle the above till it works.

Read up about find, xargs, cp, what all the flags do etc.

Must try harder FFS!

when i type in the command it says the same for all the image files like this - cannot create '2.jpg/5353_00.JPG': PATH DOES NOT EXIST HELP

n0ak 2011-08-03 14:25

Re: Busybox x-term ..
 
Quote:

Originally Posted by demolition (Post 1063463)
Seems from what vi_ and jedi have said, you've posted about this already. That is _not_ good behaviour. If you don't get the help you want from the question you ask, re-phrase it. If you've been waiting a while, by all means bump the thread. The nature of the problem will determine the urgency e.g. device still in reboot loop after taking the battery out and putting back in, as well as expecting a call about a new job - ok, repost in an hour. But don't start a new thread just because you didn't get a reply. The only caviat might be that there are occasions where you will post at the end of an old/dead thread and get a lacklustre response, in these cases starting a new thread might be more appropriate because you can ask the question more precisely to your needs. Whatever you do: Use TMO with care: it's fragile.

Not sure it's wise to reward this sort of thing but publishing your findings will probably help others ... lets see what can be done:

What version of busy box are you running?
What are you trying to execute with 'exec'?

THANKS M8 ok I'll do that ;)
Yeah about busy box you'll find out in my earlier thread ;)

iDont 2011-08-03 14:33

Re: Busybox x-term ..
 
Quote:

Originally Posted by n0ak (Post 1063441)
Busybox doesn't work with -exec when you type in x-term so what I must do to get -exec working.. please help guys.. Can't get command done

If Jedi is right, and you do in fact mean that find doesn't support -exec instead of "Busybox doesn't work with -exec", then the answer to how to get -exec working is simple:

Either
a) install findutils-gnu or
b) install busybox-power

Both of those packages will provide you with a find binary that supports -exec. If you go with findutils-gnu: make sure to use /usr/bin/gnu/find instead of /bin/find.

vi_ 2011-08-03 14:48

Re: Copying files to memory card MicroSD!!!
 
Code:

find /home/user/ -name "*.jpg" -print | while read this; do cp $this /media/mmc1/; done

n0ak 2011-08-03 16:48

No space left on device!
 
When i try moving files jpg to my MicroSD true x-term it moves couple of them but not all of them.. And space left for microSD is 1.5 gb I have 2 gb MicroSD..
Why does x-term says for all other image jpg files : - No space left on device!!
wtf?? :O help please guys

jedi 2011-08-03 17:46

Re: No space left on device!
 
Quote:

Originally Posted by n0ak (Post 1063571)
When i try moving files jpg to my MicroSD true x-term it moves couple of them but not all of them.. And space left for microSD is 1.5 gb I have 2 gb MicroSD..
Why does x-term says for all other image jpg files : - No space left on device!!
wtf?? :O help please guys

Yet another thread for your moving files issue?

You've run of 'disk' space - it could well be because you've messed up with the various commands you've been given and have ended up duplicating files instead of moving them to your SD card. If you stick with one of the other threads, we might be able to work out what you're doing wrong.

Since you're having so many issues with xterm, why not stick to the first response you got on the first thread you created: Use the built-in file manager?

shadowjk 2011-08-03 18:02

Re: No space left on device!
 
If you're trying to put them in the root folder of the MicroSD, you'll only be able to store something like 100 files due to limitations of the VFAT/FAT32 filesystem.

As a workaround, create a folder called Pictures on your microsd, and put everything inside that folder.

You might have to temporarily move something away from MicroSD before you can create the folder.

sjgadsby 2011-08-03 18:52

Re: MicroSD - How to move music, photos, etc. to the card?
 
The following threads have been merged into this thread:
  • Copying files to memory card MicroSD!!! (6 posts)
  • Busybox x-term .. (9 posts)
  • No space left on device! (3 posts)

n0ak, do not open multiple threads for the same topic.


All times are GMT. The time now is 12:14.

vBulletin® Version 3.8.8