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

Ubuntu 22.04 mounting NAS SMB shares

$
0
0

I’m relatively new to Ubuntu as I always used Linux Mint.I wanted to change to Ubuntu because I have bought a larger monitor and wanted to use Gsnap on Gnome as tiling assistant.I installed Ubuntu alongside LinuxMint and Windows 11.I configured Ubuntu a bit like Linux Mint where I put my SMB shares (14x)in /etc/fstab and mounted them automatically to the mountpoints in /mnt/It works. But it is awfully slow.When I boot Ubuntu without the networkshares it takes 14 seconds to show the desktop.With the 14 SMB shares in /etc/fstab it takes 65 seconds before the desktop shows.When I reduce the shares to 5, the boot time is 58 seconds.I have already looked at “systemd-analyze critical-chain” and “systemd-analyze blame” and mounting the shares takes about 200ms each. That would be three seconds for 14 shares.

What am I doing wrong?Would it not be much faster to mount the shares after Ubuntu has started?(sudo mount -a takes only a second to mount all shares)Is there a beter alternative to mount NAS drives under Ubuntu?

Thank you for all your help,

Tom


Viewing all articles
Browse latest Browse all 699

Trending Articles



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