Re: Copying / partition, segmentation fault
Brent Buchholz wrote:
> On Wed, Oct 18, 2000 at 05:07:56PM +0000, Marvin Stodolsky wrote:
> > The /dev/hda1 files were copied over with:
> > cp -xa * /mnt with /dev/hdd2 on /mnt
> ^
> Two things I don't like about that: globbing and cp itself. I moved / with a
> tar pipe.
>
> "cd /mnt"
> "tar lO / | tar cvvf -"
>
> > Any suggestions as to potential causal factors?
> >
> Mabey cp wasn't able to preserve permissions?
I've always used cpio for copying/moving entire file systems (although I haven't yet
needed to on Debian yet). A command such as:
find / -xdev -depth -print | cpio -pdm /mnt
should also do the trick.
Brian
--
Brian Dockter | Email: Brian.Dockter@am.sony.com
Sr. Member Technical Staff | Voice: 425-771-2400
Sony Electronics, Seattle | FAX: 425-771-2066
Reply to: