Saturday, September 10, 2011

How make directory in Linux


How make directory in Linux
[root@local host]# mkdir     kamal
[root@local host]# cd   kamal
[root@local host kamal]# vi   hcl

How to make Files in Linux


How to make Files in Linux
We make three types of file in Linux
[root@local host]# vi   file name      (These file save: wq!)
[root@local host]# cat  > file name   (These file save ctrl+c)
[root@local host]# touch file name    (This is a MTE file)

Thursday, September 8, 2011

How to break Grub password


How to break Grub password
[root@local host]# vi  /etc/grub.conf
Press i key
Then delete these line            #1$$54$77#66$$   
              
Press escape key
: wq!

How to create Password in Grub


We can put the password at the installation time but if we want to put the password in Grub we can put it by the command
[root@local host]# grub-md5-crypt (Enter)
Password *****
Retype *****
#1$$54$77#66$$    (copy this line)
[root@local host]# VI   /etc/grub.conf
Press i key
Move the cursor
Hidden menu
Password   --md5     (paste line)
Press escape key
: wq!   

Grub Repair


Insert Linux DVD in cd-rom then restart own pc
When restart the pc then we write   Linux   rescue (Enter)
Sh 3.1# chroot   /mnt/sysimage (Enter)
Sh3.1# grub-install    /dev/sda (Enter)
Ctrl+d
Ctrl+d
Eject Linux DVD, when start the Linux then we press up arrow key .Then we see open grub page Press C key.
Grub >root   (hd0, no. Of partition in which xp install)
Grub >rootnoverify
Grub >chainloader    +1
Grub >boot
When start Linux then open Terminal
[root@local host]# VI   /etc/grub.conf    (Enter)
Then open grub configuration
Press i key
Title window
Rootnoveify   (hd0, partition no. which xp install)
Chainloader   +1
Press escape key
: wq!
Init   6