LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-24-2012, 09:49 AM   #1
Emegra
Member
 
Registered: Sep 2011
Location: Dundee, Scotland
Distribution: Mint Maya 13
Posts: 104

Rep: Reputation: Disabled
Accessing network shares in wine


Hi Everyone
I am a recent convert to Linux and have managed to find alternative software for most of the things I used to to with windows, but there are a few windows programs I still need to use, one of them is Roots Magic a genealogy program, the program works ok in wine but the problem is that I store all the data files & media files on a network server and i cannot access then from within the program the path I want would be home/graeme/gvfs/myservername/backup folder I can browse as far as home/graeme but the gvfs folder isn't listed, is there any way I get my shared folders to list from either Mint or wine settings I've looked in both but don't see any obvious way to solve this problem, any help or advice would be much appreciated.

Many Thanks
Graeme
 
Old 01-24-2012, 11:57 AM   #2
sag47
Senior Member
 
Registered: Sep 2009
Location: Raleigh, NC
Distribution: Ubuntu, PopOS, Raspbian
Posts: 1,899
Blog Entries: 36

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
Mount your network share using cifs.

http://industriousone.com/blog/mount...s-shares-linux

It's part of the smbfs package.

Last edited by sag47; 01-24-2012 at 12:01 PM.
 
Old 01-24-2012, 03:27 PM   #3
Emegra
Member
 
Registered: Sep 2011
Location: Dundee, Scotland
Distribution: Mint Maya 13
Posts: 104

Original Poster
Rep: Reputation: Disabled
Hi sag47 thanks for the reply I had a look at the the link but I'm not sure it directly relates to my problem, I can access all my network shares ok, the problem is accessing any network share from within a windows program running in Wine namely Roots Magic,an example would be if I want to back up to my NAS Server the program will only list local directories or the C & Z drives within Wine

Many Thanks
Graeme
 
Old 01-24-2012, 03:38 PM   #4
sag47
Senior Member
 
Registered: Sep 2009
Location: Raleigh, NC
Distribution: Ubuntu, PopOS, Raspbian
Posts: 1,899
Blog Entries: 36

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
As far as wine is concerned, when you mount a network share like that, it is a local directory. The program running in wine, and even wine itself, has no idea that the folder path is a network share. It operates on it like any other directory but it is still a mounted network share.

This means you will have to access it from ROOT but that shouldn't be a problem in wine. Once you have a share location you want to use regularly you can add it in /etc/fstab so that it will automount when the machine is turned on and the share is available or you could feed it the noauto option and just have the mount point saved for later use.

SAM

Last edited by sag47; 01-24-2012 at 03:40 PM.
 
Old 01-25-2012, 01:03 AM   #5
Emegra
Member
 
Registered: Sep 2011
Location: Dundee, Scotland
Distribution: Mint Maya 13
Posts: 104

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by sag47 View Post
As far as wine is concerned, when you mount a network share like that, it is a local directory. The program running in wine, and even wine itself, has no idea that the folder path is a network share. It operates on it like any other directory but it is still a mounted network share.

This means you will have to access it from ROOT but that shouldn't be a problem in wine. Once you have a share location you want to use regularly you can add it in /etc/fstab so that it will automount when the machine is turned on and the share is available or you could feed it the noauto option and just have the mount point saved for later use.

SAM
Hi Sag47, Thanks again I'm quite new to Linux and not particularly computer literate so I don't quite understand what you're saying, firstly all my shares do auto mount, ie when I boot my machine up all the shares are listed in my computer folder and are available I also have gigolo installed which I've set to auto mount my shares,secondly I don't have a clue what you mean by "noauto option", the odd thing about this for me is this problem only occurred since I re installed Mint 12 to another PC I got at the weekend prior to that I was able to select the gvfs folder from within the Roots Magic program without any problem, I hope I'm not trying your patience I do try to sort these problems out myself and search the web etc before asking for help on the forums (I quite enjoy the learning curve)but I am struggling with this one

Many Thanks

Graeme
 
Old 01-25-2012, 08:32 AM   #6
sag47
Senior Member
 
Registered: Sep 2009
Location: Raleigh, NC
Distribution: Ubuntu, PopOS, Raspbian
Posts: 1,899
Blog Entries: 36

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
My appologies. Since you're more of a graphical oriented user let me try to explain better.

Here's some prerequisite information to your problem.
Open your terminal from Applications > System > Terminal. You can use the terminal to read manual documentation also called man pages. If you have never used the man pages before then type the following command.
Code:
man man
Here are some quick shortcuts to the man pages.
  • q - (LOWERCASE Q) quits the man pages
  • SHIFT+G - (i.e. hold the shift key and press the g key) goes to the bottom of the man page
  • gg - goes to the top of the man page
  • j - scrolls down the man page
  • k - scrolls up the man page
  • / - searches down for text, type in your search term and then press ENTER
  • ? - searches up for text, type in your search term and then press ENTER
  • n - goes to the next matching search result

Now that you generally know how to use the man pages in the terminal read the following documentation.
Code:
man fstab
man mount
man fs
From that documentation you can read that the fstab is a file of all of your filesystem mounts are kept and you can use the mount command to mount and unmount them. You can search the mount man page for noauto and it is listed under the "FILESYSTEM INDEPENDENT MOUNT OPTIONS" section of the mount man page. I'll give you a snippet of that here.

Code:
MOUNT(8)            Linux Programmer's Manual            MOUNT(8)

NAME
       mount - mount a filesystem

SYNOPSIS
       mount [-lhV]

       mount -a [-fFnrsvw] [-t vfstype] [-O optlist]

       mount [-fnrsvw] [-o option[,option]...]  device|dir

       mount [-fnrsvw] [-t vfstype] [-o options] device dir

DESCRIPTION

*--snip--*

FILESYSTEM INDEPENDENT MOUNT OPTIONS
       Some of these options are only useful when they appear in the /etc/fstab file.

       Some of these options could be enabled or disabled by default in the system kernel. To check the current setting see the options in /proc/mounts.

       The following options apply to any filesystem that is being mounted

*--snip--*

       noauto Can only be mounted explicitly (i.e., the -a option will not cause the filesystem to be mounted).

*--snip--*
If the man pages are hard to understand you could always google "/etc/fstab noauto".

Edit your own fstab
To edit your own fstab file you could run the following command (but be careful because this can break your whole system). Also it's best to make a backup copy of your fstab file if you've never edited fstab before so that you can always go back on your changes.
Code:
sudo cp /etc/fstab /etc/fstab.backup
sudo gedit /etc/fstab
Here is a sample fstab entry mounting a network file share with the noauto option. Remember you're not typing this as a command in the terminal but it's an entry in your fstab file. This also assumes your share is open without a password.

Code:
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
//192.168.1.100/my\ file\ share     /home/user/share       cifs       defaults,noauto,ro   0 0
That mounting share has the options "defaults,noauto,ro". You can read the mount man page for what defaults covers or you could google "fstab mount defaults".

That's about all I have time to explain right now. Hopefully it wasn't too indepth or confusing for you.

SAM
 
Old 01-27-2012, 12:47 PM   #7
gradinaruvasile
Member
 
Registered: Apr 2010
Location: Cluj, Romania
Distribution: Debian Testing
Posts: 731

Rep: Reputation: 158Reputation: 158
To the OP:

Does the /home/username/gvfs (or more likely .gvfs) folder exists? Check it in Thunar or Nautilus (the file manager). Is it populated after mounting your share?
If not, you will need to install the gvfs-fuse (or equivalent) package. After installation you will have to log ot then back in (or restart).

PS gvfs is the "gnome virtual file system", gvfs-fuse is a mechanism designed to "export" the shares mounted via gvfs to all programs (not only those who know gvfs, as gigolo/thunar etc).

Last edited by gradinaruvasile; 01-27-2012 at 12:53 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
accessing SQL server via wine on a network topcat Linux - Software 3 10-28-2007 03:11 PM
Accessing Windows Shares careyd Linux - Networking 3 12-01-2005 03:18 PM
Accessing network shares brianread SUSE / openSUSE 8 05-25-2005 01:30 AM
Accessing other default shares siddharth Linux - Networking 2 08-29-2003 11:26 AM
Accessing shares chrismagnuss Linux - Networking 1 10-02-2001 02:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:26 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration