LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-27-2015, 04:02 PM   #1
mogmog
Member
 
Registered: Jun 2012
Location: UK
Posts: 89

Rep: Reputation: Disabled
could connect to NAS, now can't


Hi,
I did something (unknown) a few days ago & lost network connectivity. I somehow got it back but have found that my NAS, which showed up before, is unreachable.
It was
Code:
file:///run/user/1000/gvfs/smb-share:server=dlink-8ce047,share=volume_1
I've looked at pages and pages of stuff about SAMBA, you start following it then part of the thread/tutorial etc doesn't work, leaving you stuck.

Would be most helpful to be able to reset my network settings to install default (only a few days ago)

Any advice welcomed.
 
Old 06-27-2015, 05:21 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
Quote:
file:///run/user/1000/gvfs/smb-share:server=dlink-8ce047,share=volume_1
So typically the above is created when your file browser connects to a windows network share. Most file browsers have a built in samba client and use gvfs to connect to the share. Yes, you can access it from the command line but most on line tutorials etc will have you mount the share via the old fashioned way i.e.

mount -t cifs /server/share_name /mnt/point -o mount_options. (must be root or use sudo)

Last edited by michaelk; 06-28-2015 at 08:36 AM.
 
Old 06-28-2015, 08:33 AM   #3
mogmog
Member
 
Registered: Jun 2012
Location: UK
Posts: 89

Original Poster
Rep: Reputation: Disabled
Quote:
mount -t cifs /server/share_name -o mount_options. (must be root or use sudo)
Michael thanks for that insight.
I've run the above, but not really sure what it is telling me:

Code:
"The command is `mount [-t fstype] something somewhere'"
Trying to relate that to server/share_name and what I know (limited), I end up with this:
Code:
sudo mount -t fstype dlink-8ce047,share=volume_1
but that just runs the usage instructions again.

Not only does the NAS not show, it is unable to mount the Windows network.
 
Old 06-28-2015, 09:37 AM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
The posted command was an example and not something you could copy and paste. I also forgot to include the mount point.

However, what do you mean by it is unable to mount the windows network, your file browser? I assume you are using nautilus. What happens when you try to browse the network? Can you access the NAS from other computers on your network?
 
Old 06-28-2015, 10:36 AM   #5
mogmog
Member
 
Registered: Jun 2012
Location: UK
Posts: 89

Original Poster
Rep: Reputation: Disabled
unable to access NAS

I didn't copy & paste as is, I tried to interpret your example & showed what I ended up with.

The file browser is Caja 1.8.2.

If I go Computer > Browse Network I get a Windows Network folder, Prior to this, it contained two workgroups, through one of which I accessed my NAS (DNS 323).

Now, after a long pause, I get the message "Unable to mount location"

Re other PCs on Network. Yes. And no - on W7 PC nearby it seems to be flaky, with Windows reporting unable to connect but sometimes connecting & I accessed the admin pages through the IP address but can't even do that from my LM PC.

I've just connected it directly to my PC. I can ping it OK but can't access the admin pages through IP address on Firefox.
Now connected direct to W7 PC - can access for a short while then becomes unavailable.
Looks like it may be an issue with the NAS rather than my Linux.
 
Old 06-28-2015, 10:45 AM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
Looks like the NAS has a problem. I assume you have tried cycling power etc?
 
Old 06-28-2015, 11:10 AM   #7
mogmog
Member
 
Registered: Jun 2012
Location: UK
Posts: 89

Original Poster
Rep: Reputation: Disabled
unable to access NAS

Yes. Powered down & up. Might try letting it cool right down to see if I get more uptime. Just coincidental timing of my self-inflicted network problem & NAS getting stroppy!
I'm hoping that as it uses either ext2/ext3 FS I can mount disk in PC to get at data.
Time to move to a different forum I think...
Thanks for your help anyway. I've learnt a bit more.
 
Old 06-28-2015, 11:16 AM   #8
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
I believe D-link does use an ext filesystem and you should be able to access your data from the linux PC. If the NAS is using RAID then it is a bit more complicated but still doable.
 
Old 06-28-2015, 11:36 AM   #9
mogmog
Member
 
Registered: Jun 2012
Location: UK
Posts: 89

Original Poster
Rep: Reputation: Disabled
unable to access NAS

Thanks for the encouraging comment. Not RAID, just standard disks.
 
Old 06-29-2015, 01:36 AM   #10
mogmog
Member
 
Registered: Jun 2012
Location: UK
Posts: 89

Original Poster
Rep: Reputation: Disabled
NAS dead, disks good: in my PC now & both accessible.
Unlike my Windows Network. Just been through a load of SAMBA steps/entries/add lines, change this etc but still nothing.
Can I reinstall SAMBA or anything else to start afresh?
Thanks in advance.
 
Old 06-29-2015, 07:57 AM   #11
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
Try adding the below share to your smb.conf file and restart samba. You might need to post your configuration file so we can see the global section. You also should add a samba password for your users via the smbpasswd command. Make sure the workgroup name is the same for all computers.

Code:
[myshare]
    path=/mount/point
    printable = no
    browseable = yes
    guest ok = yes
The following command will show a list of shares.
smbclient -L localhost (just press enter when prompted for a password)

The output should display information for myshare. testparm is a utility to check the smb.conf file for syntax errors.
 
Old 06-29-2015, 01:01 PM   #12
mogmog
Member
 
Registered: Jun 2012
Location: UK
Posts: 89

Original Poster
Rep: Reputation: Disabled
I've done that, seemed to accept it.
Wasn't sure if the entry path=mount/point is the entry or I should put my path in there .../Desktop: I tried both but not sure what is supposed to happen. Nothing appeared on desktop.

Code:
Anonymous login successful
Domain=[DAVITS] OS=[Unix] Server=[Samba 4.1.6-Ubuntu]

	Sharename       Type      Comment
	---------       ----      -------
	homes           Disk      Home Directories
	netlogon        Disk      Network Logon Service
	profiles        Disk      User Profiles
	pdf-documents   Disk      Converted PDF Documents
	pdf-printer     Printer   PDF Printer Service
	myshare         Disk      
	IPC$            IPC       IPC Service (Samba file and print server)
	HP-Color-LaserJet-2600n Printer   HP Color LaserJet 2600n
	PDF             Printer   PDF
	DCP6690CW       Printer   DCP6690CW
	Brother-DCP-6690CW Printer   Brother DCP-6690CW
Anonymous login successful
Domain=[DAVITS] OS=[Unix] Server=[Samba 4.1.6-Ubuntu]

	Server               Comment
	---------            -------

	Workgroup            Master
	---------            -------
	WORKGROUP            GIS
Samba config file has workgroup=DAVITS but has DAVITS as domain. Probably right but I'm puzzled: it woolly on Domains (inter alia).
I appreciate your time & help on this as I'm completely in the dark.
 
Old 06-29-2015, 02:23 PM   #13
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
The path is mount point i.e. directory where the drive is mounted. If it is automatically mounted then typically /media/username/label. I assume not since you mentioned nothing was on the desktop.
 
Old 07-02-2015, 05:50 AM   #14
mogmog
Member
 
Registered: Jun 2012
Location: UK
Posts: 89

Original Poster
Rep: Reputation: Disabled
The only thing in /media is the Linux partition of the main SSD.
NAS is dead & I'm looking for a replacement, so have nothing urgent to network to (other than the Windows PC should show up so I could connect if necessary)

I'm losing the will to live over this: it all just worked when I installed LM17 Qiana some while ago yet this install (LM17 Rebecca) has given me no end of niggles, both major & minor (eg the desktop suddenly reverting to a single duplicate screen on both monitors, java not working, settings moved/rearranged/disappeared with no way of finding them (eg hot corners)). I'm sorely tempted to do a totally clean re-install.
Thanks for taking the time to help.
 
  


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
Cannot connect to my Snake OS NAS with Ubuntu 14.04 paul1945 Linux - Networking 24 11-01-2014 01:28 PM
[SOLVED] Cannot Connect to Seagate Central NAS jkirchner Slackware 13 10-31-2014 08:54 PM
Zynq Linux connect to Network Folder (NAS) maximilianpohl Linux - Embedded & Single-board computer 0 09-17-2014 04:44 PM
[SOLVED] Authentication problems on trying to connect to share on NAS (LaCie d2) axarqi Linux - Networking 2 04-19-2010 04:26 PM
connect to smb share on NAS sycamorex Linux - Networking 3 07-30-2008 11:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:34 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