Tanti Technology

My photo
Bangalore, karnataka, India
Multi-platform UNIX systems consultant and administrator in mutualized and virtualized environments I have 4.5+ years experience in AIX system Administration field. This site will be helpful for system administrator in their day to day activities.Your comments on posts are welcome.This blog is all about IBM AIX Unix flavour. This blog will be used by System admins who will be using AIX in their work life. It can also be used for those newbies who want to get certifications in AIX Administration. This blog will be updated frequently to help the system admins and other new learners. DISCLAIMER: Please note that blog owner takes no responsibility of any kind for any type of data loss or damage by trying any of the command/method mentioned in this blog. You may use the commands/method/scripts on your own responsibility. If you find something useful, a comment would be appreciated to let other viewers also know that the solution/method work(ed) for you.

Friday, 1 November 2013

Startup and Shutdown in linux


1. Run Levels:

0 - To halt a system
1,s,S - Single user mod
2 - Multiuser, no network
3 - Multiuser with network, but no XWindows
4 - Unused
5 - Multiuser with XWindows and network
6 - Reboot

2. To switch to single user run level:
# telinit 5

3. Directory containing Runlevel Scripts:

0 - /etc/init.d/rc0.d
1 - /etc/init.d/rc1.d
2 - /etc/init.d/rc2.d
3 - /etc/init.d/rc3.d
4 - /etc/init.d/rc4.d
5 - /etc/init.d/rc5.d
6 - /etc/init.d/rc6.d

4. Boot Loaders: 
a. LILO
b. GRUB

5. Config Files for Boot Loaders :
LILO: /etc/lilo.conf

GRUB: /boot/grub/menu.lst

6. To set password for grub:

a.
# grub
grub> md5crypt
Password: ibmlnx
Encrypted: $1$JGuR//$kjOu7Q9kTZk01wFKWQqMb/
grub> quit

b.
# vi /boot/grub/menu.lst
Add the following line below the “splashimage” line (Red Hat)
After you see title SUSE Linux 10.0 on the next line type lock.
On the following line type password md5 [the encrypted password you copied from previous shell]:

###Don't change this comment YaST2 identifier: Original name: linux###
title SUSE Linux 10.0
lock
password md5 $1$Rdv455345ga345GvIRgXWxcF1Vjb7tZ//
root (hd0,1)
kernel /boot/vmlinuz root=/dev/hda2 vga=0x31a selinux=0
resume=/dev/hda1 splash=silent showopts
initrd /boot/initrd

7. To shutdown a system :
# shutdown now
# halt

8. To reboot a system :
# shutdown -r now
# reboot

9. To install GRB :
# /sbin/grub-install /dev/sda

No comments:

Post a Comment