Re: Problem moving /usr to new partition
No. If I make a file ee and eee is a hardlink to it, I get this:
elm:$ cp -la ee* /tmp
cp: cannot create link `/tmp/ee': Invalid cross-device link
cp: cannot create link `/tmp/eee': Invalid cross-device link
elm:$ ll ee*
-rw-rw-r-- 2 allen allen 902 Mar 23 19:49 ee
-rw-rw-r-
If I use "cp -a ee* /tmp" it creates two separate files.
I ran into this when copying my hard drive to a new, bigger one.
Lindsay
On Sun, 7 May 2000, ktb wrote:
> I just took another look at the manpage. Maybe you need to use the -l
> option --
>
> -l, --link
> Make hard links instead of copies of non-directo
> ries.
> hth,
> kent
>
>
>
> Lindsay Allen wrote:
> >
> > For me "cp -a" does not handle hard links correctly. It creates two
> > distinct files. Does it work for you?
> >
> > Lindsay
> >
> > On Sun, 7 May 2000, ktb wrote:
> >
> > > Just being nit picky:) 'cp -a' is sufficient -a contains -R
> > > from the man page --
> > >
> > > -a, --archive
> > > Preserve as much as possible of the structure and
> > > attributes of the original files in the copy. The
> > > same as -dpR.
> > >
> > > hth,
> > > kent
> > >
>
>
> --
> Unsubscribe? mail -s unsubscribe debian-user-request@lists.debian.org < /dev/null
>
>
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Lindsay Allen <allen@cleo.murdoch.edu.au> Perth, Western Australia
voice +61 8 9316 2486 32.0125S 115.8445E Debian Linux
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Reply to: