[SOLVED] Opening mounted drives folders on startup

Questions about other topics - please check if your question fits better in another category before posting here
Forum rules
Before you post please read how to get help
larsjuh
Level 1
Level 1
Posts: 11
Joined: Mon Feb 18, 2013 4:05 pm

[SOLVED] Opening mounted drives folders on startup

Postby larsjuh » Thu Mar 14, 2013 5:22 pm

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.
Last edited by larsjuh on Fri Mar 15, 2013 11:56 am, edited 2 times in total.

altair4
Level 18
Level 18
Posts: 8049
Joined: Tue Feb 03, 2009 10:27 am

Re: Opening mounted drives folders on startup

Postby altair4 » Fri Mar 15, 2013 6:48 am

Change the mount point to something other than /media or anywhere in your home folder. Something like:

Code: Select all

/mnt/HDD01
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.

User avatar
eanfrid
Level 7
Level 7
Posts: 1865
Joined: Mon Apr 30, 2012 2:49 am
Location: FR

Re: Opening mounted drives folders on startup

Postby eanfrid » Fri Mar 15, 2013 6:52 am

+1
The /media folder is reserved by the system to on-the-fly removable (mainly user-mounted) devices.
Main desktop: Debian GNU/Linux Jessie 64bit - MATE
(i5 2400@3.7GHz - 16GB DDR3 - HD6770 w/radeon driver - SSD+RAID1)
Safer than Dropbox

larsjuh
Level 1
Level 1
Posts: 11
Joined: Mon Feb 18, 2013 4:05 pm

Re: Opening mounted drives folders on startup

Postby larsjuh » Fri Mar 15, 2013 11:42 am

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"

User avatar
eanfrid
Level 7
Level 7
Posts: 1865
Joined: Mon Apr 30, 2012 2:49 am
Location: FR

Re: [SOLVED] Opening mounted drives folders on startup

Postby eanfrid » Fri Mar 15, 2013 12:08 pm

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 :)
Main desktop: Debian GNU/Linux Jessie 64bit - MATE
(i5 2400@3.7GHz - 16GB DDR3 - HD6770 w/radeon driver - SSD+RAID1)
Safer than Dropbox

barefoot
Level 1
Level 1
Posts: 2
Joined: Fri Oct 05, 2007 1:34 am

Re: [SOLVED] Opening mounted drives folders on startup

Postby barefoot » Thu Jul 18, 2013 6:24 am

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

effigy
Level 1
Level 1
Posts: 4
Joined: Tue Jul 23, 2013 9:05 am

Re: [SOLVED] Opening mounted drives folders on startup

Postby effigy » Wed Jul 24, 2013 9:13 am

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.


Return to “Other topics”

Who is online

Users browsing this forum: No registered users and 4 guests