LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 11-23-2006, 10:14 AM   #1
Cara25
Member
 
Registered: Mar 2006
Location: Nashville, Tennessee
Distribution: Salix 13.37 with KDE
Posts: 258

Rep: Reputation: 36
What is the initial file running during Mandriva 2007 startup ?


I have a great running install of Mandriva 2007 with KDE on my machine and because of this I now have time to question or investigate unknowns to me about Linux.
1. During the initial startup, a configuration file is running trying to set my hardware up, What file is this ? It sees and tries to fix several exceptions but it finishes and then hands over the startup to Mandriva 2007 which reports "OK" on all configuration items, what file is this ? Also, the Mandriva 2007 startup says " Press the I key for interactive startup" but this doesn't work for me. I get all "OK"s on the Mandriva startup so I really have no problem, just curious how Linux is working.
Thanks !
Scott Nash
 
Old 11-24-2006, 11:02 PM   #2
indienick
Senior Member
 
Registered: Dec 2005
Location: London, ON, Canada
Distribution: Arch, Ubuntu, Slackware, OpenBSD, FreeBSD
Posts: 1,853

Rep: Reputation: 65
OK, here's the scoop with linux startups:

Unix and Linux, as they boot, enter different "runlevels" as they boot. Each level is a different set of executed applications. A quick google search for "linux runlevels" and "/etc/init.d" will pretty much answer anything you need to know about configuring runlevels.

Also, I've also noticed with the "Press the 'I' key for interactive setup", that it's acting like it's disabled for Mandriva 2007.

Hope this answers any questions.
 
Old 11-25-2006, 05:29 PM   #3
Cara25
Member
 
Registered: Mar 2006
Location: Nashville, Tennessee
Distribution: Salix 13.37 with KDE
Posts: 258

Original Poster
Rep: Reputation: 36
Thanks indienick !
I'll do the search on Google to study up on the subject and I'll look but not touch my /etc/init.d file to just get an idea what's going on.
Scott Nash
 
Old 11-25-2006, 06:23 PM   #4
indienick
Senior Member
 
Registered: Dec 2005
Location: London, ON, Canada
Distribution: Arch, Ubuntu, Slackware, OpenBSD, FreeBSD
Posts: 1,853

Rep: Reputation: 65
No problem.
Let me know how it goes.

EDIT: Pretty much, /etc/init.d is a symbolic link to a bunch of different directories than contain startup scripts that are run as your PC is booting. I believe there are about 5 different folders, and the scripts in each folder are executed at different "run levels."

But, like I said, for most distros, /etc/init.d is an amalgamated folder of the 5 or so other folders that contain the boot scripts.

Here's a practically indespensable site; I'm not a beginner, I'm not a guru, either, but I still rely on this site for 75% of my Linux information.
http://www.linux.ie/newusers/beginners-linux-guide/.


Last edited by indienick; 11-25-2006 at 09:49 PM.
 
Old 11-26-2006, 12:16 PM   #5
Cara25
Member
 
Registered: Mar 2006
Location: Nashville, Tennessee
Distribution: Salix 13.37 with KDE
Posts: 258

Original Poster
Rep: Reputation: 36
Thanks for the link, I've bookmarked it and will start reading soon.
BTW, I did look at the /etc/init.d file and it has a lot of varibles in the script, I'll continue to just look until I learn more so I won't break anything.
Many years ago I was known as Dr. Dos because I always used DR DOS to correct from the command line so many people's early Windows problems. With Linux it's like a savored deja vu.
Scott Nash
 
Old 11-26-2006, 12:49 PM   #6
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
To summarise how Linux boots: The bootloader loads the kernel into memory and then the init program is the first one to be run. /etc/rc.sysinit is the file that is used by init to start your system on Mandriva and other Redhat derived distros (on Debian its /etc/init.d/rc.S). Other files (located in /etc/init.d) are used to start system services depending on the runlevel that the system is going into. The services being started or stopped at each runlevel are determined by the symlinks to the files in /etc/init.d which are located in /etc/rcX.d (X being a runlevel between 0 and 6).
 
Old 11-26-2006, 05:01 PM   #7
Cara25
Member
 
Registered: Mar 2006
Location: Nashville, Tennessee
Distribution: Salix 13.37 with KDE
Posts: 258

Original Poster
Rep: Reputation: 36
Thanks Reddazz!
I'm looking at all these files, trying to follow the script, the varibles,the run levels and the symlinks make it difficult for me.
I'm learning slowly with help from you pros. I really want to learn Linux. My only professional experience with UNIX has been setting up X Windows programs on client Windows boxes that needed to exchange data on UNIX servers and a vast number of communication apps between Windows client to UNIX servers (usually Oracle). Shell scripts were as deep as I got.
Thanks everyone for your help !
Scott Nash
 
Old 11-26-2006, 05:29 PM   #8
indienick
Senior Member
 
Registered: Dec 2005
Location: London, ON, Canada
Distribution: Arch, Ubuntu, Slackware, OpenBSD, FreeBSD
Posts: 1,853

Rep: Reputation: 65
While I definitely wouldn't call myself a pro, you are very welcome.
 
Old 12-01-2006, 01:51 AM   #9
Emmanuel_uk
Senior Member
 
Registered: Nov 2004
Distribution: Mandriva mostly, vector 5.1, tried many.Suse gone from HD because bad Novell/Zinblows agreement
Posts: 1,606

Rep: Reputation: 53
Quote:
I really want to learn Linux.
rute linux guide
linux newbie admin guide
I started with the two references above (googleable)

see as well wiki section of LQ
mandriva doc
howtos (on the distro) or at tldp
or search LQ bookmarks
 
  


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
Mandriva 2007 and Cedega cherif Mandriva 22 03-01-2007 09:05 PM
system hangs while shutting down if xwindow is running-mandriva 2007 m22linux Mandriva 1 11-23-2006 09:58 PM
Mandriva 2007 Rocks jolphil Mandriva 6 11-04-2006 09:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 12:56 AM.

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