To copy files from a CD to a folder on your system
Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then 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.
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.
In RHEL4, removable media get mounted in /media (my guess is that Fedora is the same). Once the icon is on the desktop, you know it is mounted---do "more /etc/mtab" to see where.
Assuming it is mounted in /media, then do this:
"cd /media/<mountpoint>", where <mountpoint> will be something like cdrecorder
"ls" (to show everything on the cd)--if necessary, cd into some folders
To copy everything on the cd:
"cd /media/<mountpoint>"
"cp -R * /home/<usernamer>/<foldername>" ---eg /home/frank/documents
One hint: When you go to /mnt or /media, you may see LOTS of folders (mountpoints). To what is mounted and has content, do:
"ls *"
OR
"ls -R *"
Quotes (") indicate commands to be typed--don't type the quotes!
[Nissanka@c83-250-99-43 media]$ cp -R* /home/nissanka/Documents
cp: invalid option -- *
Try `cp --help' for more information.
[Nissanka@c83-250-99-43 media]$ cp -R /home/nissanka/Documents
cp: missing destination file operand after `/home/nissanka/Documents'
Try `cp --help' for more information.
[Nissanka@c83-250-99-43 media]$
[The * sign is not acceptable. What would be the problem?]
----------------------------------------------------------------------------------------------
[Nissanka@c83-250-99-43 media]$ cp /media/K3b data project /home/nissanka/Documents
cp: target `/home/nissanka/Documents' is not a directory
[Nissanka@c83-250-99-43 media]$
It says the destination directory doesn't exist.. you need to manually create that directory first if you are going to issue a command to copy files to it as a destination
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,662
Original Poster
Rep:
pixellany
Could you write me the correct command? I must copy a bunch of files.
In the 'media' folder you find 'K3b data project'
Now I am in the media folder.
This 'K3b data project' cd has some of my old work. I did some work on scripting.
---------------------------------------------------------------------------------------------------------------------
Nissanka@c83-250-99-43 media]$ pwd
/media
[Nissanka@c83-250-99-43 media]$
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,662
Original Poster
Rep:
The funny thing is that I tried the drag and drop method. That is crude way of transferring files. Especially, when you have to transfer over 50 files.
It worked beautifully.
This is a heck of a problem. The 'cp' command should work. Why doesn't it work?
Could you write me the correct command? I must copy a bunch of files.
In the 'media' folder you find 'K3b data project'
Now I am in the media folder.
This 'K3b data project' cd has some of my old work. I did some work on scripting.
---------------------------------------------------------------------------------------------------------------------
Nissanka@c83-250-99-43 media]$ pwd
/media
[Nissanka@c83-250-99-43 media]$
Is 'K3b data project' the name of a folder(directory)?
In /media, you should have names like "cdrecorder". You cd into that directory and then you are seeing the files on the CD. Get yoursefl to the point where you are looking at the actual files and directories that you want to copy, then do:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.