Re: how to migrate installs between hard drives?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Will Siddall wrote:
Just so everyone knows what I'm doing, here is what I'm doing:
$ls -al ~ | tail -n 5
-rw-r--r--   1 myusername users    222118 2008-11-28 10:23 untitled.JPG
-rwxr-xr-x   1 myusername users       172 2008-03-12 12:14 wmamp3
drwxr-xr-x   4 myusername users      4096 2008-10-05 22:41 workspace
-rw-r--r--   1 myusername users   1041452 2008-11-18 21:29 xine-out.wav
-rw-r--r--   1 myusername users         0 2009-07-21 21:18 zero.trf

$cp -a --preserve=all ~ /media/bigdrive/backups/
$ls -al /media/bigdrive/backups | tail -n 5
-rwxrwxrwx   1 root root    222118 2008-11-28 10:23 untitled.JPG
-rwxrwxrwx   1 root root       172 2008-03-12 12:14 wmamp3
drwxrwxrwx   4 root root      4096 2008-10-05 22:41 workspace
-rwxrwxrwx   1 root root   1041452 2008-11-18 21:29 xine-out.wav
-rwxrwxrwx   1 root root         0 2009-07-21 21:18 zero.trf

I've been using this stuff enough to know what's in the man pages and
how to use google.  No matter what though, the output is the same
whether I'm running it from within my Arch install or from a live cd
like ubuntu.

Maybe you need to run the cp as root in order to be able to set the owners/groups/modes properly on the new files? i.e.:

$ sudo cp -a --preserve=all ~ /media/bigdrive/backups/


HTH,

DR


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux