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.

I'm using a GoFlex Home Storage device from Seagate. Now that I've figured out how to auto-mount my NAS storage by editing fstab. I'm having another issue.

sudo mount -a on a started system mounts the drives as I would expect.

However, at startup, the auto-mounting procedure fails. A review of dmesg suggests that the process fails because the network is not available.

Is there a way to create and run a shell script at startup that would run the mount command as root? (After startup, sudo mount -a works like a charm)

Thoughts?

share|improve this question
    
possible duplicate: askubuntu.com/questions/163201/… –  Mitch Jul 14 '12 at 22:31
1  
@Mitch That was his earlier question. –  belacqua Jul 14 '12 at 23:51

1 Answer 1

up vote 2 down vote accepted

Solution for 12.10

sudo apt-get install cifs-utils

Now you can use cifs in /etc/fstab instead of smbfs

Solution for 12.04

sudo apt-get install smbfs

Change cifs to smbfs in fstab listings.

Although it was primarily trial and error. This Ubuntu wiki page was highly useful and contains information about other common setups:

https://wiki.ubuntu.com/MountWindowsSharesPermanently

share|improve this answer
    
Can you edit your question to mention the kind of NAS it is? sbmfs is old and not supposed to be used but if it's what works on a certain model then we should probably document it. thanks! –  Jorge Castro Jul 21 '12 at 1:14
    
Certainly...... –  Brandon Bertelsen Jul 21 '12 at 1:19

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.