Linux - GeneralThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
When you shut down or reboot, the scripts referenced by the symlinks in /etc/rc.d/rc6.d are processed. On my box (also Mandrake, and also running Samba), one of those links (K35smb; the "K" means Kill) runs /etc/init.d/smb, which starts or, in the case of a shutdown/reboot, kills smbd and nmbd, as far as I can tell.
I think the initial "switching to runlevel 6" message comes from init, but from the information you've given, epecially regarding the Samba corruption, you might want to look at the scripts that get executed at shutdown/reboot and see if there isn't something amiss there. Sorry I can't offer anything more specific, but I haven't enountered this particular problem before and I'm still more than a bit of a Newbie.
ive noticed since i reinstalled samba that the problem stopped... so maybe there was a file corruption...im not sure... i really have no clue as to hoe the runlevels work... i am so used to windows in that there seems to be only one run level...im sure, oif course, theres more but windows tens to try to keep underground things from becoming apparent to the user...
If you think Windows tries to hide its inner workings from you, check out a Mac- it hides everything from you.
As far as runlevels go, Windows actually does have a few equivalents. When you boot into "safe mode" or "command prompt" in Win, it isn't the same as booting straight into the GUI (Windows). Less services are started, and fewer drivers are loaded.
The comments at the beginning of /etc/inittab describe the different runlevels in Linux a bit:
Quote:
[# 0 - halt (Do NOT set initdefault to this)
# 1 - Single user mode
# 2 - Multiuser, without NFS (The same as 3, if you do not have networking)
# 3 - Full multiuser mode
# 4 - unused
# 5 - X11
# 6 - reboot (Do NOT set initdefault to this)
The above runlevels apply to Redhat and Mandrake at least, but some distros (Slackware is one) use a slightly different numbering scheme.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.