LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-24-2007, 06:17 AM   #1
jogl_z_8
Member
 
Registered: Oct 2005
Location: SW Ontario Canada
Distribution: Debian
Posts: 138

Rep: Reputation: Disabled
Location of boot files


Where do I find the files that run at start up? I mean the files that would be equivalent to DOS autoexec and config.sys. Also where do I find the files that contain the messages and errors that occur during start up, the ones that scroll down the monitor too fast to read?

Is there a document or a "for noobs" thread somewhere that lists this kind of basic info? (for Debian).

Thanks,
JP.
 
Old 02-24-2007, 06:52 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
/boot is where the kernel (vmilinuz/vmlinux) and intrd are.

However there is no direct analog of autoexec.bat and config.sys. It is more like Windows which has multiple ini files for configuration - you'll find most Linux files in /etc but that itself has multiple subdirectories.

Also depending on your distro and configuration much of what starts up will be in init scripts and/or /etc/inittab. (Mostly the former.) On many distros /etc/init.d either has the init scripts or is a link to the directory that does. Also the scripts here are the base scripts - the scripts that actually run are determined in your run level. Unlike DOS/Windows Linux/UNIX has multiple run levels. The run level files are typically links to the base scripts in direcories like /etc/rc1.d, /etc/rc3.d, /etc/rc4.d ... with the numeral being the run level. 1 = single user. 2 and higher = multiuser.

In Linux there isn't anything that captures everything on boot. Howevever /var/log/messages will show you a lot of what came up during boot (as well as logging things that occur afterwards). Also dmesg will show you recent system level messages so will give you some information about boot after the boot. (Over time dmesg information is overwritten by newer messages so its not perfect for the purpose.)
 
Old 02-24-2007, 07:51 AM   #3
jogl_z_8
Member
 
Registered: Oct 2005
Location: SW Ontario Canada
Distribution: Debian
Posts: 138

Original Poster
Rep: Reputation: Disabled
At start up does everything in /etc/init.d get run? If so how does the os know what order to run the scripts in?

I have no /etc/inittab.

Also, using the Gnome file browser I cannot view /var/log/messages. Have to be root?

I haven't got through the dmesg info yet but that is next on the list. I'm hoping that I can match it to the init scrip that generated it.

Thanks,
JP.
 
Old 02-24-2007, 08:12 AM   #4
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
No - as noted /etc/init.d is the base scripts. It is the run level directories that determine which is run at which run level.

You can open "terminal" from Gnome to get to a command prompt.

/var/log/messages is set read/write for root so yes you would need to be root to read it unless you changed the permissions.

What version of Debian are you running? I'm running Sarge and previously ran Woody and it has /etc/inittab. In fact it is the initdefault line in inittab that tells it which runlevel to use by default.
 
Old 02-24-2007, 08:13 AM   #5
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Look again at the post by jlightner. You have links in the rcX.d directory, where X is the runlevel.
The links are prefaced with K for kill, or S for start, followed by a number. They are executed in alphabetical order.

try seraching for inittab:

find /etc -name "inittab"
 
Old 02-24-2007, 08:18 AM   #6
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
You may want to look at the following:
http://www.yolinux.com/TUTORIALS/

At a quick glance it has some nice information including a DOS/Linux command equivalents page.
 
Old 02-24-2007, 02:14 PM   #7
jogl_z_8
Member
 
Registered: Oct 2005
Location: SW Ontario Canada
Distribution: Debian
Posts: 138

Original Poster
Rep: Reputation: Disabled
Yes!

The yoliniux tutorials are very helpful to me.

Thanks again,
JP.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
correct location of files kevin_hill54 Linux - Newbie 1 03-10-2005 06:22 AM
deamon files - location czezz Solaris / OpenSolaris 2 11-30-2004 07:41 AM
c header files location 2.6.5 kernel? Rhatlinux Linux - Software 1 09-11-2004 03:39 PM
openoffice files location grcunningham Linux - Software 5 05-02-2004 07:28 AM
Folder location of new files timsch75 Linux - Newbie 2 03-22-2004 10:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:04 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
Open Source Consulting | Domain Registration