1 |
Dear all, |
2 |
|
3 |
Unfortunately there have been no responses on my question below - since |
4 |
most likely none of us have faced/solve this bloody problem before. A |
5 |
conflict between mc and ln [part of coreutils] would be fatal to my |
6 |
system - I would assume. God knows what may have already broken down there. |
7 |
|
8 |
I am very tempted to do the following: |
9 |
|
10 |
1. reiserfs --rebuildtree for all of my partitions, especially for / |
11 |
and /usr [by booting off a gentoo install CD] |
12 |
2. Rebuild it from scratch with the latest Gentoo ISO [but it is a |
13 |
HELL of work, getting USB internet modem and nVIDIA module |
14 |
rebuild.. working again etc etc] |
15 |
|
16 |
If anyone has a better idea, kindly let me know. |
17 |
|
18 |
Rohit |
19 |
|
20 |
Rohit Sharma wrote: |
21 |
|
22 |
>Bo Andresen wrote:.... |
23 |
>Rohit replies -- |
24 |
> |
25 |
>Thanks, both of you, for your response. I am re-emerging coreutils, just |
26 |
>in case. Done. |
27 |
>The commands are below - and in summary here is what happens. |
28 |
>- PATH is shown. My own .bin directory has two mp3 ripping scripts. That |
29 |
>is all. "/usr/bin" comes before "/bin" in PATH |
30 |
>- "/bin/ln" is a proper executable. "/usr/bin/ln" and "/usr/bin/mc" are |
31 |
>both symlinks to "/bin/ln" [Not good] |
32 |
>- Removed mc from "/usr/bin" and "/usr/bin/ln" disappears as well [Not |
33 |
>good] Then "which ln" shoes "/bin/ln" and "which mc" shows no mc. |
34 |
>- Creation of symlink /usr/bin/ln automatically creates symlink |
35 |
>/usr/bin/mc - pointing to /bin/ln [thus affecting my midnight |
36 |
>commander]. Both symlinks have same inode number on my filesystem. Also |
37 |
>note that I do not have another definition of ln as an alias. |
38 |
> |
39 |
>This may be a filesystem inconsistency. I would consider an fsck for |
40 |
>reiserfs and may be a rebuiltree. What do you say? |
41 |
> |
42 |
>Please help. |
43 |
>Thanks, |
44 |
>Rohit |
45 |
>Ps - Commands follow. |
46 |
>==================================== |
47 |
>Please look at the following. |
48 |
> |
49 |
>rohit@Force ~ $ echo $PATH |
50 |
>/home/rohit/.bin:/usr/games/bin:/usr/kde/3.5/bin:/home/rohit/.bin:/usr/games/bin:/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/3.4.5:/opt/blackdown-jdk-1.4.2.03/bin:/opt/blackdown-jdk-1.4.2.03/jre/bin:/usr/bin:/usr/kde/3.5/bin:/usr/qt/3/bin:/usr/kde/3.4/bin:/usr/games/bin:/opt/limewire:/home/oracle/product/10.1.0.3/bin |
51 |
>rohit@Force ~ $ cd /bin |
52 |
>rohit@Force /bin $ md5sum ln |
53 |
>95d3db99e446dfe4cf95abbd04b60c75 ln |
54 |
>rohit@Force /bin $ ls -l ln |
55 |
>-rwxr-xr-x 1 root root 27756 Apr 14 12:39 ln |
56 |
>rohit@Force /bin $ cd /usr/bin |
57 |
>rohit@Force /usr/bin $ md5sum ln |
58 |
>95d3db99e446dfe4cf95abbd04b60c75 ln |
59 |
>rohit@Force /usr/bin $ ls -l ln |
60 |
>lrwxrwxrwx 1 root root 7 Apr 14 12:39 ln -> /bin/ln |
61 |
>rohit@Force /usr/bin $ md5sum mc |
62 |
>95d3db99e446dfe4cf95abbd04b60c75 mc |
63 |
>rohit@Force /usr/bin $ ls -l mc |
64 |
>lrwxrwxrwx 1 root root 7 Apr 14 12:39 mc -> /bin/ln |
65 |
>rohit@Force /usr/bin $ |
66 |
>rohit@Force /usr/bin $ file mc |
67 |
>mc: symbolic link to `/bin/ln' |
68 |
>rohit@Force /usr/bin $ rm mc |
69 |
>rm: remove symbolic link `mc'? y |
70 |
>rm: cannot remove `mc': Permission denied |
71 |
>rohit@Force /usr/bin $ sudo rm mc |
72 |
>rohit@Force /usr/bin $ls -l mc |
73 |
>ls: mc: No such file or directory |
74 |
>rohit@Force /usr/bin $ ls -l ln |
75 |
>ls: ln: No such file or directory |
76 |
>rohit@Force /usr/bin $ which ln |
77 |
>/bin/ln |
78 |
>rohit@Force /usr/bin $ which mc |
79 |
>which: no mc in |
80 |
>(/home/rohit/.bin:/usr/games/bin:/usr/kde/3.5/bin:/home/rohit/.bin:/usr/games/bin:/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/3.4.5:/opt/blackdown-jdk-1.4.2.03/bin:/opt/blackdown-jdk-1.4.2.03/jre/bin:/usr/bin:/usr/kde/3.5/bin:/usr/qt/3/bin:/usr/kde/3.4/bin:/usr/games/bin:/opt/limewire:/home/oracle/product/10.1.0.3/bin) |
81 |
>rohit@Force /usr/bin $ sudo /bin/ln -s /bin/ln ./ln |
82 |
>rohit@Force /usr/bin $ sudo /bin/ln -s /bin/ln ./ln |
83 |
>rohit@Force /usr/bin $ which mc |
84 |
>/usr/bin/mc |
85 |
>rohit@Force /usr/bin $ which ln |
86 |
>/usr/bin/ln |
87 |
>rohit@Force /usr/bin $ ls -i ln mc |
88 |
>300 ln 300 mc |
89 |
>rohit@Force /usr/bin $ ls -li ln mc |
90 |
>300 lrwxrwxrwx 1 root root 7 Apr 14 12:48 ln -> /bin/ln |
91 |
>300 lrwxrwxrwx 1 root root 7 Apr 14 12:48 mc -> /bin/ln |
92 |
>rohit@Force /usr/bin $ ls -li /bin/ln |
93 |
>34560 -rwxr-xr-x 1 root root 27756 Apr 14 12:39 /bin/ln |
94 |
>rohit@Force ~ $ alias ln |
95 |
>bash: alias: ln: not found |
96 |
> |
97 |
> |
98 |
> |
99 |
|
100 |
|
101 |
-- |
102 |
Best regards, |
103 |
Rohit Sharma |
104 |
------------------------------------------------------------------------ |
105 |
Senior Technical Associate with Mahindra British Telecom |
106 |
Onsite co-ordinator with British Telecom, United Kingdom |
107 |
Certified Linux, networking professional, UNIX systems consultant & EAI |
108 |
Specialist |
109 |
------------------------------------------------------------------------ |
110 |
Contacts: rohit.sharma@×××××××××.org |
111 |
<mailto:rohit.sharma@×××××××××.org> : Mobile +44 777 0917 951 |
112 |
------------------------------------------------------------------------ |
113 |
|
114 |
-- |
115 |
gentoo-user@g.o mailing list |