Page 1 of 1

[SOLVED] Opening mounted drives folders on startup

Posted: Thu Mar 14, 2013 5:22 pm
by larsjuh
Hello !

I've a bit of a annoying problem.

In my /etc/fstab i've setup a mounted network drive, so it'll mount at startup..

Code: Select all

//10.0.0.9/HDD01 /media/HDD01 cifs credentials=xxxxx,dir_mode=0775 0 0
But everytime i startup my pc it'll open the folder and show me the contents of the drive..
Is there a way to prevent this?

I want it to mount of course, but it must not popup at boot..

Thanks for your time.

Re: Opening mounted drives folders on startup

Posted: Fri Mar 15, 2013 6:48 am
by altair4
Change the mount point to something other than /media or anywhere in your home folder. Something like:

Code: Select all

/mnt/HDD01

Re: Opening mounted drives folders on startup

Posted: Fri Mar 15, 2013 6:52 am
by eanfrid
+1
The /media folder is reserved by the system to on-the-fly removable (mainly user-mounted) devices.

Re: Opening mounted drives folders on startup

Posted: Fri Mar 15, 2013 11:42 am
by larsjuh
all right thanks that did the job :D

But why is it when i mount my second hard drive on /media/xxx (internal harddrive) that it will not show the folder on startup? :D

Because i kinda like the /media/ folder because it'll show the mounted drives in "My computer"

Re: [SOLVED] Opening mounted drives folders on startup

Posted: Fri Mar 15, 2013 12:08 pm
by eanfrid
An internal HDD is not considered as a removable drive.

For the sake of understanding the folders tree , you can check there: http://en.wikipedia.org/wiki/Filesystem ... y_Standard :)

Re: [SOLVED] Opening mounted drives folders on startup

Posted: Thu Jul 18, 2013 6:24 am
by barefoot
Thanks for this thread.

I had the same thing, with a couple of NAS shares I had mounted in my home directory. Every startup, they would open as soon as they mounted.

Now I've moved them to /mnt (and put symlinks in my home directory), and everything is good in the world.

tim

Re: [SOLVED] Opening mounted drives folders on startup

Posted: Wed Jul 24, 2013 9:13 am
by effigy
barefoot wrote:Thanks for this thread.

I had the same thing, with a couple of NAS shares I had mounted in my home directory. Every startup, they would open as soon as they mounted.

Now I've moved them to /mnt (and put symlinks in my home directory), and everything is good in the world.

tim
Could you please describe the steps you took in detail?
I'm having the same issue since doing dist-upgrade a few days ago. my thumb drive is opening everytime I startup or resume from suspend.
I tried mkdir /mnt/USB
and added to fstab: /dev/mmcblk0p1 /mnt/USB auto defaults 0 0

the folder no longer opens but also is no longer visable in nemo...

Please describe the steps you took.. I'm missing something here.
Thank you.