View previous topic :: View next topic |
Author |
Message |
Insulator n00b
Joined: 21 Mar 2005 Posts: 28 Location: Australia
|
Posted: Wed Oct 04, 2006 3:40 am Post subject: mount --bind on startup [SOLVED] |
|
|
My system is a dualboot with Windows (need for uni and games), so I have a couple of FAT partitions shared between the 2 OS's.
One of them has a couple of folders which I want mounted into my user folder, but I don't want all the rest of the stuff.
So recently every time I've rebooted I've run
Code: | mount --bind /mnt/share1/foldertoshare /home/insulator/foldertoshare |
for each folder.
I'm sure there has to be a way to automate this on startup, but can't figure it out, having played around with init scripts and the like.
Last edited by Insulator on Wed Oct 04, 2006 4:10 am; edited 1 time in total |
|
Back to top |
|
|
jmbsvicetto Moderator
Joined: 27 Apr 2005 Posts: 4734 Location: Angra do Heroísmo (PT)
|
Posted: Wed Oct 04, 2006 3:48 am Post subject: |
|
|
Hi.
If you just need this for your user, why don't you put it on .bashrc? _________________ Jorge.
Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
|
|
Back to top |
|
|
beandog Bodhisattva
Joined: 04 May 2003 Posts: 2072 Location: /usa/utah
|
|
Back to top |
|
|
Insulator n00b
Joined: 21 Mar 2005 Posts: 28 Location: Australia
|
Posted: Wed Oct 04, 2006 4:10 am Post subject: |
|
|
Thanks for quick replies guys.
Got it sorted now, the .bashrc route wasn't working because of permissions, I was getting
Code: | mount: only root can do that |
but the fstab way was just what I was looking for.
Marking it solved. |
|
Back to top |
|
|
|