Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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)
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?
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.
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.
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.
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.
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.
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.