Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question

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?

share|improve this answer

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

share|improve this answer
would like for it to kick in on boot just in case I cant ssh in – hydroparadise Jun 24 '12 at 1:42

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.