Ubuntu 12.10 - Unable to mount network drive

Asked by Paul Hunt

Sirs,

I have a LAN HDD attached to my network. I have installed Ubuntu 12.10 on an old(ish) HP Compaq machine. Everything works apart from the fact that I cannot figure out how to mount the network drive automatically on start up and to specify the location in Ubuntu's directory structure to which the drive maps.

To clarify, I can mount the LAN HDD device and the shared directory using the GUI - all is well. But, I do not know where the shared directory on the LAN HDD is located in Ubuntu's directory structure. This means, of course, that I cannot write scripts that work upon the shared directory.

I have spent today trying every solution that I can find. The one that gives the fewest error messages is:

gvfs-mount smb://STORAGE/Paul /home/paul/Storage_Paul

The error I get with this is something to the effect that the location does not support mounting.

For clarity:
STORAGE is the device name of the LAN HDD
Paul is the shared directory on the LAN HDD
/home/paul/Storage_Paul is where I would like to find the shared directory in Ubuntu's directory structure (Although I'm not that fussed where it ends up so long as I can find it and access files on it using a script.)

I hope that you will be able to help.

Regards,

Paul.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu samba Edit question
Assignee:
No assignee Edit question
Solved by:
Paul Hunt
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

If you run:

smbtree; lsb_release -a; uname -a

What is output?

Thanks

Revision history for this message
Paul Hunt (paul-hunt99) said :
#2

Hello Andrew,

Thanks for the response.

This is what I get:

WORKGROUP

 \\STORAGE
  \\LENOVO-THINK

No LSB modules are available.

Distributor ID: Ubuntu

Description: Ubuntu 12.10

Release: 12.10

Codename: quantal

Linux paul-HP-Compaq-nx6325-EY345EA-ABU 3.5.0-17-generic #28-Ubuntu SMP Tue Oct 9 19:32:08 UTC 2012 i686 athlon i686 GNU/Linux

The LENOVO is another machine on my network and STORAGE is the LAN HDD device.

Any use?

Regards,

Paul.

Revision history for this message
Paul Hunt (paul-hunt99) said :
#3

Hello Andrew,

Some more information:

I've discovered where the shared volumes get mounted by the GUI:

/run/user/paul/gvfs

It took a bit of finding.

The shared volumes appear in that directory as follows:

smb-share:server=192.168.1.9,share=paul

Note that I attached using the IP address because although using the name STORAGE works, using the IP address appears to be more reliable.

I've written a script that runs at start-up to mount the shared volumes. The script is along these lines:

cd /run/user/paul/gvfs
gvfs-mount smb://192.168.1.9/Paul

That's more-or-less the problem sorted out but it all seems messy to me. I'd rather be able to mount the shared volumes where I want them with names that I like.

If you can suggest something neater I'd be very interested. I'm sure that the above is not the best way of going about things.

Regards,

Paul.

Revision history for this message
Paul Hunt (paul-hunt99) said :
#4

See my related question 213004.

Mounting in the usual way rather than using gvfs did the trick.