On Thursday 01 September 2005 1:01 pm, Ulrich Leopold wrote:
scp -rp 10.3.10.8:/home/uleopold/* laptop/uleopold/
So maybe the /home/uleopold has some kind of hard link?? There are no symbolic links as far as I know. How can I detect hard links? Or how can detect removed hard/symbolic links if this is messing up things. Or are there any other methods to detect the problem?
Symbolic links are easy to spot with ls. Hard links are more difficult for a couple of reasons. First, by definition, a hard link is simply another entry in a directory with the same inode. (Use ls -ali). INODE LINKS 6411 drwx------ 3 gaf gaf 120 2005-09-01 09:05 Personal The directory, Personal has 3 hard links: 1. The entry in the parent directory name personal. 2. The entry in the Personal directory itself (the .) 6411 drwx------ 3 gaf gaf 120 2005-09-01 09:05 . 3. A subdirectory always has an entry for its parent, this is the .. 6411 drwx------ 3 gaf gaf 120 2005-09-01 09:05 .. scp _should_ ignore the . and .. entries. If you have a subdirectory in the uleopold tree that has the same inode as uleopold that could be causing the problem. I've seen this thing occur on Linux (rarely) after a crash. Normally, the system will prevent you from doing this, but it has happened to me, primarily as a result of a bad power supply. I would possibly suspect that since 10.3.10.8:/home/uleopold/* worked, that scp might have a bug in it, which is why I suggested logging in to the 10.3.10.8 system, and issuing the cp -rp 10.3.10.8:/home/uleopold /var/tmp -- Jerry Feldman <gaf@blu.org> Boston Linux and Unix user group http://www.blu.org PGP key id:C5061EA9 PGP Key fingerprint:053C 73EC 3AC1 5C44 3E14 9245 FB00 3ED5 C506 1EA9