Copying partitions in terminal mode
John DeCarlo
johndecarlo at gmail.com
Tue Dec 18 19:17:39 UTC 2007
On Dec 18, 2007 11:14 AM, elmo <elmo at ne.rr.com> wrote:
> After digging around in my notes, a book or two, and some websites, I
> came up with this command:
> cp -aprv /dev/sda7 /dev/sdc5
>
I would use rsync instead, as it can do compression. Also, I don't believe
that cp or rsync can use the /dev information to copy anything.
If /dev/sda7 is mapped to /home and /dev/sdc5 is mapped to /home-backup,
then I would use:
rsync -avz /home /home-backup (and I would do this as root or with "sudo "
in front, to make sure you copy all the files that you might not have
permission to access).
My guess is that you haven't mounted /dev/sdc6 yet, so you would need to do
that. Create a directory, (sudo mkdir /home-backup), then mount (sudo mount
/dev/sdc5 /home-backup). Then you will be ready to run the command and have
it back up successfully.
--
John DeCarlo, My Views Are My Own
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20071218/f14127f4/attachment.html>
More information about the ubuntu-users
mailing list