On Tue, 21 Nov 2000, Mitch Davis wrote:
> Dear Juliano,
>
> I would suggest doing an smbmount on your normal Linux box, but watch
> what
> it does using the strace program. You can then write code for your
> embedded computer which makes these same system calls.
I think you'll find that it's more than system calls. smbmount first
connects to the smb server (via smb, of course), doing all that
negotiation, before calling the mount system call. There are various
versions of smbmount, and I believe the current version links against some
library from the samba suite (or maybe it does a system call to
smbclient).
It's still doable, but not as easy as just doing an strace, because you
need to do the smb protocol and negotiation.
--Jeremy
>
> Sounds the easiest way to me.
>
> Regards,
>
> Mitch.
>
> > -----Original Message-----
> > From: Juliano Pimentel [mailto:[EMAIL PROTECTED]]
> > Sent: Sunday, November 19, 2000 11:38 AM
> > To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> > Subject: RES: Mounting a Windows Partition at Linux
> >
> > Is there a way to execute the smbmount command inside of a programm
> > whithout using system,
> > like for example "int mount()" or something like that?!
> > Thank you very much,
> > Juliano
> >
> > > ----- Mensagem original -----
> > > De: Juliano Pimentel
> > > Enviada em: Sexta-feira, 17 de Novembro de 2000 15:26
> > > Para: '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]'
> > > Assunto: Mounting a Windows Partition at Linux
> > >
> > >
> > > Hi all,
> > > I'm looking for a more robust or efficient procedure for mounting a NT
> > > partition at Linux. What I do is:
> > >
> > > "smbmount //win_machine/share_dir /mnt/shareth -o
> > > username=administrator,password=123456"
> > >
> > > The problem is I'm developing a stand-alone system and don't want to
> > > loose this shared dir.
> > > Many times I realize that even without network connection lost, it loses
> > > the shared dir.
> > >
> > > Do someone know any other more efficient and robust procedure in order to
> > > do so?!
> > >
> > > Thank you all,
> > > Juliano
Jeremy Impson
Associate Network Engineer
Advanced Technologies Department
Lockheed Martin Systems Integration
email: [EMAIL PROTECTED]
phone: 607-751-5618
fax: 607-751-6025
--
To unsubscribe from this list, send a message to [EMAIL PROTECTED]
with the command "unsubscribe linux-embedded" in the message body.
For more information, see <http://waste.org/mail/linux-embedded>.