
Chapter 3. Boot Process, Init, and Shutdown 61
id:3:initdefault:
The default runlevel is 3 in this example, the number after the first colon. If you want to change it, you
can edit /etc/inittab by hand. Be very careful when you are editing the inittab file as typos can
cause your system to become unbootable without a using a boot diskette or going into rescue mode.
If you use LILO as your boot loader, you can fix the inittab file by rebooting, accessing the boot:
prompt with [Ctrl]-[X], and typing:
boot: linux single
If you are using GRUB as your boot loader, you can fix the inittab file with the following steps.
• In the graphical GRUB boot loader screen, select the Red Hat Linux boot label and press [e] to
edit it.
• Arrow down to the kernel line and press [e] to edit it.
• At the prompt, type single and press [Enter].
• You will be returned to the GRUB screen with the kernel information. Press the [b] key to boot the
system into single user mode.
Tip
It is also possible to change runlevels at boot-time with GRUB using the same method as above
except replacing single with, for example, 3 or 5. The rest of the steps are exactly as they are shown
above.
This should allow you to boot into single-user mode so you can re-edit inittab to its previous value.
Next, we will discuss information in the files within the /etc/sysconfig/ directory which define
the parameters used by different system services when they start up.
3.3. Sysconfig Information
The following information outlines some of the various files in the /etc/sysconfig/ directory, their
function, and their contents. This information is not intended to be complete, as many of these files
have a variety of options that are only used in very specific or rare circumstances.
3.3.1. Files in the /etc/sysconfig/ Directory
The following files are normally found in /etc/sysconfig/:
• amd
• apmd
• arpwatch
• authconfig
• cipe
• clock
• desktop
Commenti su questo manuale