btrfs problem 12.04

Tony Baechler bats at
Thu Oct 29 08:15:32 UTC 2015

On 10/28/2015 12:55 PM, Johnny Rosenberg wrote:
> Copying the files from the USB drive from an Ubuntu 14.04 Live USB stick
> worked fine. The only problem was that I needed to be root to do it, which
> caused all the files to be owned by root, but I fixed that with a simple
> find -exec chown command in the Ubuntu 12.04 terminal.

Not that it matters now, but if you use rsync with the -a switch, it 
preserves file permissions and times.  I use it all the time for copying 
files, both locally and from the network.  Assuming your USB drive is 
mounted under /media/1 and the drive you're copying to is under /media/2, a 
command like this should work:

rsync -av /media/1 /media/2

The -v switch turns on verbose output and isn't necessary, but I like to 
know the current file being copied and the speed.  The -a switch stands for 
archive and turns on the permissions preservation.

More information about the ubuntu-users mailing list