Re: Mounting question



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!)?


Simple,, first, you need to install the smbfs package, (Ubuntu, sadly,
doesn't include it by default,, bad Ubuntu)

create a directory where you want to mount this thing:

sudo mkdir /mnt/network

Then mount:

sudo mount -t cifs //computername/sharename -o
username=remoteUser,uid=localUserName

This will prompt you for a password.

I believe mount needs the hostname for computername, and won't resolve
NetBios only names. If you don't have /etc/hosts entries for all your
local computers, try using just an IP address.

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



Relevant Pages

  • Re: Samba/nfs symbolic link problem.
    ... On my server I have a share with 3 drives linked in it. ... and if I mount the share ... How I have spent a good bit of time on the samba forums and the Ubuntu ... Edit the configuration of your Samba server and disable unix extensions: ...
    (Ubuntu)
  • Re: Problem with mounting nfs
    ... OS Ubuntu 606 server ... failing CD/DVD drive) I am unable to mount an nfs directory. ... I have the correct IP number for the remote machine ...
    (comp.unix.admin)
  • Re: Access to Linux (ext3) & Windows (FAT32) partitions (from Ubuntu 9.04)
    ... enable access to Windows XP and Fedora 10 (ext3) partitions ... from within Ubuntu? ... Will these cmds mount the file systems permanently (i.e. every time I ...
    (Ubuntu)
  • netbook remix 9.04 -- /home not always mounted
    ... The release candidate of Ubuntu 9.04 was looking pretty sweet, ... decided to take the plunge and installed the netbook remix on my eeepc ... The actual error message produced by mount indicates that the relevant ... if I interrupt the boot process (using the "break=top" boot ...
    (Ubuntu)
  • Re: Can not access my slave drive...Need help!
    ... Upon booting up, I use the arrow key to move down to my second drive, ... mount: I could not determine the filesystem type, ... The cables I have also checked, I even switched out the primary drive, ... by Ubuntu ver 8.10 Intrepid ...
    (Ubuntu)