LinuxQuestions.org
Visit Jeremy's Blog.
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 11-08-2005, 08:36 AM   #1
gamor
Member
 
Registered: Jul 2004
Posts: 77

Rep: Reputation: 15
how to copy from a cd


Hello everyone,
I have some files in a cd that I need to copy in my home directory. I am not sure how to do that. Would you please help.
When I type dmesg |more I get:
hdc: UJDA720 DVD/CDRW, ATAPI CD/DVD-ROM drive
I cannot find the directory /cdrom
thanks
 
Old 11-08-2005, 08:51 AM   #2
rubella
Member
 
Registered: Sep 2005
Location: Europe
Distribution: debian sarge
Posts: 65

Rep: Reputation: 15
make a directory cdrom in /mnt/
mount your cd-rom in this new directory
move your files to your home directory
 
Old 11-08-2005, 09:09 AM   #3
gamor
Member
 
Registered: Jul 2004
Posts: 77

Original Poster
Rep: Reputation: 15
I went to the directory /mnt and cdrom was right there. I just needed to check the content of /cdrom and all the files were there. I didn't need to run the command mount. I hope that is a correct way of doing it.
Thanks
 
Old 11-08-2005, 10:10 AM   #4
rubella
Member
 
Registered: Sep 2005
Location: Europe
Distribution: debian sarge
Posts: 65

Rep: Reputation: 15
well, i guess you have the solution...

make a dir in your homefolder and copy (cp or man cp) all files from /mnt/cdrom/ to /home/newdir/

cp : copy files
cp file1 file2 : copies file1 to file2
cp file1 [file2...] dir : copies file to other directory
ATTENTION: This can change/overwrite existing files without warning!

use of wildcards : * ? and []
e.g. ls *.c : lists all files ending with `.c`
cp data* ~/backup : copies all files beginning with `data` to
that directory.
rm *.c : removes all files with extension .c
`*` is a "shell metacharacter", the shell looks up all files that
match *.c, where * can stand for any number of characters of any
sort (alpa-numeric, special characters) and replaces *.c by the found
matching names, before ls is started.
e.g. ls /etc/?? : shows all files with a filename of 2 characters
in the /etc directory
'?' stands for one character of any sort
e.g. in a directory with the files 'oldfile', 'otherfile', 'ourfile'
ls o[lt]* : lists 'oldfile' and 'otherfile'
ls o[^lt]* : lists 'ourfile'
'[]' can be used to list alternative characters for a certain
position in a name and the ^ - sign can be used to specify that a
certain character should not appear on a certain position in a name
 
Old 11-08-2005, 03:14 PM   #5
gamor
Member
 
Registered: Jul 2004
Posts: 77

Original Poster
Rep: Reputation: 15
Is there a way to just copy a set of directories without going through each file separatly. thanks again
 
Old 11-08-2005, 03:56 PM   #6
gamor
Member
 
Registered: Jul 2004
Posts: 77

Original Poster
Rep: Reputation: 15
I actually figured out how to do it faster but I keep getting the message "could not read file /mnt/cdrom/filename" for all files. does it have to do with read permissions. when I type ls -l it gives me this dr-xr-xr-x 1 root root ....
Should i change permission to be able to copy the files?
thanks for your help
 
Old 11-08-2005, 04:48 PM   #7
purelithium
Member
 
Registered: Oct 2005
Location: Canada
Distribution: Mandriva 2006.0
Posts: 390

Rep: Reputation: 30
hmm... are there any errors on the disc? Scratches, abrasions, smudges?

You should be able to copy off the disc with those permissions...
 
Old 11-08-2005, 04:57 PM   #8
rubella
Member
 
Registered: Sep 2005
Location: Europe
Distribution: debian sarge
Posts: 65

Rep: Reputation: 15
copy a directory: cp -rf /from/directory /to/directory/
 
Old 11-08-2005, 08:28 PM   #9
gamor
Member
 
Registered: Jul 2004
Posts: 77

Original Poster
Rep: Reputation: 15
thank you all for your help, I can read my files now. The cd is not scratched. I am not sure what is the deal with that message
 
  


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
how to copy and paste acd copy cd paschim Linux - General 2 04-05-2004 09:25 AM
How to copy whole CD? sikandar Linux - Software 5 09-01-2003 01:38 AM
how to copy a CD to CD?? yenonn Linux - Software 7 08-10-2003 12:34 AM
boot error after using Copy Commander to copy debian system onto larger new drive Interceptor Linux - Hardware 7 05-04-2003 12:40 PM
how to copy a cd safrout Linux - General 6 05-08-2002 10:29 AM

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

All times are GMT -5. The time now is 02:02 PM.

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