Hi,
I've got a bizcard iso on a SD handy.... looking at it, the /debian folder itself is a link to the root folder of the CD (or SD in my case).
So starting from /mnt/sdc1 which is my SD card,
cd debian
literally gets you nowhere. I think this is so that
/boot = /debian/boot
/install = /debian/install
etc
etc
Hope that answers your question. Hmmm had you not used the copy option -a and used -pR would the copy gone splat....?
Trying it...
Answer: No, it works fine.
Anyhow to have a play....
Quote:
nigel@anduin:~$ mkdir test
nigel@anduin:~$ cd test
nigel@anduin:~/test$ ln . backref
ln: `.': hard link not allowed for directory
nigel@anduin:~/test$ ln -s . backref
nigel@anduin:~/test$ touch file{1,2,3}
nigel@anduin:~/test$ ls -l
total 0
lrwxrwxrwx 1 nigel nigel 1 2008-10-16 14:30 backref -> .
-rw-r--r-- 1 nigel nigel 0 2008-10-16 14:30 file1
-rw-r--r-- 1 nigel nigel 0 2008-10-16 14:30 file2
-rw-r--r-- 1 nigel nigel 0 2008-10-16 14:30 file3
nigel@anduin:~/test$ ls -l backref/
total 0
lrwxrwxrwx 1 nigel nigel 1 2008-10-16 14:30 backref -> .
-rw-r--r-- 1 nigel nigel 0 2008-10-16 14:30 file1
-rw-r--r-- 1 nigel nigel 0 2008-10-16 14:30 file2
-rw-r--r-- 1 nigel nigel 0 2008-10-16 14:30 file3
nigel@anduin:~/test$ cd ..
nigel@anduin:~$ cp -a test test2
nigel@anduin:~$ ls test2
backref file1 file2 file3
nigel@anduin:~$ ls test2/backref
backref file1 file2 file3
nigel@anduin:~$ ls test2/backref/backref
backref file1 file2 file3
nigel@anduin:~$ rm -rfv test2
removed `test2/backref'
removed `test2/file1'
removed `test2/file2'
removed `test2/file3'
removed directory: `test2'
nigel@anduin:~$ cp -pR test test2
nigel@anduin:~$ ls test2
backref file1 file2 file3
nigel@anduin:~$ ls test2/backref
backref file1 file2 file3
nigel@anduin:~$ ls test2/backref/backref
backref file1 file2 file3
nigel@anduin:~$ rm -rfv test test2
removed `test/backref'
removed `test/file1'
removed `test/file2'
removed `test/file3'
removed directory: `test'
removed `test2/backref'
removed `test2/file1'
removed `test2/file2'
removed `test2/file3'
removed directory: `test2'
nigel@anduin:~$
|