LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   installed 13.1, /usr mounted on own partition.error message "/usr/<> file not found" (https://www.linuxquestions.org/questions/slackware-14/installed-13-1-usr-mounted-on-own-partition-error-message-usr-file-not-found-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.

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

Can you show the info of 'cat /etc/mtab' ?

jmd9qs 06-18-2010 05:52 PM

tsg,

yes, but i formatted the / partition... it's not the first time i've done so but i don't think i've ever tried to "import" my old /usr before. i'm thinking that it's got something to do with it.

also, running /bin/ftp under my id works as intended

jmd9qs 06-18-2010 05:53 PM

Code:

l(jmd9qs@darkstar)-(0)-(04:51 PM Fri Jun 18)->
m-(~/Downloads/encfs)-(5 files, 936Kb)--> cat /etc/mtab                                                                                             
/dev/root / jfs rw,relatime 0 0
proc /proc proc rw 0 0
sysfs /sys sysfs rw 0 0
usbfs /proc/bus/usb usbfs rw 0 0
/dev/sda2 /home ext4 rw 0 0
/dev/sda4 /usr jfs rw 0 0
/dev/sdb1 /mnt/safe vfat rw 0 0
tmpfs /dev/shm tmpfs rw 0 0


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

fgsdfsdf

jmd9qs 06-18-2010 05:58 PM

/usr is on /dev/sda4 (the 8th line down). it's mounted by /etc/fstab at boot

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

I can't have any idea.
Well, I'll pay attention to it and hope someone can give the solution.

jmd9qs 06-18-2010 06:10 PM

well, thank you for trying! :)

jmd9qs 06-18-2010 06:12 PM

ok well i've decided to just to a fresh re-install and overwrite /usr... i'll make it a downloads partition or something.

thank you all for your help!

Richard Cranium 06-18-2010 06:23 PM

Quote:

Originally Posted by jmd9qs (Post 4008098)
ok well i've decided to just to a fresh re-install and overwrite /usr... i'll make it a downloads partition or something.

thank you all for your help!

If you have not already done so, you can drop into runlevel 1, login as root, and then run "jfs_fsck /dev/sda4" and see if that reports (and fixes) any problems.

I had similar very funky behavior with an xfs filesystem that had been corrupted due to memory problems. I had to repair the file system to make the funkiness go away.

jmd9qs 06-18-2010 06:38 PM

Richard,

fortunately the re-install fixed the problem. thanks for the input though! (i love how fast i can be up and running again, by the way... Slackware rocks!)

tsg 06-20-2010 01:16 AM

I had a feeling the install over top of Mandriva might be the issue. Slackware doesn't even like installs over top of old Slackware installations.


All times are GMT -5. The time now is 11:24 AM.