Our Raspberry Pi4 based test stations run CIFS for auto mounting a couple network shared drives(Windows and Epicore) to log test results to the server. All our previous builds used Ubuntu Mate from 20.10 on without issue. We just built a Pi 22.04 Mate station from the newly released long term desktop build and are having issues mounting the Windows shared drive. The odd thing is that we have a test station running 22.04 that was made from the Pi server image and then loaded with a Mate desktop and it does not have any issues.
If we stop the autofs service and bring it up in debug mode from the command line to attempt to troubleshoot:
sudo systemctl stop autofs.service
sudo automount -f –d
sudo mount -t cifs -o rw,credentials=/root/.testcreds,uid=1001 //Company05/tester /mnt/tester
Couldn''t chdir to /mnt/tester: No such file or directory
-----Debug output-------------
handle_packet: type = 3
handle_packet_missing_indirect: token 45, name tester, request pid 4580
attempting to mount entry /mnt/tester
lookup_mount: lookup(file): looking up tester
lookup_mount: lookup(file): tester -> -fstype=cifs,rw,credentials=/root/.testcreds,uid=1001 ://Company05/tester
parse_mount: parse(sun): expanded entry: -fstype=cifs,rw,credentials=/root/.testcreds,uid=1001 ://Company05/tester
parse_mount: parse(sun): gathered options: fstype=cifs,rw,credentials=/root/.testcreds,uid=1001
parse_mount: parse(sun): dequote("://Company05/tester") -> ://Company05/tester
parse_mount: parse(sun): core of entry: options=fstype=cifs,rw,credentials=/root/.testcreds,uid=1001, loc=://Company05/tester
sun_mount: parse(sun): mounting root /mnt, mountpoint tester, what //Company05/tester, fstype cifs, options rw,credentials=/root/.testcreds,uid=1001
do_mount: //Company05/tester /mnt/tester type cifs options rw,credentials=/root/.testcreds,uid=1001 using module generic
mount_mount: mount(generic): calling mkdir_path /mnt/tester
mount(generic): calling mount -t cifs -o rw,credentials=/root/.testcreds,uid=1001 //Company05/tester /mnt/tester
>> mount error: could not resolve address for Company05: Unknown error
mount(generic): failed to mount //Company05/tester (type cifs) on /mnt/tester
dev_ioctl_send_fail: token = 45
failed to mount /mnt/tester
handle_packet: type = 3
handle_packet_missing_indirect: token 46, name tester, request pid 4585
dev_ioctl_send_fail: token = 46
We are not sure if it had something to do with the kernel CONFIG_NFS_DISABLE_UDP_SUPPORT
mentioned in this thread:
https://askubuntu.com/questions/1405231/unable-to-mount-nfs-on-ubuntu-22-04
Still not sure why 22.04 server image runs ok but not the destop. Any suggestions as the error is "Unknown".
Thanks