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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
09-13-2004, 12:57 PM
|
#1
|
LQ Newbie
Registered: Sep 2004
Posts: 14
Rep:
|
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
|
|
|
09-13-2004, 01:11 PM
|
#2
|
Senior Member
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458
Rep:
|
From man cp
cp -r /a /b will copy directory a into /b/a
You need the -r option to go into the directories..
|
|
|
09-13-2004, 01:14 PM
|
#3
|
Member
Registered: Aug 2004
Posts: 32
Rep:
|
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 01:17 PM.
|
|
|
09-13-2004, 01:38 PM
|
#4
|
LQ Newbie
Registered: Sep 2004
Posts: 14
Original Poster
Rep:
|
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
|
|
|
09-13-2004, 03:17 PM
|
#5
|
Member
Registered: Feb 2004
Distribution: Slackware 13.1
Posts: 131
Rep:
|
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.
|
|
|
09-13-2004, 03:26 PM
|
#6
|
LQ Newbie
Registered: Sep 2004
Posts: 14
Original Poster
Rep:
|
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
|
|
|
09-13-2004, 05:00 PM
|
#7
|
Senior Member
Registered: Sep 2003
Posts: 1,091
Rep:
|
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/
|
|
|
All times are GMT -5. The time now is 04:07 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|