Hi all,
This is a very specific problem that many individuals probably will never see, but it cost me roughly two days of effort to figure out how to recover SMB mounting so I thought it might save someone else some time and effort.
The problem arose because I had a MBP running 13.2 which had several external disks attached to it. I routinely (every day) SMB mount one or more of these drives onto other machines over the network (via SMB) because I require some of the data sets stored on these disks.
Last week I upgraded the MBP from 13.2 to 13.2.1, and suddenly lost the ability to SMB mount any of the attached drives.
I tried rebooting both machines, I tried switching OFF the Firewalls on both machines, I tried making sure that the proper ports were available on both machines for SMB, I tried switching OFF then back ON the File Sharing, I set all permissions so everyone could Read & Write to the drives, I tried HDDs and SSDs, I tried using "Connect to Server...", I tried using the Finder's directory commands, I tried manually mounting the drives using Terminal commands (mount -t smbfs ...), I tried NFS mounting, I even added the 13.2.1 machine to the Developers Seed and then upgraded to 13.3 beta, ... etc. Nothing worked. Finally, I tried an old HDD that was not attached to the MBP when it was upgraded, and low and behold, I could SMB mount this old disk! So I then compared the permissions on the old to the new drives, they were the same. I checked the extended attributes, and found that the drives that were attached to the MBP when the upgrade was performed, had the "com.apple.FinderInfo" extended attribute while my old HDD did not.
So I deleted the "com.apple.FinderInfo" extended attribute from the attached drives and immediately I was able to SMB mount them from other machines! Problem solved.
Take home message: If you are having problems SMB mounting disks over a network, check the extended attributes of the disks that you are attempting to SMB mount -- you may need to eliminate an extended attribute in order to perform the SMB mount. Second take home message: Always disconnect all attached drives before upgrading the OS, including the minor upgrades (such as 13.2 to 13.2.1, as I did). I normally disconnect everything before upgrading, but this was only a minor 13.2 to 13.2.1 upgrade, so I decided to save time -- and this brainfart mistake cost me a lot of time and effort.
Code:
ls -alO@ <disk-name>
xattr -d com.apple.FinderInfo <disk-name>
This lists the disk attributes and deletes the com.apple.FinderInfo attribute from the disk <disk-name>. After doing this, I was able to SMB mount the <disk-name> drive over the network.
Hope this helps someone...
Regards,
Solouki
EDIT:
P.S. I know this makes no sense, but I was getting desperate when nothing I tried was working so when I found that I could SMB mount an older, currently unused, disk, I then searched for any differences between the old and current disks. The only difference was the "com.apple.FinderInfo" attribute. I was shocked that immediately after deleting this attribute and before doing anything else, I now could SMB mount all of the disks! It would appear that the macOS update altered the extended attributes file on mounted drives that then killed SMB mounting...then changing/adding/deleting an extended attribute of the disk corrected this so the disk could then be SMB mounted.
This is a very specific problem that many individuals probably will never see, but it cost me roughly two days of effort to figure out how to recover SMB mounting so I thought it might save someone else some time and effort.
The problem arose because I had a MBP running 13.2 which had several external disks attached to it. I routinely (every day) SMB mount one or more of these drives onto other machines over the network (via SMB) because I require some of the data sets stored on these disks.
Last week I upgraded the MBP from 13.2 to 13.2.1, and suddenly lost the ability to SMB mount any of the attached drives.
I tried rebooting both machines, I tried switching OFF the Firewalls on both machines, I tried making sure that the proper ports were available on both machines for SMB, I tried switching OFF then back ON the File Sharing, I set all permissions so everyone could Read & Write to the drives, I tried HDDs and SSDs, I tried using "Connect to Server...", I tried using the Finder's directory commands, I tried manually mounting the drives using Terminal commands (mount -t smbfs ...), I tried NFS mounting, I even added the 13.2.1 machine to the Developers Seed and then upgraded to 13.3 beta, ... etc. Nothing worked. Finally, I tried an old HDD that was not attached to the MBP when it was upgraded, and low and behold, I could SMB mount this old disk! So I then compared the permissions on the old to the new drives, they were the same. I checked the extended attributes, and found that the drives that were attached to the MBP when the upgrade was performed, had the "com.apple.FinderInfo" extended attribute while my old HDD did not.
So I deleted the "com.apple.FinderInfo" extended attribute from the attached drives and immediately I was able to SMB mount them from other machines! Problem solved.
Take home message: If you are having problems SMB mounting disks over a network, check the extended attributes of the disks that you are attempting to SMB mount -- you may need to eliminate an extended attribute in order to perform the SMB mount. Second take home message: Always disconnect all attached drives before upgrading the OS, including the minor upgrades (such as 13.2 to 13.2.1, as I did). I normally disconnect everything before upgrading, but this was only a minor 13.2 to 13.2.1 upgrade, so I decided to save time -- and this brainfart mistake cost me a lot of time and effort.
Code:
ls -alO@ <disk-name>
xattr -d com.apple.FinderInfo <disk-name>
This lists the disk attributes and deletes the com.apple.FinderInfo attribute from the disk <disk-name>. After doing this, I was able to SMB mount the <disk-name> drive over the network.
Hope this helps someone...
Regards,
Solouki
EDIT:
P.S. I know this makes no sense, but I was getting desperate when nothing I tried was working so when I found that I could SMB mount an older, currently unused, disk, I then searched for any differences between the old and current disks. The only difference was the "com.apple.FinderInfo" attribute. I was shocked that immediately after deleting this attribute and before doing anything else, I now could SMB mount all of the disks! It would appear that the macOS update altered the extended attributes file on mounted drives that then killed SMB mounting...then changing/adding/deleting an extended attribute of the disk corrected this so the disk could then be SMB mounted.
Last edited: