Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This 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.


  Search this Thread
Old 03-27-2007, 05:11 PM   #1
Senior Member
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Rep: Reputation: 77
Omitting Directory Error

I am attempting to back up my data from my "USBDRIVE" which is /dev/sdc1.

I have a directory called "backup" on my Desktop and when I try to "cp", I get the following error and am not sure how to resolve.

cwilliams@tank:/media/USBDRIVE$ ls -l
total 192
-rwx------  1 cwilliams cwilliams    67 2007-02-01 18:08 apt.txt
drwx------  6 cwilliams cwilliams 32768 2007-03-15 19:06 cwilliams
drwx------  7 cwilliams cwilliams 32768 2007-03-15 18:43 ghost
-rwx------  1 cwilliams cwilliams  2511 2007-03-05 13:03 linux_commands.txt
drwx------ 41 cwilliams cwilliams 32768 2007-03-06 15:00 music
-rwx------  1 cwilliams cwilliams   235 2007-02-09 16:37 mysql.txt
cwilliams@tank:/media/USBDRIVE$ cp /media/USBDRIVE/* /home/cwilliams/Desktop/backup/
cp: omitting directory `/media/USBDRIVE/cwilliams'
cp: omitting directory `/media/USBDRIVE/ghost'
cp: omitting directory `/media/USBDRIVE/music'
Old 03-27-2007, 05:14 PM   #2
LQ Guru
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 235Reputation: 235Reputation: 235
Perhaps you need to specify the -r. Usually that error is indicating you're trying to copy over a directory that already exists in the destination.
1 members found this post helpful.
Old 03-27-2007, 05:14 PM   #3
Registered: Nov 2005
Location: Central New York
Distribution: Ubuntu
Posts: 405

Rep: Reputation: 31
I think you need to use the recursive switch with cp.
1 members found this post helpful.
Old 03-27-2007, 05:21 PM   #4
Senior Member
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Original Poster
Rep: Reputation: 77
It appears you get the error if the directory you're trying to copy does not exist in the target directory as well. Anyways, the "-r" tag seemed to do the trick. Sorry I did not think of that and thanks for your help!
1 members found this post helpful.
Old 01-19-2015, 06:30 AM   #5
LQ Newbie
Registered: Jun 2013
Posts: 7

Rep: Reputation: Disabled
Thank you your anwser was right on the mark.

I love Linux and I want to really thank you guys for the time you put in to help us out. Again Thank you.


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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
omitting icons from PLACES or SYSTEM menus of Fedora 6 guy_ripper Linux - Software 0 01-04-2007 08:52 AM
omitting space in shell script Fond_of_Opensource Linux - Newbie 10 11-18-2006 10:18 AM
"WARNING: Circular directory structure" error when deleting directory pistonbrew Linux - Software 5 02-03-2005 07:05 AM
cp: omitting error jsolanky Linux - Software 10 11-28-2004 10:09 AM
formating console output (omitting parts you do not want) bpk Linux - Newbie 6 06-10-2004 08:32 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:43 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration