LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-13-2004, 11:57 AM   #1
Timme
LQ Newbie
 
Registered: Sep 2004
Posts: 14

Rep: Reputation: 0
Copying files form a windows-burnt CD to a linux designation?


Well, before I deleted my windows install, I backed up all my mp3 files to CD using Nero.. Now I have linux up and running, I wish to transfer all the said files into my home directory, (/home/mp3s).. The thing is, alot of the files were stored and burnt in windows directorys..
So as an example, all my jazz mp3s would be in the directory "Jazz" and then sub-directorys for artist/album names. I noticed that when I typed dir (:/cdrom$dir) it came up with weird directory names like "The/ Modern/ Jazz/ Quartet/" and such-like.. I tried to switch directory by typing cd the/ modern/ jazz/ quartet, but that just gives me an error message...?

What I'd like to know is, is there a way to copy all the files in one go using the command line. I've tried cp *.* /home/mp3s, but that only copys "loose" mp3s that are not placed in a windows directory..

TIA

Tim
 
Old 09-13-2004, 12:11 PM   #2
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
From man cp

cp -r /a /b will copy directory a into /b/a

You need the -r option to go into the directories..
 
Old 09-13-2004, 12:14 PM   #3
gvec
Member
 
Registered: Aug 2004
Posts: 32

Rep: Reputation: 15
from the root of your cdrom, try
Code:
cp -rv --parents ../* /home/mp3s/
hope this helps...

edit: looks like peter_robb beat me to it
also, dont need the --parents i have just gotten in the habit from other copying that i have done where i want a specific file but the full path to be created at the destination, and of course v is just so you see what is going on

Last edited by gvec; 09-13-2004 at 12:17 PM.
 
Old 09-13-2004, 12:38 PM   #4
Timme
LQ Newbie
 
Registered: Sep 2004
Posts: 14

Original Poster
Rep: Reputation: 0
Sorry to say it, but thats just not working, I think mainly becouse as I said, the directory names look screwed up.. the first word in a directory name has no slash, but all the rest of the word do.. If a directory was called Blow up Soundtrack in windows, it now looks like Blow /up /Soundtrack..

I'm a tad baffled to say the least

Tim
 
Old 09-13-2004, 02:17 PM   #5
erraticassassin
Member
 
Registered: Feb 2004
Distribution: Slackware 13.1
Posts: 131

Rep: Reputation: 18
Talking

I seem to recall seeing this happening in Slackware a few times because I also burn lots of stuff in Windows. (Can't get K3B working yet. Dang!) If memory serves, it's just because there are spaces in the directory names - try cd "Blow Up Soundtrack" from your example to change to that directory (ie, ignore the slashes and enclose in quote marks). If it still bugs you, try renaming the directories without spaces!

I could, of course, be talking out of my hat. *Meh*. Those are the risks you take.
 
Old 09-13-2004, 02:26 PM   #6
Timme
LQ Newbie
 
Registered: Sep 2004
Posts: 14

Original Poster
Rep: Reputation: 0
I used a second option.. I apt-got (debian here..) filerunner, then under fluxbox cracked it open, and copied all the files using filerunner.. Wimps way out

Tim
 
Old 09-13-2004, 04:00 PM   #7
trey85stang
Senior Member
 
Registered: Sep 2003
Posts: 1,091

Rep: Reputation: 41
spaces and special characters are not directly recoginzed under linux as they are in winders...

the \ you see in the file name simply means the charatcher after it is not a "mistake"

So with that... there was nothing wrong with your cd... it just doesnt look as you think it should from the command line

i.e.

Modern Jazz = Modern\ Jazz

so if you mounted the cd.. if you wanted to move to the modern jazz directory you would type this

cd /mnt/cdrom/Modern\ Jazz/
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
copying files from linux to windows Nigel Robinson Linux - Newbie 11 07-27-2005 02:41 PM
copying files from linux to windows partition as user aiims1777 Linux - General 15 11-15-2003 01:56 AM
copying files from linux to windows jonnypop00 Linux - Newbie 2 09-17-2003 04:32 PM
copying files from windows to linux susyq78 Linux - Newbie 6 08-10-2003 09:21 PM
Transfering Files form Linux to Windows Ricky22 Linux - Networking 6 06-09-2002 06:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration