Mailing List Archive

Support open source code!


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

Re: tlug: Cross-device link error



Personally I typically use tar, but I think if you remove the l from
your cpio command things will work.

This is an assumption, as I haven7t dug into cpio, but the 'l' option
is trying to create hard links, and then remove the original
directory entry, this obviously will not work across file systems.

(BTW using tar to copy directory hierarchies:
tar -cf - ./SOURCE | (cd TARGET ; tar -xf - )
then rm at leisure.)

-Scott

Sean Bennett did state upon Thu, Jul 30, 1998 at 01:29:22PM +0900:
> Hi all;
> 
> ...as usual, this is on a FreeBSD2.2.6 box, but this group is always
> such a good bunch :-)...
> 
> I was using  cpio to move a directory tree from /var to /usr , but I
> encountered a 'cross-device link' error;  ok, I can gather it doesn't
> like cross-linking things, but can anyone shed a little more light on my
> likely problem?
> 
> The command, and subsequent error messages:
> 
> sean# cd /var
> sean# find apache -print | cpio -pdluam /usr/local
> cpio: cannot link apache/apache_1.3.0/src/ap/.indent.pro to
> /usr/local/apache/ap
> ache_1.3.0/src/ap/.indent.pro: Cross-device link
> cpio: cannot link apache/apache_1.3.0/src/ap/Makefile.tmpl to
> /usr/local/apache/
> apache_1.3.0/src/ap/Makefile.tmpl: Cross-device link
> cpio: cannot link apache/apache_1.3.0/src/ap/ap.dsp to
> /usr/local/apache/apache_
> 1.3.0/src/ap/ap.dsp: Cross-device link
> cpio: cannot link apache/apache_1.3.0/src/ap/ap.mak to
> /usr/local/apache/apache_
> 1.3.0/src/ap/ap.mak: Cross-device link
> ...<snip>
> 
> Thanks as always,
> 
> Sean
> sean@example.com
> 
> --------------------------------------------------------------
> Next Meeting: 8 August, Tokyo Station Yaesu central gate 12:30
> featuring Linux on multiple platforms:
> i386, Sparc, PA-Risc, Amiga, SGI, Alpha, PalmPilot, ...
> Next Nomikai: 18 September, 19:30 Tengu TokyoEkiMae 03-3275-3691
> --------------------------------------------------------------
> Sponsor: PHT, makers of TurboLinux http://www.pht.co.jp
>>>end

-- 
I don't play by anybodys rules, ||           LIFE IS.
I just play the game.		||         ^^^^^^^^^^^^
--------------------------------||-Scott-perlman@example.com
There is no win condition.      || I am what I am, I do what I do.
--------------------------------------------------------------
Next Meeting: 8 August, Tokyo Station Yaesu central gate 12:30
featuring Linux on multiple platforms:
i386, Sparc, PA-Risc, Amiga, SGI, Alpha, PalmPilot, ...
Next Nomikai: 18 September, 19:30 Tengu TokyoEkiMae 03-3275-3691
--------------------------------------------------------------
Sponsor: PHT, makers of TurboLinux http://www.pht.co.jp


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links