Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


  Search this Thread
Old 04-18-2006, 09:47 AM   #1
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, 10:29 AM   #2
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, 03:10 PM   #3
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, 08:14 PM   #4
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 08:26 PM.


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 10:06 PM
Is it possible to run VB scrips in Linux? to_veera Linux - Software 2 06-07-2004 06:44 AM
EXIM - sending spam from PHP scrips GRisha Linux - Software 0 06-05-2004 11:07 AM
Two simple scrips and icons vdogvictor Linux - General 4 04-12-2004 05:49 PM
Creating init scrips in Linux rootking Linux - General 9 03-22-2003 01:54 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:32 PM.

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