LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 12-08-2008, 11:47 AM   #1
nugroho2
LQ Newbie
 
Registered: Oct 2008
Posts: 3

Rep: Reputation: 0
rsync: how to copy file, "Operation not permitted"


I ran file backup using rsync using Mike Rubel's code. All ran well, except that I could not copy many system files because "Operation not permitted".

I was told that some folders, e.g. /proc are virtual. So I excluded it. But what about the other?

Code:
$RSYNC \
-av --delete --delete-excluded \
--exclude-from="$EXCLUDES" \
/lib/ $SNAPSHOT/lib ;
Code:
rsync: chgrp "/media/ACERONE/lib/modules/2.6.23.9lw/usb" failed: Operation not permitted (1)
rsync: chgrp "/media/ACERONE/lib/modules/2.6.23.9lw/usb/media" failed: Operation not permitted (1)
rsync: chown "/media/ACERONE/lib/rtkaio" failed: Operation not permitted (1)
rsync: chown "/media/ACERONE/lib/security" failed: Operation not permitted (1)
rsync: chown "/media/ACERONE/lib/security/pam_filter" failed: Operation not permitted (1)
Does this mean that rsync has that limitation? I had run as superuser.
I have read the manual, but still could not find the way to copy all system files using rsync. I have used dd command successfully to do that.

Last edited by nugroho2; 12-08-2008 at 11:48 AM.
 
Old 12-08-2008, 12:21 PM   #2
nugroho2
LQ Newbie
 
Registered: Oct 2008
Posts: 3

Original Poster
Rep: Reputation: 0
Sorry, everyone, I am a newbie. I have got the answer: I did not set the owner of the destination as root.
 
Old 12-08-2008, 12:23 PM   #3
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Quote:
Originally Posted by nugroho2 View Post
Sorry, everyone, I am a newbie. I have got the answer: I did not set the owner of the destination as root.
No need to apologize! Nice to see you've figured it out. The syntax of your rsync command is nice.
 
Old 04-21-2010, 07:57 AM   #4
jmat
LQ Newbie
 
Registered: Apr 2010
Posts: 1

Rep: Reputation: 0
Quote:
Originally Posted by nugroho2 View Post
I did not set the owner of the destination as root.
How you did that?

Thanks
 
  


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
"creating symbolic link" "operation not permitted" wheni Linux - Newbie 3 05-08-2011 01:36 AM
Logged in as "root"/Fedora 8 but get "Operation not permitted" when using "chmod etc gosunlee Linux - Newbie 7 02-10-2008 05:56 AM
"capset: Operation not permitted" error when I run valgrind. rsravi74 Linux - Newbie 1 09-02-2007 05:30 PM
hdparm -d1 /dev/hda gives me "HDIO_SET_DMA failed: Operation not permitted" elluva Linux - Hardware 7 07-21-2007 03:49 AM
"Operation not permitted" error logging in to Ubuntu Dapper Drake paulBottomley Linux - Newbie 7 08-10-2006 11:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

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