LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
Search this Thread
Old 10-08-2007, 10:36 AM   #1
elitt2
LQ Newbie
 
Registered: Oct 2007
Posts: 5

Rep: Reputation: 0
Which path to use to query rpm to determine which RPM to install?


Thank you in advance for your help.

I am using RHEL4 and my instructor has taken down my server and I have to troubleshoot it. I have the server in rescue mode. I had to find the path to the mount file but the whereis command gave me several files and I don't know which path to use in my query of the RPM.

Here are the file/paths:
/sbin/mount.smb
/sbin/mount.cifs
/sbin/mount.smbfs
**I am pretty sure the 2 files below are compressed files**
/usr/share/man/man2/mount.2.gz
/usr/share/man/man8/mount.8.gz

When I used this command:
rpm -qf /sbin/mount

I got this error message:
error: file /sbin/mount: No such file or directory

I am trying to determine which rpm I need so that I can download it and install to get the mount file restored so that I can complete the assignment. If I am doing something wrong would you mind explaining what it is exactly that I am doing wrong?

Thanks,
Erik
 
Old 10-08-2007, 10:50 AM   #2
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 56
Sorry, it is not proper for us to do your school work for you.

I will offer you some hints however: 'which mount', 'man rpm' and also 'man mount'
 
Old 10-08-2007, 11:02 AM   #3
elitt2
LQ Newbie
 
Registered: Oct 2007
Posts: 5

Original Poster
Rep: Reputation: 0
I do not want you to do my assignment, I am paying a lot of money for this class and I am well aware of ethical behavior in computer science. I am asking for clarification and explanation of what I am seeing, if you consider that to be doing my assignment then that is your prerogative.

With that said could you explain what those commands do? RHEL 4 documentation does a poor job of listing commands and what they do. Could you tell me what the different file extensions mean?

Thank you,
Erik
 
Old 10-08-2007, 12:09 PM   #4
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 96
Hi.

'mount' is in /bin , not /sbin

Dave
 
Old 10-08-2007, 01:18 PM   #5
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 56
As ilikejam already stated mount is in the /bin directory not the /sbin directory. The man commands above are fairly complete manuals for each. The which command tells you were something can be found.

May I suggest that you beg/borrow/purchase the Red Hat Enterprise Linux Bible and maybe some other suggest books at the link below;

http://www.amazon.com/Fedora-Red-Ent.../dp/0471754919

Also google is your friend; http://www.google.com/linux and The Linux Documentation Project: http://tldp.org/ can be quite helpful as well. Try using the google link and enter in any of the commands from my earlier reply.

For example: http://linux.die.net/man/8/mount.cifs

The Red Hat manual actually do a good job explaining the commands, but they do take lots of reading for understanding as they are not geared towards the layman.

Quote:
/sbin/mount.smb
/sbin/mount.cifs
/sbin/mount.smbfs
These are helpful aids to mounting Windows shares.

Quote:
**I am pretty sure the 2 files below are compressed files**
/usr/share/man/man2/mount.2.gz
/usr/share/man/man8/mount.8.gz
You are ring they are compressed files, they are the manual pages for the mount command to be exact.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
install rpm in $HOME path munna_dude Programming 1 08-22-2007 03:38 AM
rpm path confusion - distro specific rpm? gandalf2041 Linux - Software 2 04-08-2004 02:19 PM
How do I force an older rpm to install over a newer rpm of wine onyx Linux - Software 4 02-20-2004 12:44 AM
Help : rpm dependency error when install video driver rpm ymdwxm Linux - Software 1 04-04-2003 04:55 PM


All times are GMT -5. The time now is 04:07 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration