cp link problem

cp link problem

Post by Gary » Tue, 14 Apr 1998 04:00:00



I had a space problem in /usr, it became 100% used due to active logs.
During the installation phase of Redhat 4.1 a long time ago, it was not
clear how many partitions to make.  Unfortunately, /usr/src (on the root
partition)had to move so I did a simple 'cp -rf' to a temp location,
created a new mount point on a large free partition (/usr/src) and then
copied (cp -rf) from the temp location to /usr/src.  All files are there
now and I fixed my space problem.
The result of doing this, I cannot run certain programs in /usr, like
the kernel configurator.  When I execute 'make Xconfig', I get the
following error:

start make xconfig
rm -f include /asm
rm : include /sam: is a directory
make : *** [symlinks] Error 1.



I get things working ?

--
Gary Ferrer
Technical Support Representative
Open Storage Solutions, Vancouver.

 
 
 

cp link problem

Post by Jürgen Exne » Tue, 14 Apr 1998 04:00:00


You should have used "cp -a", that would have preserved links, ownership,
etc.

How to repair?
If the kernel is the only stuff in src, then just remove it and install a
new kernel source.
Also remember to remove the two bogus directories in include and replace
them with the proper links.

jue

--
Jrgen Exner; jurgenex AT microsoft.com
Sorry for this anti-spam inconvenience


>I had a space problem in /usr, it became 100% used due to active logs.
>During the installation phase of Redhat 4.1 a long time ago, it was not
>clear how many partitions to make.  Unfortunately, /usr/src (on the root
>partition)had to move so I did a simple 'cp -rf' to a temp location,
>created a new mount point on a large free partition (/usr/src) and then
>copied (cp -rf) from the temp location to /usr/src.  All files are there
>now and I fixed my space problem.
>The result of doing this, I cannot run certain programs in /usr, like
>the kernel configurator.  When I execute 'make Xconfig', I get the
>following error:

>start make xconfig
>rm -f include /asm
>rm : include /sam: is a directory
>make : *** [symlinks] Error 1.



>I get things working ?

>--
>Gary Ferrer
>Technical Support Representative
>Open Storage Solutions, Vancouver.


 
 
 

1. cp link problem

I had a space problem in /usr, it became 100% used due to active logs.
During the installation phase of Redhat 4.1 a long time ago, it was not
clear how many partitions to make.  Unfortunately, /usr/src (on the root
partition)had to move so I did a simple 'cp -rf' to a temp location,
created a new mount point on a large free partition (/usr/src) and then
copied (cp -rf) from the temp location to /usr/src.  All files are there
now and I fixed my space problem.
The result of doing this, I cannot run certain programs in /usr, like
the kernel configurator.  When I execute 'make Xconfig', I get the
following error:

start make xconfig
rm -f include /asm
rm : include /sam: is a directory
make : *** [symlinks] Error 1.



I get things working ?

Gary Ferrer
Technical Support Representative
Open Storage Solutions, Vancouver.

2. Compatibility: C++ 5.1 vs Tool.h++

3. cp and broken links

4. Maximum size for /tmp using mfs

5. CP/M or CP/M-86 emulators in Linux?

6. IoMega ZIP (Internal)

7. cp -r & cp -R

8. a.out or ELF????

9. cp program for directories that can handle symbolic links

10. why no link option for cp?

11. What is defferent "cp -pR " and "cp -pRP" ?

12. cp -r versus cp -R

13. Metro Link Motif linking problem