Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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
add comment

2 Answers 2

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
add comment

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
add comment

Your Answer

 
discard

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.