Unable to access shared folders under W10

Questions about Wi-Fi and other network devices, file sharing, firewalls, connection sharing etc
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
Yggdrasil232

Unable to access shared folders under W10

Post by Yggdrasil232 »

Good morning all.

I come back to you after a new problematic.

Now that my pc has regained its wifi.

I would now like to allow him to access the disks, folders and files shared on my pc under W10.

However. Whenever I try to access my networked PC, linux displays this message: '' obtaining the server's share list failed: the network has broken the connection ... " I do not understand at all what is going on. All my other Windows PCs can easily access network folders ... Thanks in advance for your help 👍🏻
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
AndyMH
Level 21
Level 21
Posts: 13728
Joined: Fri Mar 04, 2016 5:23 pm
Location: Wiltshire

Re: Unable to access shared folders under W10

Post by AndyMH »

Thinkcentre M720Q - LM21.3 cinnamon, 4 x T430 - LM21.3 cinnamon, Homebrew desktop i5-8400+GTX1080 Cinnamon 19.0
Yggdrasil232

Re: Unable to access shared folders under W10

Post by Yggdrasil232 »

AndyMH wrote: Fri Mar 05, 2021 9:05 am Might help you:
viewtopic.php?f=42&t=322404&p=1831297&h ... 0#p1831297
Thank you for the link.

unfortunately I cannot edit the smb.cfg file because I do not seem to have the right to do so even though I am the administrator of the machine.

For the other commands in the following options, they seem to not work but I certainly realize them wrong.

I'm sorry, I'm quite a novice in the twists and turns of linux.
Yggdrasil232

Re: Unable to access shared folders under W10

Post by Yggdrasil232 »

here is a report from my machine if that can help help me.

Code: Select all

System:    Kernel: 5.4.0-66-generic x86_64 bits: 64 compiler: gcc v: 9.3.0 Desktop: Cinnamon 4.8.6 
           wm: muffin dm: LightDM Distro: Linux Mint 20.1 Ulyssa base: Ubuntu 20.04 focal 
Machine:   Type: Desktop System: Dell product: OptiPlex 380 v: N/A serial: <filter> Chassis: 
           type: 3 serial: <filter> 
           Mobo: Dell model: 0HN7XN v: A01 serial: <filter> BIOS: Dell v: A06 date: 09/01/2011 
CPU:       Topology: Quad Core model: Intel Core2 Quad Q6700 bits: 64 type: MCP arch: Core Merom 
           rev: B L2 cache: 4096 KiB 
           flags: lm nx pae sse sse2 sse3 ssse3 vmx bogomips: 21280 
           Speed: 2602 MHz min/max: N/A Core speeds (MHz): 1: 2602 2: 1847 3: 2386 4: 2592 
Graphics:  Device-1: NVIDIA GK208B [GeForce GT 710] vendor: Micro-Star MSI driver: nouveau 
           v: kernel bus ID: 01:00.0 chip ID: 10de:128b 
           Display: x11 server: X.Org 1.20.9 driver: modesetting unloaded: fbdev,vesa 
           resolution: 1440x900~60Hz 
           OpenGL: renderer: NV106 v: 4.3 Mesa 20.2.6 direct render: Yes 
Audio:     Device-1: Intel NM10/ICH7 Family High Definition Audio vendor: Dell 
           driver: snd_hda_intel v: kernel bus ID: 00:1b.0 chip ID: 8086:27d8 
           Device-2: NVIDIA GK208 HDMI/DP Audio vendor: Micro-Star MSI driver: snd_hda_intel 
           v: kernel bus ID: 01:00.1 chip ID: 10de:0e0f 
           Sound Server: ALSA v: k5.4.0-66-generic 
Network:   Device-1: Broadcom and subsidiaries NetLink BCM57780 Gigabit Ethernet PCIe vendor: Dell 
           driver: tg3 v: 3.137 port: dc80 bus ID: 02:00.0 chip ID: 14e4:1692 
           IF: enp2s0 state: down mac: <filter> 
           Device-2: Realtek USB3.0 802.11ac 1200M Adapter type: USB driver: rtl88x2bu 
           bus ID: 1-3:3 chip ID: 0bda:b812 
           IF: wlx1cbfce64bf1d state: up mac: <filter> 
Drives:    Local Storage: total: 268.29 GiB used: 11.29 GiB (4.2%) 
           ID-1: /dev/sda vendor: Silicon Power model: SPCC Solid State Disk size: 119.24 GiB 
           speed: <unknown> serial: <filter> 
           ID-2: /dev/sdb vendor: Western Digital model: WD1600AAJS-00WAA0 size: 149.05 GiB 
           speed: <unknown> serial: <filter> 
Partition: ID-1: / size: 116.87 GiB used: 11.29 GiB (9.7%) fs: ext4 dev: /dev/sda1 
USB:       Hub: 1-0:1 info: Full speed (or root) Hub ports: 8 rev: 2.0 chip ID: 1d6b:0002 
           Device-1: 1-3:3 info: Realtek USB3.0 802.11ac 1200M Adapter type: Network 
           driver: rtl88x2bu rev: 2.1 chip ID: 0bda:b812 
           Hub: 2-0:1 info: Full speed (or root) Hub ports: 2 rev: 1.1 chip ID: 1d6b:0001 
           Device-2: 2-1:2 info: CX 2.4G Receiver type: Keyboard,Mouse driver: hid-generic,usbhid 
           rev: 1.1 chip ID: 25a7:fa67 
           Hub: 3-0:1 info: Full speed (or root) Hub ports: 2 rev: 1.1 chip ID: 1d6b:0001 
           Hub: 4-0:1 info: Full speed (or root) Hub ports: 2 rev: 1.1 chip ID: 1d6b:0001 
           Hub: 5-0:1 info: Full speed (or root) Hub ports: 2 rev: 1.1 chip ID: 1d6b:0001 
Sensors:   System Temperatures: cpu: 45.0 C mobo: N/A gpu: nouveau temp: 46 C 
           Fan Speeds (RPM): N/A 
Repos:     No active apt repos in: /etc/apt/sources.list 
           Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list 
           1: deb http: //packages.linuxmint.com ulyssa main upstream import backport #id:linuxmint_main
           2: deb http: //archive.ubuntu.com/ubuntu focal main restricted universe multiverse
           3: deb http: //archive.ubuntu.com/ubuntu focal-updates main restricted universe multiverse
           4: deb http: //archive.ubuntu.com/ubuntu focal-backports main restricted universe multiverse
           5: deb http: //security.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
           6: deb http: //archive.canonical.com/ubuntu/ focal partner
Info:      Processes: 229 Uptime: 4h 21m Memory: 5.74 GiB used: 2.35 GiB (41.0%) Init: systemd 
           v: 245 runlevel: 5 Compilers: gcc: 9.3.0 alt: 9 Client: Unknown python3.8 client 
           inxi: 3.0.38 
Moonstone Man
Level 16
Level 16
Posts: 6054
Joined: Mon Aug 27, 2012 10:17 pm

Re: Unable to access shared folders under W10

Post by Moonstone Man »

Yggdrasil232 wrote: Fri Mar 05, 2021 9:39 am unfortunately I cannot edit the smb.cfg file...
xed admin:///etc/samba/smb.conf
Yggdrasil232

Re: Unable to access shared folders under W10

Post by Yggdrasil232 »

Kadaitcha Man wrote: Fri Mar 05, 2021 9:51 am
Yggdrasil232 wrote: Fri Mar 05, 2021 9:39 am unfortunately I cannot edit the smb.cfg file...
xed admin:///etc/samba/smb.conf
oh thanks! works far better like that!
Yggdrasil232

Re: Unable to access shared folders under W10

Post by Yggdrasil232 »

My file is edited, however what is the equivalent to be done on W10 because, to my knowledge, what is supposed to be accessible is fully accessible with other PCs.

once my linux pc and my box have rebooted, the previously visible folders in the Windows network folder but inaccessible no longer even appear. I am quite confused.
altair4
Level 20
Level 20
Posts: 11454
Joined: Tue Feb 03, 2009 10:27 am

Re: Unable to access shared folders under W10

Post by altair4 »

Open up Command Prompt on the Win10 box. Then run and post the output of the following commands:

Code: Select all

ipconfig | find "IPv4"

Code: Select all

hostname

Code: Select all

net share
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
Yggdrasil232

Re: Unable to access shared folders under W10

Post by Yggdrasil232 »

Code: Select all

C:\Users\dmont>ipconfig | find "IPv4"
   Adresse IPv4. . . . . . . . . . . . . .: 192.168.0.14

C:\Users\dmont>hostname
MEDIA-CENTER-SALON

C:\Users\dmont>net share

Nom partage  Ressource                       Remarque

-------------------------------------------------------------------------------
ADMIN$       C:\WINDOWS                      Administration à distance
IPC$                                         IPC distant
C$           C:\                             Partage par défaut
E$           E:\                             Partage par défaut
D$           D:\                             Partage par défaut
Bibliotheque calibre
             E:\Bibliotheque calibre
D            D:\
Musique      D:\
Users        C:\Users
La commande s’est terminée correctement.


C:\Users\dmont>
The disk I tend to share is the D: and its 2 folders ans subfolders.
All other windows pc can get access easily. I thought it 'd be the same with my Linux
altair4
Level 20
Level 20
Posts: 11454
Joined: Tue Feb 03, 2009 10:27 am

Re: Unable to access shared folders under W10

Post by altair4 »

Open Nemo - your Mint file manager - and in the Location bar enter the following:

Code: Select all

smb://192.168.0.14/Musique
Do you gain access?

This should also work:

Code: Select all

smb://MEDIA-CENTER-SALON.local/Musique
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
Yggdrasil232

Re: Unable to access shared folders under W10

Post by Yggdrasil232 »

altair4 wrote: Fri Mar 05, 2021 10:58 am Open Nemo - your Mint file manager - and in the Location bar enter the following:

Code: Select all

smb://192.168.0.14/Musique
Do you gain access?

This should also work:

Code: Select all

smb://MEDIA-CENTER-SALON.local/Musique

yes both methods work !! Thank you. After entering my username and password I access the desired files.

On the other hand, they remain inaccessible by the traditional method ...
network -----> Windows Network -----> Workgroup ----> media-center-salon -----> unable to mount location: obtaining list of
Server shares failed: network broke connection during reset

Will I have to enter the addresses of the files in nemo each time I start the computer? Or is there a way to make access to these files permanent?
altair4
Level 20
Level 20
Posts: 11454
Joined: Tue Feb 03, 2009 10:27 am

Re: Unable to access shared folders under W10

Post by altair4 »

You could create a bookmark to that location in Nemo and have the system remember the password forever but bookmarks to network locations don't work very well in Nemo.

They work in Thunar.

Or you could do a cifs mount to the share: Automount Samba Shares with CIFS:
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
Yggdrasil232

Re: Unable to access shared folders under W10

Post by Yggdrasil232 »

Ok, thanks for your answer and help. The cifs thing sound a little bit complex to me. I'll try to bookmark the location. Passwords are already set to forever remember. Maybe rythmbox will keep the location open by itself ?
altair4
Level 20
Level 20
Posts: 11454
Joined: Tue Feb 03, 2009 10:27 am

Re: Unable to access shared folders under W10

Post by altair4 »

A cifs mount isn't as hard as it looks from the HowTo. I just tried to cover as many use cases as I could.

If your system was my system I ( altair ) would do something like this:

I would create a mount point at say ... /media/Win10Musique:

Code: Select all

sudo mkdir /media/Win10Musique
Then I would do a temporary mount just to make sure it connected:

Code: Select all

sudo mount -t cifs //MEDIA-CENTER-SALON.local/Musique /media/Win10Musique -o username=xxxxx,password=yyyyy,uid=altair
If everything worked I would unmount the share: sudo umount /media/Win10Musique

Then add a line to the end of /etc/fstab:

Code: Select all

//MEDIA-CENTER-SALON.local/Musique /media/Win10Musique cifs username=xxxxx,password=yyyyy,uid=altair,noauto,user 0 0
A link labeled Win10Musique would automatically show up on the side panel of Nemo. When selected it will mount the Win10 share per the instructions in fstab without requiring sudo. You can use the same link to unmount.
Last edited by altair4 on Fri Mar 05, 2021 12:55 pm, edited 1 time in total.
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
Yggdrasil232

Re: Unable to access shared folders under W10

Post by Yggdrasil232 »

Waw sounds great, I'll try that right now!

But, what's the uid? I guess it's user ID but I already entered my username and password, I know nothing else . Is it a thing that I create only in the command line or does it exist somewhere on my W10 or Linux computer?
Yggdrasil232

Re: Unable to access shared folders under W10

Post by Yggdrasil232 »

Code: Select all

damien@damien-OptiPlex-380:~$ sudo mount -t cifs //MEDIA-CENTER-SALON.local/Musique /media/Win10Musique -o username=username@webaddress, pasword=password, uid=myname
mount: bad usage
Exécutez « mount --help » pour obtenir des renseignements complémentaires.
Last edited by karlchen on Fri Mar 05, 2021 2:24 pm, edited 1 time in total.
Reason: Do not post real usernames and real passwords, in particular not both, publically, unless you are keen on becoming the victim of intruders or similar crooks
altair4
Level 20
Level 20
Posts: 11454
Joined: Tue Feb 03, 2009 10:27 am

Re: Unable to access shared folders under W10

Post by altair4 »

First: I cannot spell. So it's not pasword it's password

Second: If you are going to pass your Microsoft account credentials and those are something like blzebub@hades.com it's:
username=blzebub,domain=hades.com,password=yyyyy

So it's:

Code: Select all

sudo mount -t cifs //MEDIA-CENTER-SALON.local/Musique /media/Win10Musique -o username=blzebub,domain=hades.com,password=yyyyy,uid=damien
And the uid is your own username on the Mint system.

Note: You might want to remove your actual Microsoft account credentials from your previous post - unless you just made that up.
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
User avatar
AndyMH
Level 21
Level 21
Posts: 13728
Joined: Fri Mar 04, 2016 5:23 pm
Location: Wiltshire

Re: Unable to access shared folders under W10

Post by AndyMH »

altair4 wrote: Fri Mar 05, 2021 10:58 am Open Nemo - your Mint file manager...
I'm glad you were passing by, I didn't know the answer :)

Yggdrasil232 - as well as doing a cifs mount following altair4's guidance, you can also permanently mount your shares by editing a file called fstab. It lives in /etc and is read by the system when it boots - whatever it finds in there it mounts. That is how I mount my NAS. For example, the music folder on my NAS gets mounted at /media/music on my laptop.
Thinkcentre M720Q - LM21.3 cinnamon, 4 x T430 - LM21.3 cinnamon, Homebrew desktop i5-8400+GTX1080 Cinnamon 19.0
Yggdrasil232

Re: Unable to access shared folders under W10

Post by Yggdrasil232 »

Thank you Altaïr for your precious help, everything seems to be working perfectly. It's awesome!

Thanks also to AndyMH and Kadaitcha Man for your interest in my problem.

Finally, thank you to Karlchen for editing my post to delete my personal data.

You're at the top, second problem solved with disconcerting speed.

Thanks again.
Locked

Return to “Networking”