Dear all, Unfortunately there have been no responses on my question below - since most likely none of us have faced/solve this bloody problem before. A conflict between mc and ln [part of coreutils] would be fatal to my system - I would assume. God knows what may have already broken down there.
I am very tempted to do the following: 1. reiserfs --rebuildtree for all of my partitions, especially for / and /usr [by booting off a gentoo install CD] 2. Rebuild it from scratch with the latest Gentoo ISO [but it is a HELL of work, getting USB internet modem and nVIDIA module rebuild.. working again etc etc] If anyone has a better idea, kindly let me know. Rohit Rohit Sharma wrote: >Bo Andresen wrote:.... >Rohit replies -- > >Thanks, both of you, for your response. I am re-emerging coreutils, just >in case. Done. >The commands are below - and in summary here is what happens. >- PATH is shown. My own .bin directory has two mp3 ripping scripts. That >is all. "/usr/bin" comes before "/bin" in PATH >- "/bin/ln" is a proper executable. "/usr/bin/ln" and "/usr/bin/mc" are >both symlinks to "/bin/ln" [Not good] >- Removed mc from "/usr/bin" and "/usr/bin/ln" disappears as well [Not >good] Then "which ln" shoes "/bin/ln" and "which mc" shows no mc. >- Creation of symlink /usr/bin/ln automatically creates symlink >/usr/bin/mc - pointing to /bin/ln [thus affecting my midnight >commander]. Both symlinks have same inode number on my filesystem. Also >note that I do not have another definition of ln as an alias. > >This may be a filesystem inconsistency. I would consider an fsck for >reiserfs and may be a rebuiltree. What do you say? > >Please help. >Thanks, >Rohit >Ps - Commands follow. >==================================== >Please look at the following. > >[EMAIL PROTECTED] ~ $ echo $PATH >/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 >[EMAIL PROTECTED] ~ $ cd /bin >[EMAIL PROTECTED] /bin $ md5sum ln >95d3db99e446dfe4cf95abbd04b60c75 ln >[EMAIL PROTECTED] /bin $ ls -l ln >-rwxr-xr-x 1 root root 27756 Apr 14 12:39 ln >[EMAIL PROTECTED] /bin $ cd /usr/bin >[EMAIL PROTECTED] /usr/bin $ md5sum ln >95d3db99e446dfe4cf95abbd04b60c75 ln >[EMAIL PROTECTED] /usr/bin $ ls -l ln >lrwxrwxrwx 1 root root 7 Apr 14 12:39 ln -> /bin/ln >[EMAIL PROTECTED] /usr/bin $ md5sum mc >95d3db99e446dfe4cf95abbd04b60c75 mc >[EMAIL PROTECTED] /usr/bin $ ls -l mc >lrwxrwxrwx 1 root root 7 Apr 14 12:39 mc -> /bin/ln >[EMAIL PROTECTED] /usr/bin $ >[EMAIL PROTECTED] /usr/bin $ file mc >mc: symbolic link to `/bin/ln' >[EMAIL PROTECTED] /usr/bin $ rm mc >rm: remove symbolic link `mc'? y >rm: cannot remove `mc': Permission denied >[EMAIL PROTECTED] /usr/bin $ sudo rm mc >[EMAIL PROTECTED] /usr/bin $ls -l mc >ls: mc: No such file or directory >[EMAIL PROTECTED] /usr/bin $ ls -l ln >ls: ln: No such file or directory >[EMAIL PROTECTED] /usr/bin $ which ln >/bin/ln >[EMAIL PROTECTED] /usr/bin $ which mc >which: no mc in >(/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) >[EMAIL PROTECTED] /usr/bin $ sudo /bin/ln -s /bin/ln ./ln >[EMAIL PROTECTED] /usr/bin $ sudo /bin/ln -s /bin/ln ./ln >[EMAIL PROTECTED] /usr/bin $ which mc >/usr/bin/mc >[EMAIL PROTECTED] /usr/bin $ which ln >/usr/bin/ln >[EMAIL PROTECTED] /usr/bin $ ls -i ln mc >300 ln 300 mc >[EMAIL PROTECTED] /usr/bin $ ls -li ln mc >300 lrwxrwxrwx 1 root root 7 Apr 14 12:48 ln -> /bin/ln >300 lrwxrwxrwx 1 root root 7 Apr 14 12:48 mc -> /bin/ln >[EMAIL PROTECTED] /usr/bin $ ls -li /bin/ln >34560 -rwxr-xr-x 1 root root 27756 Apr 14 12:39 /bin/ln >[EMAIL PROTECTED] ~ $ alias ln >bash: alias: ln: not found > > > -- Best regards, Rohit Sharma ------------------------------------------------------------------------ Senior Technical Associate with Mahindra British Telecom Onsite co-ordinator with British Telecom, United Kingdom Certified Linux, networking professional, UNIX systems consultant & EAI Specialist ------------------------------------------------------------------------ Contacts: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> : Mobile +44 777 0917 951 ------------------------------------------------------------------------ -- gentoo-user@gentoo.org mailing list