View Full Version : [ubuntu] [SOLVED] How to automount NAS at startup with wireless connection?

November 19th, 2008, 06:20 PM
I have a network drive with all my media on and need help to have it automount on startup.

Firstly can somebody tell me if the line I have added to fstab is correct?

// mnt/networkspace cifs 0 0

The address is fixed, I have created the folder in mnt, there is no password or username on the NAS.

If I mount the drive by going to place>network>networkspace it appears on the desktop, which is where i want it to be, and the file path in nautilus is smb://networkspace/

If I mount through terminal using sudo mount.smbfs // mnt/networkspace cifs 0 0 then it mounts at mnt/networkspace but does not appear on the desktop. In fstab should I be using the address or the name networkspace?

Please can somebody tell me exactly what to type in fstab? Secondly, how do I get it to automount AFTER I've connected wirelessly?

November 20th, 2008, 06:28 PM
Solved this myself so for anyone else with similar problems here it is:

The problem was many of the threads here say to make the mount point in mnt/ when it needed to be in media/

My original fstab and mount point was // mnt/networkspace cifs 0 0 but all I needed to do was change it to // media/networkspace cifs 0 0 (creating the appropriate folder of course) and it mounted automatically after the wireless was connected.