Beruflich Dokumente
Kultur Dokumente
[RHCSA]
name= this is yum client repository file
baseurl=ftp://192.168.0.254/pub/rhel6/dvd
enabled=1
gpgcheck=0
:wq!
Note : if you want you can change the timeout=10 so that machine reboot
does not take much time
:wq!
Step 10. Reboot the machine
#init 6
Step 11. When you will get the machine check the kernel version
#uname r
As a out put you will get the updated kernel version
################################################################
No. Of runlevels:
cat /etc/inittab
0 halt (Do NOT set initdefault to this )
123456-
#vim /etc/inittab
id:5:initdefault
Go to end of the line and change the number.
For ex:
id:3:initdefault
Step 2. Save the file
:wq!
Step3. Reboot the machine
#init 6
############################################################
Changing the root password:
Reset the password by logging in to single user mode of your virtual machine
Step1. Restart the virtual machine
Step2. At grub screen where it shows seconds to start, press any key on your
keyboard.
Step 3. Press e (Ensure that Caps Lock is off)
Step 4. Select kernel /Vmlinuz_an and press e
Step 5. Type space 1 or s
#init 6
Step4. After rebooting again open /boot/grub/grub.conf file and modify the
error permanently
grub>reboot
2. Timeout:
The default boot entity is started automatically after 8 sec.
3. Title:
Each entry for an operating system begins with title.
4. root(hd0,0):
-Grub does not distinguish between IDE & SCSI hard disk .
-The hard disk that is recognized by the BIOS as the first hard disk .
h0: First hdd
5. Initrd /initramfs:
-This entry sets the location of the location of the initial ramdisk .
-The initrd contains hardware drivers that needed before the kernel
can access the hard disk.