Re: Mounting a windows machines drives on a linux machine

From: Mike Maxwell (maxwell_at_ldc.upenn.edu)
Date: 09/30/03


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



Relevant Pages

  • RE: Help needed - Cant Upgrade from Samba 3.0.3-5
    ... that I used to be able to mount my windows shares ... Smbfs: mount_data version 1029990773 is not supported ... Here is my original fstab as you can see the two sets of error messages ... Help needed - Cant Upgrade from Samba 3.0.3-5 ...
    (Fedora)
  • Re: [SLE] mount error: invalid argument (smbfs)
    ... > smbfs: Unrecognized mount option noauto" when I try to mount this samba ... I must edit fstab to remove the ...
    (SuSE)
  • Re: nls iso8859-1
    ... > fstab, and mounted the partition by calling mount.smbfs directly as ... > root. ... > how to add the line to fstab so that a user can mount an smbfs ...
    (Debian-User)
  • RE: Machine not Booting - Continued
    ... The fstab is not to blame for this issue as i have just run mkraid /dev/md0 ... and then a mount -a and the area mounted straight away. ... it has no proper file system to mount. ...
    (RedHat)
  • Re: How to set /etc/fstab again after system has started
    ... That is the incorrect statement. ... With an appropriate entry in fstab, it takes very little, ... but without it the mount command needs more information. ... The previous poster went off on a tangent, ...
    (comp.os.linux.misc)