Unix Boot Process
Unix Logs
Unix Commands
Miscellaneous

UNIX

UNIX Boot Process

Boot Phases


Run Levels


Boot Process Details

BIOS Phase
(Basic Input/Output System)
  • Performs power on self test (POST), sometimes referred to as system integrity checks
  • >
  • Searches, loads, and executes boot loader program which is found in the Master Boot Record (MBR)
  • Once the boot loader is detected and loaded into memory, BIOS gives control to the boot loader
  • In short, it executes the master boot record (MBR) boot loader
MBR
(Master Boot Record)
  • Located in the 1st sector of the bootable disk.
  • Comprised of three parts: 1) the primary bootloader, 2) partition table, and 3) MBR validity check.
  • Contains information on bootloaders I.E. GNU GRUB, LILO, BURG, and syslinux.
  • MBR is responsible for loading and executing the bootloader (i.e. GRUB)
GRUB
(Grand Unified Bootloader)
  • Provides boot menu if there are multiple kernel images installed.
  • Contains the initrd (initial RAM disk) image, which is an initial root file system with a limited set of directories and executables.
  • Loads and executes Kernel
Kernel
  • Mounts root file system specified by the root= entry in grub.conf file
  • Executes /sbin/init daemon (since it is the first executed program, it has process ID (PID) of 1)
Init
  • The init process (daemon) and maintained the system in a specified run-level or state.
  • Init searches the initialization table (/etc/inittab) for the default run-level.
Run-level
  • Executed from /etc/rc.d/rc*.d
  • Default is typically level 3

Back to Categories

UNIX Logs


Back to Categories

UNIX Commands:

netstat -ano displays: protocol, rec/send count, local address, foreign address, connection state, and network timers.



Back to Categories

UNIX Miscellaneous

Shared Object

UNIX equivalent to Windows’ Dynamic Link Library (DLL). File intended to be shared by executable files and further shared object files.

/etc/shadow file

Password hashes for each user that has logged onto the machine

/etc/passwd file

Name: password (stored in /etc/shadow) : user id : group id : commentary
Example: jsmith:x:1001:1000:Joe Smith, room 1007
(the ‘x’ field is where the password hash will show up in /etc/shadow)

.bashrc:

/Users/[user]/.bashrc – File that contains shell commands that is used to change prompts, set environment variables, and define shell procedures.
Bash reads and executes commands from ~/.bashrc

crontab

On Unix-like operating systems, the crontab command opens the cron table for editing. The cron table is the list of tasks scheduled to run at regular time intervals on the system.
crontab [-u user] file

Back to Categories