Re: Mounting question



I've successfully used:

- ensure it exists or create a mount point on /mnt (say /mnt/remote_share)

- [as root or sudo] mount -t cifs //remote_server/shared_dir
/mnt/remote_share -o
user=your_windows_creds_on_machine_or_domain,domain=machine_or_domain_name

The mount line is one continuous line - no line breaks!

Yes, you actually do -o user=blah,domain=blah to authenticate yourself to
the domain/machine to mount.

Works every time for me.

Now what I'd like to know is if there a faster way to remotely mount a
Windows/SMB share without having to be sudo/root.

I've found trying to mount as -t smbfs caused failures and problems. Once
I replaced -t smbfs with -t cifs, the problems went away.

Scott

On Tue, 31 Jul 2007, Bart Silverstrim wrote:

Darren Mansell wrote:
On Tue, 2007-07-31 at 09:24 -0400, Bart Silverstrim wrote:
I am trying to do some work with some remote Windows shares and while I
can easily mount the volume using places->connect to server, it only
mounts it under the Ubuntu desktop and some GNOME-aware applications.
If I'm trying to do work with scp or cp from a mount point, the path
doesn't exist.

What is the best/easiest way to have, for example, \\windowsserver\share
mounted to \mnt\windows so I can use command line file utilities?

Put it in /etc/fstab ie

//server/share /media/windows smb
uid=1000,gid=1000,rw,credentials=/home/user/.smbpw 0 0

Dont forget to apt-get smbfs

some windows servers require you to use cifs instead of smb for the
filesystem.

Make ~/.smbpw and put

username=yourusername
password=yourpassword

Is there a way to do this on the fly, as in, "the file is need is on
XXXX, so I need to mount that share..." instead of putting into the
fstab (which if I am reading it right would mount it at boot time, but
please correct me if I'm wrong!)?

--
ubuntu-users mailing list
ubuntu-users@xxxxxxxxxxxxxxxx
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users


--
ubuntu-users mailing list
ubuntu-users@xxxxxxxxxxxxxxxx
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users



Relevant Pages

  • Re: [opensuse] smbmount failed??
    ... Mandag 12 marts 2007 00:47 skrev Felix Miata: ... The only thing it lacks IIRC is the ability to mount a ... SMBFS mounts with recompiled with SMBFS enabled 10.2 ... I never was into kernel recompling and stuff. ...
    (SuSE)
  • FC5 - cifs and samba - mount error 12 = Cannot allocate memory
    ... I need help to mount XP shares on Fedora Core 5 because smbfs is no ... longer supported in FC5. ... It seems that smbfs has been replaced with cifs. ...
    (comp.os.linux.networking)
  • Re: cups in debian?? Resend to list
    ... >all you x-window startup based on this file '.xinitrc', ... Samba was included, and I've setup all ... scripts and modified them for that path as a mount point. ... smbfs: mount_data version 1919251317 is not supported ...
    (Debian-User)
  • Re: [2.6 patch] remove smbfs
    ... samba-2.x.x) work only with smbfs on the client side. ... don't make it too easy to mount with insecure lanman (ie due to ... Today the user has to explicitly specify ... There are four common issues with mounting to these very old servers: ...
    (Linux-Kernel)
  • 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)