[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 this

[SOLVED] Opening mounted drives folders on startup

Postby larsjuh on 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.
larsjuh
Level 1
Level 1
 
Posts: 11
Joined: Mon Feb 18, 2013 4:05 pm

Linux Mint is funded by ads and donations.
 

Re: Opening mounted drives folders on startup

Postby altair4 on 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.
altair4
Level 13
Level 13
 
Posts: 4662
Joined: Tue Feb 03, 2009 10:27 am

Re: Opening mounted drives folders on startup

Postby eanfrid on 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.
Image
Never attribute to malice that which is adequately explained by stupidity.
User avatar
eanfrid
Level 5
Level 5
 
Posts: 513
Joined: Mon Apr 30, 2012 2:49 am
Location: France

Re: Opening mounted drives folders on startup

Postby larsjuh on 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"
larsjuh
Level 1
Level 1
 
Posts: 11
Joined: Mon Feb 18, 2013 4:05 pm

Re: [SOLVED] Opening mounted drives folders on startup

Postby eanfrid on 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 :)
Image
Never attribute to malice that which is adequately explained by stupidity.
User avatar
eanfrid
Level 5
Level 5
 
Posts: 513
Joined: Mon Apr 30, 2012 2:49 am
Location: France


Return to Other topics

Who is online

Users browsing this forum: No registered users and 3 guests