Page 1 of 1
Forum

Welcome to the Tweaking4All community forums!
When participating, please keep the Forum Rules in mind!

Topics for particular software or systems: Start your topic link with the name of the application or system.
For example “MacOS X – Your question“, or “MS Word – Your Tip or Trick“.

Please note that switching to another language when reading a post will not bring you to the same post, in Dutch, as there is no translation for that post!



Share:
Notifications
Clear all

unable to unmount SMB

9 Posts
2 Users
1 Likes
130 Views
Joined: 1 second ago
Posts: 0
Topic starter  

I have an hard drive on windows 10 shared in my local network, which I can connect (SMB) from finder (alt+k etc.) on my MacBook Air M1 (ventura 13.5.1)

so I set up everything in ConnectMeNow and launched test mount and it seems to work (despite the button doesn't get grey) according to the log (mount successful) and the finder (on the desktop appear the drive icon)

On side note the "reveal in finder" option (checked or unchecked) seems to have no effect (but maybe I've misinterpreted how it works)

The problem is that "test unmount" button remain grey (so I cannot test the unmount), so I've tried to actually mount the drive from ConnectMeNow interface then trying to unmount it from "unmount all" option

nothing happen and the log says "no shares were mounted" despite the icon is still on desktop and can be opened with finder

the only option I have to unmount is with finder (just moving it to trash bin still works)

Any suggestion?


   
ReplyQuote
 Hans
(@hans)
Famed Member Admin
Joined: 10 years ago
Posts: 2504
 

Hi Kenzokabuto,

that sounds like a potential bug ... what version of ConnectMeNow are you using?

Furthermore: what does you share definition look like (including the advanced options) and what does the mount output in Terminal look like (eg. run "mount" in Terminal) - jut so we can compare? (feel free to mask username/password if visible)


   
ReplyQuote
Joined: 1 second ago
Posts: 0
Topic starter  

I'm not so skilled in command line command, what should I do? 😳 

still, I noticed that trying rebooting has changed the behaviour (after many tries even finder hanged with samba)

after reboot I identified this error in log

│ - LOGIN: Username and Password known - User login with hidden window
│ URL: smb://192.168.1.2/Backup
│ Mount directory: macOS will mount against a mount directory in "/Volumes"
│ - Error - Mount failed (Error code: 412)

This post was modified 3 weeks ago by

   
ReplyQuote
 Hans
(@hans)
Famed Member Admin
Joined: 10 years ago
Posts: 2504
 

No problem 😊 

So first you open the "Terminal" application. You can find it under Applications -> Utilities on your Mac.
There you type commmand "mount" (without the quotes) and it will give you an output of mounted disks and shares.

Something like this (sorry for not having a network example, since I have not network access as I'm traveling):

~ $ mount 
/dev/disk3s3s1 on / (apfs, sealed, local, read-only, journaled)
devfs on /dev (devfs, local, nobrowse)
/dev/disk3s6 on /System/Volumes/VM (apfs, local, noexec, journaled, noatime, nobrowse)
/dev/disk3s4 on /System/Volumes/Preboot (apfs, local, journaled, nobrowse)
/dev/disk3s2 on /System/Volumes/Update (apfs, local, journaled, nobrowse)
/dev/disk2s2 on /System/Volumes/xarts (apfs, local, noexec, journaled, noatime, nobrowse)
/dev/disk2s1 on /System/Volumes/iSCPreboot (apfs, local, journaled, nobrowse)
/dev/disk2s3 on /System/Volumes/Hardware (apfs, local, journaled, nobrowse)
/dev/disk3s1 on /System/Volumes/Data (apfs, local, journaled, nobrowse, protect)
map auto_home on /System/Volumes/Data/home (autofs, automounted, nobrowse)
/dev/disk1s1 on /System/Volumes/Update/SFR/mnt1 (apfs, local, journaled, nobrowse)
/dev/disk3s3 on /System/Volumes/Update/mnt1 (apfs, sealed, local, journaled, nobrowse)
~ $

You can select the text and paste it into a message. To get it nicely formatted I use the "<>" button here in the forum, which will open a window in which you can paste it.

Note: if you recognize a username or password in the text, then feel free to replace them with other text (eg. "username" and "password"). You should not see passwords, but it may happen.

 

The error message could mean that username and/or password are a problem.
I've seen this with typos in username/password, but more often when usernames or passwords use certain special characters.


   
ReplyQuote
Joined: 1 second ago
Posts: 0
Topic starter  

I'm not so skilled in command line command, what should I do? 😳 

still, I noticed that trying rebooting has changed the behaviour (after many tries even finder hanged with samba)

after reboot I identified this error in log

│ - LOGIN: Username and Password known - User login with hidden window
│ URL: smb://192.168.1.2/Backup
│ Mount directory: macOS will mount against a mount directory in "/Volumes"
│ - Error - Mount failed (Error code: 412)


   
ReplyQuote
Joined: 1 second ago
Posts: 0
Topic starter  

using connectmenow v4.0.10

the target folders are on windows 10 and on mycloud home (a piece of junk wd pretend being a nas)

I set ad hoc a typo proof username/pwd

still got same result

BTW this is what you asked

_________

/dev/disk3s1s1 on / (apfs, sealed, local, read-only, journaled)

devfs on /dev (devfs, local, nobrowse)

/dev/disk3s6 on /System/Volumes/VM (apfs, local, noexec, journaled, noatime, nobrowse)

/dev/disk3s2 on /System/Volumes/Preboot (apfs, local, journaled, nobrowse)

/dev/disk3s4 on /System/Volumes/Update (apfs, local, journaled, nobrowse)

/dev/disk1s2 on /System/Volumes/xarts (apfs, local, noexec, journaled, noatime, nobrowse)

/dev/disk1s1 on /System/Volumes/iSCPreboot (apfs, local, journaled, nobrowse)

/dev/disk1s3 on /System/Volumes/Hardware (apfs, local, journaled, nobrowse)

/dev/disk3s5 on /System/Volumes/Data (apfs, local, journaled, nobrowse, protect)

map auto_home on /System/Volumes/Data/home (autofs, automounted, nobrowse)

//xxxx:@192.168.1.13/Public on /Volumes/Public (smbfs, nodev, nosuid, noowners, mounted by xxxxxx)


   
Hans reacted
ReplyQuote
 Hans
(@hans)
Famed Member Admin
Joined: 10 years ago
Posts: 2504
 

Posted by: @
... mycloud home (a piece of junk wd pretend being a nas)

🤣 I know what you mean haha ... but hey, if it works, it'll do for now right? 😊 

For the record, I used to have one from WD ... way back when.

Back to your question;

Did you enter the server as 192.168.1.2 or 192.168.1.13?

The reason I'm asking:
CMN will search in the mount info for a server, username and path.
So if one of these is off or spelled differently then it cannot identify it correctly.

 


   
ReplyQuote
Joined: 1 second ago
Posts: 0
Topic starter  

@hans 

.2 is the windows server 

tks, it helped me understanding, for some odd reason they got mounted only if declared with name (not with ip address)

still I cannot unmount anything

this is cmn log

22:46:08 │ - Max Attempts  = 1
         │   Attempts Left = -1
         │   Last Attempt  = n/a
22:46:08 │ - Doing default short mount delay (1 second)
22:46:10 │ - Starting mount background task
22:46:10 │ - RETRY MOUNT TIMER: Started 1 minute timer for remount attempts
22:46:10 │ - Enabled timer for potential extra mount attempts
22:46:10 │ - Thread started

22:46:11 │ Mount status update:
         │ Mount/Open Networkshare feedback (SystemDefault): 
         │ Mount attempt with Calling Apple NetFS API:
         │ 
         │ - LOGIN: Username and Password known - User login with hidden window
         │   URL: smb://alpha-r2/Backup
         │   Mount directory: macOS will mount against a mount directory in "/Volumes"
         │ - Mount succesfull - API did not return an Error code, wait for confirmation

22:46:11 │ Thread - Calling for forced status update (only shows results if something changed)

22:46:11 │ System Mount Callback: "/Volumes/Backup"

22:46:11 │ Thread - Calling for forced status update (only shows results if something changed)

22:46:11 │ -- STATUS UPDATE - THREAD CALLBACK ------------------------------------------------
         │ 
22:46:11 │ Update type
         │  - Initial read     : -
         │  - Timed Interval   : -
         │  - Get Network info : -
         │  - Forced Update    : YES
         │ 
         │ Status Interval     : 10000 milliseconds
         │ Interval Interrupts : 500 milliseconds
         │ Failed mount after  : 30000 milliseconds
         │ 
         │ Default gateway     : 192.168.1.1 (MAC: xxxxxxxxx)
         │ 
22:46:11 │ - Mount Status Updated: Counted 1 active share(s)
22:46:11 │ - Matched 0 Network shares. (1 unknown)
22:46:11 │ 
         │ -- STATUS UPDATE - COMPLETED ------------------------------------------------------
22:46:11 │ - RETRY MOUNT TIMER: Stopping timer
22:46:11 │ - RETRY MOUNT TIMER: Quiting, nothing left to retry, and no Fallback servers left either
22:46:11 │ - Updating "Mount onAppear" list
22:46:11 │ - Updating "Mount onAppear" list

22:46:11 │ Updating Tray Menu

   
ReplyQuote
 Hans
(@hans)
Famed Member Admin
Joined: 10 years ago
Posts: 2504
 

That is odd indeed haha ... I avoid using names since in my experience IP addresses are much more reliable.
Thanks for the log, at first glance I do not see anything odd - except where it says

22:46:11 │ - Mount Status Updated: Counted 1 active share(s)
22:46:11 │ - Matched 0 Network shares. (1 unknown)

Obviously 1 unknown is not correct, and it does mean that CMN was not able to match the "mount" information with your server definition. Which explains why you cannot unmount, but it's not getting us any further ...

You could peek in the "tools" options that can be found in the log window.
For example some of the functions under "Tools" (button) -> "List Share details" (eg. "Selected Share in Preferences Window") and "Terminal Tools" (eg. "Show mount output").

We would need to find out the differences between the share definition details and the output from mount.
As mentioned before: server address, server path, mount path (/Volumes or any other path), username and password (typically the latter shouldn't show).


   
ReplyQuote
Share: