Quantcast
Channel: Active questions tagged mount+fstab - Ask Ubuntu
Viewing all articles
Browse latest Browse all 699

CIFS mounts in Ubuntu VM vs WSL2

$
0
0

I am trying to migrate from a virtual machine running Ubuntu 22.04 LTS in VirtualBox on my Windows 11 host to the same distribution running in WSL2 on the same host. I've got most things working except for mounting some of my work SMB-drives.

My fstab looks like the following on both machines:

//www.ida.liu.se/wwwkurs/729G46 /media/729g46_web cifs credentials=/home/johsj47/.smbcredentials,uid=johsj47,rw,iocharset=utf8 0 0//fillager.liu.se/edu/courses/729G46 /media/729g46_kurs cifs credentials=/home/johsj47/.smbcredentials,uid=johsj47,rw,iocharset=utf8 0 0

On the VirtualBox machine both these shares mount without any problem. However, on WSL2 only the first one works, while the second one gives the following error:

$ sudo mount /media/729g46_kursmount error(2): No such file or directoryRefer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg)

Both directories exist on both of my machines and the contents of the credentials file is identical as are the lines above in the respective fstab-files. Both machines are running the same version of Ubuntu with the same version of mount and the same version of cifs-utils.

It's especially strange that the www.ida.liu.se mount works while the fillager.liu.se doesn't. The only thing I can come up with is that the two SMB servers are configured slightly differently as well as the VirtualBox-machine and the WSL-machine working differently.

I'm not even sure what to try at this point.


Viewing all articles
Browse latest Browse all 699

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>