Frank Barknecht hat gesagt: // Frank Barknecht wrote: ([EMAIL PROTECTED]):
>
> A simple solution is the "-x"-switch to cp (Try "man cp").
> "copy -ax" copies everything only out of the one filesystem where you started.
well, it's "cp -ax" of course...
--
Kevin J Poorman hat gesagt: // Kevin J Poorman wrote: ([EMAIL PROTECTED]):
> Hi.
>
> I just got a new hard drive and wish to transfer my root fs to this new
> drive as it is larger
>
> now to the hard part ...
>
> I Tryed to do a cp -a * /mnt (where the new hd was mounted)
>
> but it sat t
Kevin J Poorman wrote:
> I just got a new hard drive and wish to transfer my root fs to this new
> drive as it is larger
Assuming root (/) is a single partition, and /mnt another, you can do:
tar clf - / | ( cd /mnt ; tar xpvf - )
Explanation:
c : create tar file
l: d
Hmm, seems I too replied too fast :) No worries :)
--
Nathan Norman:Hostmaster CFNI:[EMAIL PROTECTED]
finger [EMAIL PROTECTED] for PGP public key and other stuff
Key fingerprint = CE 03 10 AF 32 81 18 58 9D 32 C2 AB 93 6D C4 72
--
On Fri, 11 Jul 1997, Dr. Andreas Wehler wr
No kidding. He doesn't want to copy the files in the proc directory,
but he has to copy the prov directory itself ... it's a mount point, no?
I believe the original request was to copy the root fs only. This
command does that.
--
Nathan Norman:Hostmaster CFNI:[EMAIL PROTECTED]
Sorry, please forget my too fast launched reply about
find still finding proc.
: : find / -xdev -print | cpio -padm /mnt
:
: Oh, that's not the help.
:
:
: find / -xdev | grep proc
:
: gives you:
:
: ...
: /var/lib/dpkg/info/procmeter.postinst
: /var/lib/dpkg/info/procmeter.list
: /var/li
: find / -xdev -print | cpio -padm /mnt
Oh, that's not the help.
find / -xdev | grep proc
gives you:
...
/var/lib/dpkg/info/procmeter.postinst
/var/lib/dpkg/info/procmeter.list
/var/lib/dpkg/info/procmeter.postrm
/var/lib/dpkg/info/xproc.list
/proc
Andreas.
--
Uni Wuppertal, FB Elektro
find / -xdev -print | cpio -padm /mnt
--
Nathan Norman:Hostmaster CFNI:[EMAIL PROTECTED]
finger [EMAIL PROTECTED] for PGP public key and other stuff
Key fingerprint = CE 03 10 AF 32 81 18 58 9D 32 C2 AB 93 6D C4 72
--
On Thu, 10 Jul 1997, Kevin J Poorman wrote:
:Hi.
:
:I j
Hi,
/proc (and things like /dev/audio and /dev/hda1) aren't regular files and
so can't be copied using "cp". To copy things like this successfully, you
could use tar. Here's an example: Suppose you want to copy your /
directory from one disk to another. I'm assuming the new disk is empty but
has a
Hi.
I just got a new hard drive and wish to transfer my root fs to this new
drive as it is larger
now to the hard part ...
I Tryed to do a cp -a * /mnt (where the new hd was mounted)
but it sat there cp'ing files for an hour and never got past the proc
directory did I do something wron
10 matches
Mail list logo