What syntax to specify 'cp' to /dev/sda6 ?

Kevin Brown kevinbrownbdc at gmail.com
Fri Jan 4 19:18:50 MST 2013


  Not sure what exactly you are wanting to accomplish by coping data to 
the same partition it already lives on, but the problem is the way 
you're going about it. Think of /home as "d:" on a windows box and 
everything else lives on "c:" That's because of the way you have things 
laid out.

So, you don't copy /home to /home.cp, but cp each of the user folders 
from /home/<username> to /home/<username>.cp to keep them on the same 
partition.

> Since I have lots of space available on /dev/sda6,
> I'd like to copy /home (which is on /dev/sda6 to
> home.cp on that same sda6 drive.
>
> But when I tried (as root) to do this:
>
> # cp -rp /home /home.cp
>
> I got an "out of space" error message because the
> copy was being made onto /dev/sda1.
>
> So, what syntax can I use to copy /home to /home.cp on /dev/sda6 ?
>
>
> /dev/sda1              12G  5.7G  5.6G  51% /
> tmpfs                 473M     0  473M   0% /dev/shm
> /dev/sda6             168G   23G  146G  14% /home
>
>
>
> ---------------------------------------------------
> PLUG-discuss mailing list - PLUG-discuss at lists.phxlinux.org
> To subscribe, unsubscribe, or to change your mail settings:
> http://lists.phxlinux.org/mailman/listinfo/plug-discuss



More information about the PLUG-discuss mailing list