LinuxQuestions.org
Register a domain and help support LQ
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 05-01-2009, 03:37 AM   #16
janda
LQ Newbie
 
Registered: Apr 2009
Posts: 24

Original Poster
Rep: Reputation: 15

I have tried:

cp -R /home/Jenni_and_Adri/.evolution /Backup/Backup-Fedora-Files
and I got:
cp: cannot create directory `/Backup/Backup-Fedora-Files': No such file or directory

It seems that it recognizes that ".evolution" is a folder, so far so good. But it does not recognize the "/Backup/Backup-Fedora-Files", but I can assure you that the drive "Backup" and the folder in that drive "Backup-Fedora-Files" are there. So, what now?

I have looked for "man commandyoutwanttoknow" and the terminal gave me: "man commandyoutwanttoknow
No manual entry for commandyoutwanttoknow", then I thought that there might be a typo and tried: man commandyouwanttoknow and I got: No manual entry for commandyouwanttoknow.

So it is not in my terminal. Then I tried googling it. It gave me two sites:
http://www.geekinterview.com/talk/67...s-command.html and http://www.faqs.org/qa/qa-17925.html. Sorry, this did not help either. So in my ignorance, I must have misunderstand this post. Maybe you might enlighten me?

Finally, I had a look at the site of Linux tutorial: http://rute.2038bug.com/index.html.gz. I am going to purchase the book, thank you for this post!
 
Old 05-01-2009, 04:27 AM   #17
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
Try

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

with a trailing /
 
Old 05-01-2009, 04:31 AM   #18
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
Can you also show ls -ld /home
 
Old 05-01-2009, 04:35 AM   #19
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670
List the destination directory using "ls -ld <directory name>". You can press the TAB key after the first few letters and bash will complete what you typed. I'm wondering if maybe the destination path should be /mnt/Backup/Backup-Fedora-Files/ or /media/Backup/Backup-Fedora-Files/.

If you enter "mount" with no arguments, it will list the mounted filesystems.

I'd recommend "cp -a <source_dir> <destination_dir>". The "-a" option stands for archive and sets 3 options including -R.

If permissions are important for the files you are backing up, you want to make sure that the filesystem you are saving the files to support Linux permissions. One example is ext3.
 
Old 05-01-2009, 04:48 AM   #20
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
In hindsight it's presumably a destination permissions issue.

We should also see

ls -ldZ /Backup/Backup-Fedora-Files
 
Old 05-02-2009, 03:49 AM   #21
janda
LQ Newbie
 
Registered: Apr 2009
Posts: 24

Original Poster
Rep: Reputation: 15
Firstly, last night while in bed and I could not sleep, I realised what was ment with "man commandyoutwanttoknow" and when today I tried "man cp" I got a screen that was more sensible, but not yet helpful to me, I think that the choice of "Backup" as a drive name might not be useful. However, I cannot change it now I believe. You must have had a chuckle about my effort in relation to "man commandyoutwanttoknow"!

Secondly, I tried:
cp -R /home/Jenni_and_Adri/.evolution /Backup/Backup-Fedora-Files/ (using the trailing /)
and got
cp: cannot create directory `/Backup/Backup-Fedora-Files/': No such file or directory

Using the "mount" command, I got:
mount
/dev/mapper/VolGroup00-LogVol00 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/sdb1 on /boot type ext3 (rw)
tmpfs on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
fusectl on /sys/fs/fuse/connections type fusectl (rw)
/dev/sdc1 on /media/BACKUP type vfat (rw,nosuid,nodev,uhelper=hal,shortname=lower,uid=500)
/dev/sda1 on /media/System type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096)

It is all Greek to me, but reading the bit "/media/BACKUP" and the post "/media/Backup/Backup-Fedora-Files/" I tried:
cp -R /home/Jenni_and_Adri/.evolution /media/Backup/Backup-Fedora-Files/
and got:
cp: cannot create directory `/media/Backup/Backup-Fedora-Files/': No such file or directory

So, then I tried:
cp -R /home/Jenni_and_Adri/.evolution /mnt/Backup/Backup-Fedora-Files/
and got
cp: cannot create directory `/mnt/Backup/Backup-Fedora-Files/': No such file or directory

Then I tried:
cp -a /home/Jenni_and_Adri/.evolution /Backup/Backup-Fedora-Files/
and got
cp: cannot create directory `/Backup/Backup-Fedora-Files/': No such file or directory

What next?

I am not clear about permissions, or the example "ext3". But I did notice that it was mentioned in the return after the "mount" command.

Finally, I tried the command:
ls -ldZ /Backup/Backup-Fedora-Files (without, or with an "/" at the end)
and got in both cases (again without or with an "/" at the end)
ls: cannot access /Backup/Backup-Fedora-Files: No such file or directory

Coming back to the permissions issue I just read in "Moving to Ubuntu" some references to permissions. I noticed that the ".xml" files, which give me the problems, are file which have the following permissions:

Owner: Read and Write
Group: None (Choices are None, Read-only and Read and Write)
Others: None
Execute: Not ticked: Allow executing files as program.

Should the Group Access be changed to "Read and Write"?
 
Old 05-02-2009, 05:46 AM   #22
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,331
Blog Entries: 55

Rep: Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531
In GNU/Linux case sensitivity means /media/backup is not similar to /mEdia/b4CkUp or /media/BACKUP. If the directory "/media/BACKUP/Backup-Fedora-Files" does not exist make it first: 'mkdir /media/BACKUP/Backup-Fedora-Files'. Then recursively copy the contents of /home/Jenni_and_Adri/.evolution to your removable drive with 'cp -r /home/Jenni_and_Adri/.evolution /media/BACKUP/Backup-Fedora-Files'.
 
Old 05-03-2009, 01:48 AM   #23
janda
LQ Newbie
 
Registered: Apr 2009
Posts: 24

Original Poster
Rep: Reputation: 15
I tried "mkdir /media/BACKUP/Backup-Fedora-Files" and what I got is:

mkdir /media/BACKUP/Backup-Fedora-Files
and got:
mkdir: cannot create directory `/media/BACKUP/Backup-Fedora-Files': File exists

So there is a strange conflict: I cannot make the directory because it already exists, but if I try to paste files into this directory, I am told that the directory does not exist.

So I tried:
cp -r /home/Jenni_and_Adri/.evolution /media/BACKUP/Backup-Fedora-Files

and first I thought, "hey, it works" but after the last line of the outcome in the Terminal, I noticed that every file it tried to copy and paste had the same line:

cp: cannot create regular file `/media/BACKUP/Backup-Fedora-Files/.evolution/addressbook/views/custom_view-file:___home_Home_.evolution_addressbook_local_system.xml': Invalid argument

So, still no luck! What to do now?
 
Old 05-03-2009, 05:12 AM   #24
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,331
Blog Entries: 55

Rep: Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531
Quote:
Originally Posted by janda View Post
I tried "mkdir /media/BACKUP/Backup-Fedora-Files" and what I got is: mkdir /media/BACKUP/Backup-Fedora-Files and got:
mkdir: cannot create directory `/media/BACKUP/Backup-Fedora-Files': File exists
I specifically said to create the directory when it does not exist. Next time please check either from your file manager of with 'ls -ld /name/of/directory'.


Quote:
Originally Posted by janda View Post
So there is a strange conflict: I cannot make the directory because it already exists, but if I try to paste files into this directory, I am told that the directory does not exist.
That is not correct. Please reread my reply and understand the part about case sensitivity.


Quote:
Originally Posted by janda View Post
cp: cannot create regular file `/media/BACKUP/Backup-Fedora-Files/.evolution/addressbook/views/custom_view-file:___home_Home_.evolution_addressbook_local_system.xml': Invalid argument
You can encounter a "Invalid argument" error if a filename can be interpreted as an option to the command. Try 'cp -v -f -r -- /home/Jenni_and_Adri/.evolution /media/BACKUP/Backup-Fedora-Files'. The "-v" means verbose so you see on screen what gets copied, the "-f" uses force to copy files already in place and the "--" should stop from interpreting filenames as command switches. If that doesn't work you could try this 'cd /home/Jenni_and_Adri/.evolution; mkdir /media/BACKUP/Backup-Fedora-Files/.evolution; tar cf - * | ( cd /media/BACKUP/Backup-Fedora-Files/.evolution; tar xfp -)'.
 
Old 05-04-2009, 02:19 AM   #25
janda
LQ Newbie
 
Registered: Apr 2009
Posts: 24

Original Poster
Rep: Reputation: 15
Shows you how don't understand the basics. I had built the folder Backup-Fedora-Files in my external drive BACKUP using File>create folder. In my Fedora drive "Filesystem" I found, what I thought are a number of folders like "bin", "boot", "media" and others and I have no idea what they mean.
I never understood what an external drive "BACKUP" was doing in a folder under an internal drive called "Filesystem" as they are shown on the same level as "BACKUP", so when you said to do "mkdir /media/BACKUP/Backup-Fedora-Files" I thought that I was making a copy of a new directory SEPERATE from my external drive BACKUP into a folder 'media" (if that makes sense.
It was only after I saw the difference when a USB drive was added, that I saw that the drive "disk" was added to "Filesystem".
I now also understand the importance of the differences of the use of upper or lower case

So, I hope I correctly understand your suggestion to do:
cp -v -f -r -- /home/Jenni_and_Adri/.evolution /media/BACKUP/Backup-Fedora-Files

Many lines gave me this result:

cp: cannot create regular file `/media/BACKUP/Backup-Fedora-Files/.evolution/addressbook/views/current_view-file:___home_Jenni_and_Adri_.evolution_addressbook_local_system.xml': Invalid argument
`/home/Jenni_and_Adri/.evolution/addressbook/views/galview.xml' -> `/media/BACKUP/Backup-Fedora-Files/.evolution/addressbook/views/galview.xml'
`/home/Jenni_and_Adri/.evolution/addressbook/views/custom_view-file:___home_Home_.evolution_addressbook_local_system.xml' -> `/media/BACKUP/Backup-Fedora-Files/.evolution/addressbook/views/custom_view-file:___home_Home_.evolution_addressbook_local_system.xml'
cp: cannot create regular file `/media/BACKUP/Backup-Fedora-Files/.evolution/addressbook/views/custom_view-file:___home_Home_.evolution_addressbook_local_system.xml': Invalid argument
`/home/Jenni_and_Adri/.evolution/addressbook/searches.xml' -> `/media/BACKUP/Backup-Fedora-Files/.evolution/addressbook/searches.xml'

I got more results than I had before, but it did not get all of it (as you can see above), for instance under home/Jenni_and_Adri/.evolution/addressbook/views I get 6 items, while under media/BACKUP/Backup-Fedora-Files/addressbook/views I get only 2 items.

In this example, two I got were:
"By_Company.galview" and "galview.xml"

The ones missing in this example were:
"current_view-file:___home_Home_.evolution_addressbook_local_system.xml"
"current_view-file:___home_Jenni_and_Adri_.evolution_addressbook_local_system.xml"
"custom_view-file:___home_Home_.evolution_addressbook_local_system.xml" and
"custom_view-file:___home_Jenni_and_Adri_.evolution_addressbook_local_system.xml"

I believe that the missing files are important to have when a clean install would remove all of the .evolution folder and the backup of the .evolution folder is needed to reinstate these folders and files.
 
Old 05-04-2009, 04:40 PM   #26
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,331
Blog Entries: 55

Rep: Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531
I tried to reproduce what you posted and I just can't. I wonder if there's something else going on. Could you do me a favour and 0) check if you did not perform any of the steps at http://www.go-evolution.org/FAQ#How_...e_directory.3F and 1) try to create a tarball instead: 'tar -vczf /media/BACKUP/Backup-Fedora-Files/evolution_backup.tar.gz /home/Jenni_and_Adri/.evolution'?
 
Old 05-05-2009, 07:08 AM   #27
janda
LQ Newbie
 
Registered: Apr 2009
Posts: 24

Original Poster
Rep: Reputation: 15
I have not tried to perform the steps, because I did not know of its existence. It appears to remove files, if I understand it correctly:
"rm -rf .evolution .gnome2_private/Evolution .camel_certs"
If I had known about this site I would not have tried it because the "rm" command seems to instruct to remove something (Evolution?), and I do not like to remove anything until I understand what I am doing.

So I tried:
tar -vczf /media/BACKUP/Backup-Fedora-Files/evolution_backup.tar.gz /home/Jenni_and_Adri/.evolution

It transferred 175.9Mb of files as a zipped file and put it into my external drive, exactly what it seems to need to do. How does one "unzip"?
 
Old 05-05-2009, 04:02 PM   #28
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,331
Blog Entries: 55

Rep: Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531
Since the tarring picked up the path (/home/Jenni_and_Adri/.evolution) one does unpack a tarball with 'tar -vxzf /media/BACKUP/Backup-Fedora-Files/evolution_backup.tar.gz -C /' after which the files will end up in /home/Jenni_and_Adri/.evolution. Of course you're free to use something like "-C /tmp" and move them into place manually.
 
Old 05-06-2009, 12:47 AM   #29
janda
LQ Newbie
 
Registered: Apr 2009
Posts: 24

Original Poster
Rep: Reputation: 15
I want to "unzip" the tarball into the same directory as the evolution_backup.tar.gz, which is on the external drive as the tarball is easily recognizable from other files and folders that would be "unzipped" In order to do that, I typed the command:

tar -vxzf /media/BACKUP/Backup-Fedora-Files/evolution_backup.tar.gz -C /media/BACKUP/Backup-Fedora-Files/

I think something went wrong: I got a result, but there appear to be a number of error messages as shown in the last lines of addressbook:

home/Jenni_and_Adri/.evolution/addressbook/views/galview.xml
home/Jenni_and_Adri/.evolution/addressbook/views/custom_view-file:___home_Home_.evolution_addressbook_local_system.xml
tar: home/Jenni_and_Adri/.evolution/addressbook/views/custom_view-file\:___home_Home_.evolution_addressbook_local_system.xml: Cannot open: Invalid argument
home/Jenni_and_Adri/.evolution/addressbook/searches.xml
tar: Error exit delayed from previous errors

Looking at the newly formed addressbook there were only two items formed instead of 6, just like in my post of 05-04-09 04.19 pm.
So it seems that the tarball did not pick up these files, just as the directly copy command we tried before and the original way of ctrl copy of the .evolution files into the ctrl paste into the directory on the external drive. Why do some .xml files copy/paste and others do not?
 
Old 05-10-2009, 07:43 PM   #30
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,331
Blog Entries: 55

Rep: Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531
Possible because /media/BACKUP was formatted as VFAT and that doesn't deal well with some characters in names?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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


All times are GMT -5. The time now is 10:32 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration