LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 04-18-2006, 10:47 AM   #1
bdplays
LQ Newbie
 
Registered: Apr 2006
Location: Phoenix, AZ
Distribution: FC5
Posts: 8

Rep: Reputation: 0
running scrips on boot


Good Day,

I have 3 network shares that I mount into my file system. In the past, I have just retyped the mount commands if I ever had to reboot my Linux box. I realized that I was making much more work for myself than necessary so I wrote a small script that mounts my shares for me.

Now I would like to have the little mount script run automatically when the machine boots.

Q1: Where can I put my little mount script so it runs on boot?

Q2: Is there a better way to automatically mount my network shares on boot?

-Thanks for the help.
 
Old 04-18-2006, 11:29 AM   #2
ethics
Senior Member
 
Registered: Apr 2005
Location: London
Distribution: Arch - Latest
Posts: 1,522

Rep: Reputation: 45
There is already a process dedicated to that, it's called fstab, search these forums, the file is /etc/fstab

take a look at it's format, pretty simple to work out, although nfs shares (i presume?) the path is nfs://ip if i remember right

distros differ sometimes in where the boot up scripts. but take a look in /etc/rc.d/rc<your run level>.d (atleast on fedora ) there are scripts there with S# and K# S is start the lower the number the high the priority, K is kill
 
Old 04-20-2006, 04:10 PM   #3
bdplays
LQ Newbie
 
Registered: Apr 2006
Location: Phoenix, AZ
Distribution: FC5
Posts: 8

Original Poster
Rep: Reputation: 0
boot scripts

Cool. I wil give that a try. Appreciate the feedback.
 
Old 08-01-2006, 09:14 PM   #4
anupamsr
Member
 
Registered: Sep 2004
Location: India
Distribution: Kubuntu, Archlinux, Suse, Gentoo, Mandrake
Posts: 370

Rep: Reputation: 30
please change the tag from scrips to script thanks

Last edited by anupamsr; 08-01-2006 at 09:26 PM.
 
  


Reply

Tags
boot, mount, script, scripting, scripts


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
SMB mounting scrips hangs phatboyz Linux - Networking 2 06-23-2004 11:06 PM
Is it possible to run VB scrips in Linux? to_veera Linux - Software 2 06-07-2004 07:44 AM
EXIM - sending spam from PHP scrips GRisha Linux - Software 0 06-05-2004 12:07 PM
Two simple questions...shell scrips and icons vdogvictor Linux - General 4 04-12-2004 06:49 PM
Creating init scrips in Linux rootking Linux - General 9 03-22-2003 02:54 AM


All times are GMT -5. The time now is 02:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration