Skip to contentSkip to conversation

LOSETUP COMMAND

DISCUSSION Michael Zhu 3 participants 3 messages Jan 11, 2002 – Jan 12, 2002

lore
Share & tools
lore
#0 lore raw

Hello, everyone, does anyone know where I can find the source code of "losetup" and "mount"? Thanks

Michael

______________________________________________________________________
Web-hosting solutions for home and business! http://website.yahoo.ca

#1 lore raw
Quoted 2 lines · Michael Zhu

Hello, everyone, does anyone know where I can find the source code of "losetup" and "mount"? Thanks

If you're using an RPM-based distribution, you can use rpm to find this kind of information.

$ rpm -qf /bin/mount
mount-2.10f-1

Now, get the mount-2.10f-1.src.rpm from your install media, use rpm -ivh to install it, then rpm -bp on the installed specfile to recover the actual source tree used to build that version of mount.

Jeff

#2 lore raw
In reply to Michael Zhu
Quoted 7 lines · On Fri, Jan 11, 2002 at 03:55:57PM -0600, [email protected] wrote:
Quoted 2 lines · Michael Zhu

Hello, everyone, does anyone know where I can find the source code of "losetup" and "mount"? Thanks

If you're using an RPM-based distribution, you can use rpm to find this kind of information.

Quoted 6 lines
$ rpm -qf /bin/mount
mount-2.10f-1

Now, get the mount-2.10f-1.src.rpm from your install media, use rpm -ivh to install it, then rpm -bp on the installed specfile to recover the actual source tree used to build that version of mount.

Or use Debian, and simply say:

apt-get source mount

- Gábor