Unix Shell - Where is mount command ?

This is Interesting: Free IT Magazines  
Home > Archive > Unix Shell > October 2006 > Where is mount command ?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Where is mount command ?
Bo Yang

2006-10-25, 1:27 pm

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello ,
I am building a system from scratch now ,
and could you tell me where is the mount command
source code ?
I use gentoo to

'emerge mount '
but , it can't find anything .
I think this command must like the df or du ,
belong to some package .
Could you please tell where can I find it ?
Thank you very much !
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFP4Os7tZp58UCwyMRAhypAJ45WGI/lzsB8PoukIlZWRjGqjfHBwCguE2Z
65mZn6fifllW9S4TGuUr4Z4=
=f12D
-----END PGP SIGNATURE-----
Chris F.A. Johnson

2006-10-25, 1:27 pm

On 2006-10-25, Bo Yang wrote:
>
> Hello ,
> I am building a system from scratch now ,
> and could you tell me where is the mount command
> source code ?
> I use gentoo to
>
> 'emerge mount '
> but , it can't find anything .
> I think this command must like the df or du ,
> belong to some package .
> Could you please tell where can I find it ?


It should be installed as part of the base system in all
distributions in /bin.

What does 'type mount' say?

--
Chris F.A. Johnson, author <http://cfaj.freeshell.org/shell>
Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)
===== My code in this post, if any, assumes the POSIX locale
===== and is released under the GNU General Public Licence
Bill Marcum

2006-10-25, 1:27 pm

On Wed, 25 Oct 2006 23:33:00 +0800, Bo Yang
<struggle@mail.nankai.edu.cn> wrote:
>
> Hello ,
> I am building a system from scratch now ,
> and could you tell me where is the mount command
> source code ?
> I use gentoo to
>
> 'emerge mount '
> but , it can't find anything .
> I think this command must like the df or du ,
> belong to some package .
> Could you please tell where can I find it ?
> Thank you very much !


I don't know about gentoo, but on Ubuntu:
$ dpkg -S bin/mount
mount: /bin/mount
klibc-utils: /usr/lib/klibc/bin/mount
initscripts: /bin/mountpoint
smbfs: /sbin/mount.cifs
smbfs: /sbin/mount.smb
smbfs: /sbin/mount.smbfs

$ apt-cache show mount
Package: mount
Essential: yes
Priority: required
Section: base
Installed-Size: 308
Maintainer: LaMont Jones <lamont@debian.org>
Architecture: i386
Source: util-linux
Version: 2.12p-6ubuntu5

Look for the source package util-linux.


--
You have an ability to sense and know higher truth.
Hufnus

2006-10-26, 1:30 am

On Wed, 25 Oct 2006 23:33:00 +0800
Bo Yang <struggle@mail.nankai.edu.cn> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hello ,
> I am building a system from scratch now ,
> and could you tell me where is the mount command
> source code ?
> I use gentoo to
>
> 'emerge mount '
> but , it can't find anything .
> I think this command must like the df or du ,
> belong to some package .
> Could you please tell where can I find it ?
> Thank you very much !
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.5 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFFP4Os7tZp58UCwyMRAhypAJ45WGI/lzsB8PoukIlZWRjGqjfHBwCgu
> E2Z 65mZn6fifllW9S4TGuUr4Z4=
> =f12D
> -----END PGP SIGNATURE-----


which mount

will search your path order for it!

whereis -b mount

will search for all "mount*" binaries like /bin/mount,
/sbin/mount, /sbin/mount.smbfs in standard linux places
and list where they are located.

TonyB

Fall is my favorite season in Los Angeles, watching the birds
change color and fall from the trees.
David Letterman (1947 - )

--
__ __ _ I N C. http://www.sysdev.org
/ __|\\// __|| \ __ __ / tonyb@sysdev.org
\__ \ \/\__ \||)|/ O_)\/ / \/ System Tools / Utilities
|___/ || ___/|_ /\___|\_/ WIntel / Linux Device Drivers

Barry Margolin

2006-10-26, 1:30 am

In article <lhd414-4br.ln1@xword.teksavvy.com>,
"Chris F.A. Johnson" <cfajohnson@gmail.com> wrote:

> On 2006-10-25, Bo Yang wrote:
>
> It should be installed as part of the base system in all
> distributions in /bin.
>
> What does 'type mount' say?


He asked where the SOURCE code is, because he's trying to recompile the
OS from scratch.

--
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
*** PLEASE don't copy me on replies, I'll read them in the group ***
Bo Yang

2006-10-27, 1:24 am

Bill Marcum :
> On Wed, 25 Oct 2006 23:33:00 +0800, Bo Yang
> <struggle@mail.nankai.edu.cn> wrote:
>
> I don't know about gentoo, but on Ubuntu:
> $ dpkg -S bin/mount
> mount: /bin/mount
> klibc-utils: /usr/lib/klibc/bin/mount
> initscripts: /bin/mountpoint
> smbfs: /sbin/mount.cifs
> smbfs: /sbin/mount.smb
> smbfs: /sbin/mount.smbfs
>
> $ apt-cache show mount
> Package: mount
> Essential: yes
> Priority: required
> Section: base
> Installed-Size: 308
> Maintainer: LaMont Jones <lamont@debian.org>
> Architecture: i386
> Source: util-linux
> Version: 2.12p-6ubuntu5
>
> Look for the source package util-linux.
>
>

Thank you , I found util-linux is what I need !
I think there are too many tools which I can't
find which package they belongs to .
And could you tell me another location ?
Where the init process source code ?
Thank you !
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com