Ubuntu: Need to mount a drive before samba kicks in at boot. How to?



Question:

How do I make sure that a hard drive is mounted to a certain location before samba kicks in? I'd like to use the samba to share out the hard drive.


Solution:1

This sounds like the basic task of mounting drives in etc/fstab, which is fairly simple. This is where your other partitions are mounted, such as swap, /home if separate, etc.

This file is a simple text file that you edit using something like gedit or vim, such as sudo gedit /etc/fstab.

By the way, you don't really mount drives, you mount partitions (actually filesystems, but thinking of it as partitions is usually fine). Do you know how to use the mount command?


Solution:2

That should happen automatically. If it doesn't, just run sudo restart smbd to restart the samba daemon (after the drive is mounted).


Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »