Re: Mounting a windows machines drives on a linux machine
From: Mike Maxwell (maxwell_at_ldc.upenn.edu)
Date: 09/30/03
- Next message: Philip: "getting /etchosts from linksys router"
- Previous message: ynotssor: "Re: smtp problem"
- Next in thread: Stephan Absmeier: "Re: Mounting a windows machines drives on a linux machine"
- Reply: Stephan Absmeier: "Re: Mounting a windows machines drives on a linux machine"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 30 Sep 2003 11:47:00 -0700
Stephan Absmeier <me@privacy.net> wrote in message news:<3F787D95.6040302@privacy.net>...
> use
> smbmount //servername/sharename /localname -o username=xxx
> smbumount
>
> I think the other possibility is using
> mount -t smbfs
> you can write this to fstab like
> //servername/sharename /localfolder smbfs rw,noauto,user,umask=000
> 0 0
I have a similar situation: Win2k on the server, RedHat Linux v9 on
the client. I can switch to su on the client and use the smbmount
cmd, but I cannot seem to make this work out of /etc/fstab (which
would be a whole lot more convenient); it simply hangs at the point of
mounting the smbfs file. I've even gone to the extent of copying the
info directly from fstab into an smbmount cmd line, to make sure I
don't have any typos in fstab. No luck; when I re-boot, it still
hangs. (Actually, it ran fine one time; I have no idea why.)
My fstab entry looks like this (hostname munged to protect the guilty)
(all on one line, of course, and tab-delimited):
//FOO/ldc_admin /mnt/ldc_admin smbfs credentials=/etc/Foo.info
0 2
--where /etc/Foo.info contains my username and password (again, munged
here):
username=rumplestiltskin/ldc
password=RobinHood
and "ldc" is the domain name. Capitalization matches (except, I just
noticed, for the domain name; I'll try changing that when I re-boot,
but I'm not optimistic :-(+).
I've tried lots of variants of this, e.g. using \\\\FOO\\ldc_admin,
putting the domain name before or after the username, etc.
For debugging purposes, it's a real pain to keep re-booting. Is there
a way I can test variants without re-booting? i.e. a way to run
whatever program is being run over fstab during login (or at least
some portion of fstab--probably not a good idea to re-mount "/"!) Of
course it doesn't help to run smbmount (or mount) as su, because when
I run it that way, it works OK.
It happens that the PC that I'm trying to connect to is the Primary
Domain Server. Is that a problem?
I've tried hard-coding the IP address of this server in my /etc/hosts
file, but that doesn't seem to make any difference.
Mike Maxwell
- Next message: Philip: "getting /etchosts from linksys router"
- Previous message: ynotssor: "Re: smtp problem"
- Next in thread: Stephan Absmeier: "Re: Mounting a windows machines drives on a linux machine"
- Reply: Stephan Absmeier: "Re: Mounting a windows machines drives on a linux machine"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|