LinuxQuestions.org

LinuxQuestions.org (http://www.linuxquestions.org/questions/index.php)
-   Slackware (http://www.linuxquestions.org/questions/forumdisplay.php?f=14)
-   -   installed 13.1, /usr mounted on own partition.error message "/usr/<> file not found" (http://www.linuxquestions.org/questions/showthread.php?t=815005)

jmd9qs 06-18-2010 03:41 PM

installed 13.1, /usr mounted on own partition.error message "/usr/<> file not found"
 
Hey all,

I just installed 13.1 on my system. as with previous systems, i have /usr mounted on it's own partition. when doing the setup i did NOT tell slack to format the /usr partition, and i can tell it didn't.

i am able to cd and ls all of the /usr filesystem without difficulty. however, when i try a command (like ftp for instance) this is what i get:

Code:

(jmd9qs@darkstar)-(0)-(08:39 PM Fri Jun 18)->
-(~)-(32 files, 4.2Gb)--> ftp slackbuilds.org
bash: /usr/bin/ftp: No such file or directory

when i use the full path it does the same thing:

Code:

(jmd9qs@darkstar)-(0)-(08:39 PM Fri Jun 18)->
m-(~)-(32 files, 4.2Gb)--> /usr/bin/ftp slackbuilds.org
bash: /usr/bin/ftp: No such file or directory

but check this out:

Code:

(jmd9qs@darkstar)-(0)-(08:40 PM Fri Jun 18)->
-(~)-(32 files, 4.2Gb)--> cd /usr/bin; ls | grep ftp
ftp*
ftp-rfc*
ftpcount*
ftpdctl*
ftptop*
ftpwho*
fzsftp*
gftp*
gftp-gtk*
gftp-text*
lftp*
lftpget*
ncftp*
ncftpbatch*
ncftpbookmarks*
ncftpget*
ncftpls*
ncftpput*
ncftpspooler@
obexftp*
rftp*
sftp*
tftp*

what is going on here?

tsg 06-18-2010 03:50 PM

Who are you logged in as and what does 'ls -l /usr/bin/ftp' say?

jmd9qs 06-18-2010 03:56 PM

i'm logged in as my user (jmd9qs), and here's the output you requested (it belongs to root right now, it seems, i don't know if that's correct or not):



Code:

l(jmd9qs@darkstar)-(0)-(08:55 PM Fri Jun 18)->
m-(~)-(32 files, 4.2Gb)--> ls -l /usr/bin/ftp                                 
-rwxr-xr-x 1 root root 88680 2010-05-19 04:48 /usr/bin/ftp*

and here's this too:

Code:

l(jmd9qs@darkstar)-(0)-(08:55 PM Fri Jun 18)->
m-(~)-(32 files, 4.2Gb)--> cat /etc/group | grep jmd9qs                       
floppy:x:11:jmd9qs
audio:x:17:jmd9qs
video:x:18:jmd9qs
cdrom:x:19:jmd9qs
plugdev:x:83:jmd9qs
power:x:84:jmd9qs
netdev:x:86:jmd9qs


tsg 06-18-2010 03:59 PM

How about 'ls -ld /usr/bin'?

jmd9qs 06-18-2010 04:01 PM

Code:

l(jmd9qs@darkstar)-(0)-(09:01 PM Fri Jun 18)->
m-(~)-(32 files, 4.2Gb)--> ls -ld /usr/bin                                     
drwxr-xr-x 4 root root 94208 2010-04-30 00:01 /usr/bin/


tsg 06-18-2010 04:07 PM

I'm checking my installation (13.0) and the permissions seem right, but my ftp is located in /bin, not /usr/bin. You say you didn't format /usr when you did the install, was there something in there before you started?

tsg 06-18-2010 04:10 PM

Also, check 'ldd /usr/bin/ftp' and see if there are any libraries missing.

jmd9qs 06-18-2010 04:10 PM

tsg,

check this out:

Code:

l(jmd9qs@darkstar)-(0)-(03:05 PM Fri Jun 18)->
m-(~)-(32 files, 4.2Gb)--> whereis ftp                                         
ftp: /bin/ftp /usr/bin/ftp /usr/X11R6/bin/ftp /usr/bin/X11/ftp /usr/X11/bin/ftp /usr/man/man1/ftp.1.gz /usr/share/man/man1/ftp.1.gz /usr/X11/man/man1/ftp.1.gz

and yes, everything that was in the /usr directory on my Mandriva installation is still in the /usr directory now (except for /usr/dict, which was strangely overwritten during installation)

jmd9qs 06-18-2010 04:12 PM

tsg,

now i think we've got something... here's the output of ldd:

Code:

l(jmd9qs@darkstar)-(0)-(03:09 PM Fri Jun 18)->
m-(~)-(32 files, 4.2Gb)--> ldd /usr/bin/ftp                                   
        not a dynamic executable

what does this mean?

jmd9qs 06-18-2010 05:19 PM

i've been messing around with this and have found that as root i get no errors... /usr/bin /usr/sbin, etc are in my PATH, so now i'm really confused

hello.freeman 06-18-2010 05:20 PM

Quote:

Originally Posted by jmd9qs (Post 4008000)
tsg,

now i think we've got something... here's the output of ldd:

Code:

l(jmd9qs@darkstar)-(0)-(03:09 PM Fri Jun 18)->
m-(~)-(32 files, 4.2Gb)--> ldd /usr/bin/ftp                                   
        not a dynamic executable

what does this mean?


I think '/usr/bin/ftp' is not a binary file.

Check it as follow please:
bash$ file /usr/bin/ftp

hello.freeman 06-18-2010 05:25 PM

BTW, 'ldd' is a bash script, you can read it if you want to know how it work.

jmd9qs 06-18-2010 05:31 PM

Code:

l(jmd9qs@darkstar)-(0)-(03:26 PM Fri Jun 18)->
m-(~/Downloads/encfs)-(5 files, 936Kb)--> file /usr/bin/ftp                   
/usr/bin/ftp: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), stripped


tsg 06-18-2010 05:37 PM

Quote:

Originally Posted by jmd9qs (Post 4007995)
and yes, everything that was in the /usr directory on my Mandriva installation is still in the /usr directory now (except for /usr/dict, which was strangely overwritten during installation)

Ah, you installed Slackware 13.1 over top of an existing Mandriva installation? That may be the source of the problem.

If you try to run /bin/ftp as your user id, does it work?

hello.freeman 06-18-2010 05:38 PM

Wow, That's very very interesting.


All times are GMT -5. The time now is 03:08 PM.