LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 04-22-2009, 01:19 AM   #1
janda
LQ Newbie
 
Registered: Apr 2009
Posts: 24

Rep: Reputation: 15
Error copying files


I am sure a similar question would have been asked in the past, but although I spent a couple of hours looking for the answer, I did not succeed to find the answer. Hence this question:

In order to change distros, I am in the process of backing up my Evolution files. When pasting the "mail" and "address book" I get an error message that says: Error "invalid parameters while copying....". The files relate to ".xml" and in 'mail>views' they relate to custom views.
My options on the question Continue? are Skip, Cancel and Retry. In the end, my only option is Cancel, but that does not give me the chance to back the files up.

Why is that so and what can I do about it?
 
Old 04-22-2009, 01:51 AM   #2
ic_torres
Member
 
Registered: Nov 2005
Location: ABAP
Distribution: slackware 12.0, Vector Linux STD 6.0 and 5.8, ZenWalk 4.6.1, OpenBSD 3.9
Posts: 389

Rep: Reputation: 34
Quote:
Originally Posted by janda View Post
I am sure a similar question would have been asked in the past, but although I spent a couple of hours looking for the answer, I did not succeed to find the answer. Hence this question:

In order to change distros, I am in the process of backing up my Evolution files. When pasting the "mail" and "address book" I get an error message that says: Error "invalid parameters while copying....". The files relate to ".xml" and in 'mail>views' they relate to custom views.
My options on the question Continue? are Skip, Cancel and Retry. In the end, my only option is Cancel, but that does not give me the chance to back the files up.

Why is that so and what can I do about it?
what command did you use to copy those files? care to paste the entire syntax you typed before getting that error?
 
Old 04-23-2009, 12:06 AM   #3
janda
LQ Newbie
 
Registered: Apr 2009
Posts: 24

Original Poster
Rep: Reputation: 15
I did not use any command! What I did is, I highlighted the folders under ".evolution" (using Edit>Copy and then "Paste into Folder" where I wanted to paste it in an external drive). My knowledge of commands in the terminal is zero.
 
Old 04-23-2009, 12:11 AM   #4
ic_torres
Member
 
Registered: Nov 2005
Location: ABAP
Distribution: slackware 12.0, Vector Linux STD 6.0 and 5.8, ZenWalk 4.6.1, OpenBSD 3.9
Posts: 389

Rep: Reputation: 34
Quote:
Originally Posted by janda View Post
I did not use any command! What I did is, I highlighted the folders under ".evolution" (using Edit>Copy and then "Paste into Folder" where I wanted to paste it in an external drive). My knowledge of commands in the terminal is zero.
well maybe you should study the command line. . that is an essential part for linux users.

review the command "cp" type man cp on your terminal

know the name of your drive and the specific files to be copied
 
Old 04-23-2009, 12:19 AM   #5
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
I would hesitate a guess that the files are in use or similar. Did you have Evolution running at the time?
 
Old 04-23-2009, 11:52 PM   #6
janda
LQ Newbie
 
Registered: Apr 2009
Posts: 24

Original Poster
Rep: Reputation: 15
To ic_torres: I typed "cp --help". I got a lot of text, but it was not understandable. However I tried "cp file-of drive1-folder-name dest name-of-drive/folder-name" and I made sure I had the names of the drive, folder, etc correct and I got: target `drive-name/folder-name' is not a directory. So it seems to have recognised the folder to copied, but it did not paste them in the drive/folder, although the names were typed correctly.

To billymayday: I closed down Evolution and tried to copy and paste as previously, but I got the same result!
 
Old 04-27-2009, 07:46 PM   #7
janda
LQ Newbie
 
Registered: Apr 2009
Posts: 24

Original Poster
Rep: Reputation: 15
Unhappy

I am disappointed that there has not been a response on my problem. Does that mean that there is a bug or a flaw? Or did I misunderstand the replies I was given?
 
Old 04-27-2009, 08:01 PM   #8
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Well ... let's say if you used the actual names of files and devices
people may have a chance to understand what you're doing.

There's no concept of a "drive name" under Linux to begin with, so
following your cp syntax is problematic to say the least.



Cheers,
Tink

Last edited by Tinkster; 04-27-2009 at 08:03 PM. Reason: typo
 
Old 04-28-2009, 02:26 AM   #9
janda
LQ Newbie
 
Registered: Apr 2009
Posts: 24

Original Poster
Rep: Reputation: 15
Ok, I thought that it was fairly clear, but what I think and what is the right thing are not the same, fair enough. So, this is what I tried:

cp home/Jenni_and_Adri/.evolution dest Backup/Backup-Fedora-Files

in which Jenni_and_Adri is a folder of the "/" directory of which "home" is a folder of "/" and .evolution are the files and folders I want to back up. The Destination is the drive, which was originally a backup drive, called Backup. The folder in which I want to back up the .evolution folder in the Backup drive is called Backup-Fedora-Files, as shown in the Terminal:

[Jenni_and_Adri@localhost ~]$ cp home/Jenni_and_Adri/.evolution dest Backup/Backup-Fedora-Files
cp: target `Backup/Backup-Fedora-Files' is not a directory
[Jenni_and_Adri@localhost ~]$

I have just rechecked the name of the Drive and the name of the target folder and they are correctly reproduced.

Thank you for your patience.
 
Old 04-28-2009, 02:36 AM   #10
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
The message is pretty clear - Backup/Backup-Fedora-Files doesn't exist. Note that this would be interpreted as current_directory/Backup/Backup-Fedora-Files, so if you actually meant /Backup/Backup-Fedora-Files, you need the leading "/".

What is "dest" doing in the middle of you cp line?
 
Old 04-28-2009, 08:52 AM   #11
valencequark
Member
 
Registered: Aug 2004
Location: greater dc metro area
Distribution: various, mostly fedora
Posts: 79

Rep: Reputation: 16
Quote:
Originally Posted by janda View Post
Ok, I thought that it was fairly clear, but what I think and what is the right thing are not the same, fair enough. So, this is what I tried:

cp home/Jenni_and_Adri/.evolution dest Backup/Backup-Fedora-Files

in which Jenni_and_Adri is a folder of the "/" directory of which "home" is a folder of "/" and .evolution are the files and folders I want to back up. The Destination is the drive, which was originally a backup drive, called Backup. The folder in which I want to back up the .evolution folder in the Backup drive is called Backup-Fedora-Files, as shown in the Terminal:

[Jenni_and_Adri@localhost ~]$ cp home/Jenni_and_Adri/.evolution dest Backup/Backup-Fedora-Files
cp: target `Backup/Backup-Fedora-Files' is not a directory
[Jenni_and_Adri@localhost ~]$

I have just rechecked the name of the Drive and the name of the target folder and they are correctly reproduced.

Thank you for your patience.
i think you might be having path issues. what is the mount point for your backup drive? your pasted command looks like you are copying a file called .evolution and a file called dest into Backup/Backup-Fedora-Files. you also need the -R recursive flag to copy the .evolution directory and its contents to your backup drive. first issue, though, is the mountpoint for your backup drive. unless your backup drive is mounted in the same directory that your .evolution directory resides, you'll need to give the path to Backup. also, you need a "/" in front of home, unless you are sitting in the root directory.

cheers.
 
Old 04-30-2009, 01:47 AM   #12
janda
LQ Newbie
 
Registered: Apr 2009
Posts: 24

Original Poster
Rep: Reputation: 15
After reading this post and some experimenting I got:

[Jenni_and_Adri@localhost ~]$ cp /home/Jenni_and_Adri/.evolution /Backup/Backup-Fedora-Files
and got
cp: omitting directory `/home/Jenni_and_Adri/.evolution'

I have omitted a directory, how?

Then I tried:

[Jenni_and_Adri@localhost ~]$ cp /home/Jenni_and_Adri/.evolution-R /Backup/Backup-Fedora-Files
this time I got
cp: cannot stat `/home/Jenni_and_Adri/.evolution-R': No such file or directory

So am I not correctly using the -R recursive flag? (what is that?)

Then there is the question of the mount point. If I understand it (Wikipedia) the mount point is the "/" directory, is that right?

I am sorry about these basic questions, but "Moving to Ubuntu Linux" does not give me the answers. Is there a book that tells me about the basics of Linux commands?

In relation to the use of "dest" in my earlier post, from "cp --help" I thought I understood that dest was an instruction where what is the destination ("dest") of the copied files. But come to think of it, about 20 years ago there were similar commands in MSDOS and you didn't do that either.
 
Old 04-30-2009, 01:53 AM   #13
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
cp -R /home/Jenni_and_Adri/.evolution /Backup/Backup-Fedora-File
 
Old 04-30-2009, 06:37 PM   #14
ic_torres
Member
 
Registered: Nov 2005
Location: ABAP
Distribution: slackware 12.0, Vector Linux STD 6.0 and 5.8, ZenWalk 4.6.1, OpenBSD 3.9
Posts: 389

Rep: Reputation: 34
if you know a command and does not know how to use it always refer to

man commandyoutwanttoknow
 
Old 04-30-2009, 06:56 PM   #15
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Here's a very good Linux tutorial: http://rute.2038bug.com/index.html.gz
Live it, breathe it
 
  


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
Strange CIFS error, files are not copying properly punt Linux - Networking 1 12-28-2010 09:34 AM
DVD copying of files - I/O error feedmehoney Linux - Desktop 1 07-10-2007 07:10 AM
"I/O error while copying files " ragesh Linux - Desktop 2 05-23-2007 08:31 AM
I/O error when copying (some) NTFS files cherup Linux - Newbie 1 05-21-2003 04:20 AM
Error copying large files from cdrom patrickyeo Linux - Hardware 1 11-03-2002 06:46 PM

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

All times are GMT -5. The time now is 02:42 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