Showing posts with label Linux. Show all posts
Showing posts with label Linux. Show all posts

Saturday, 9 March 2013

Install grub in redhat linux after installing windows


I  installed  window7 --> than  redhat 6 --> than again Window7

Now I am not getting to boot from redhat

Boot from RHEL6 DVD.

Rescue installed system

Choose = Language, Keyboard,

Rescue Method = Local CD\DVD

Setup Networking = Yes / No  (any),

Rescue Screen = Continue

First Aid Kit quickstart menu = shell Start shell.

bash-4.1#chroot /mnt/sysimage
bash-4.1#cd /boot/grub
bash-4.1#fdisk -l
bash-4.1#grub-install /dev/sda1

If no error reboot the the system.

Friday, 8 March 2013

window 7 and Redhat 6 dual boot

Wednesday, 6 March 2013

Install grub in ubuntu linux after installing windows

If you install window  first and than install Ubuntu.

Because of some problem you install window again after Ubuntu installation.

Now you are not getting the option of Ubuntu.

TO get the Ubuntu option you have to install Ubuntu grub again on HARD DISK.

For that   Boot from the same version of  Ubuntu you installed earlier.

Select the Try Ubuntu 

open terminal

########## Find the Linux partition with ##########

sudo fdisk -l



Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000cf1c8

   Device Boot         Start            End             Blocks        Id         System
/dev/sda1   *           2048         206847          102400         7       HPFS/NTFS/exFAT
/dev/sda2            206848        184322047     92057600     7       HPFS/NTFS/exFAT
/dev/sda3         184324094     391354367    103515137     5       Extended
/dev/sda4         391354368     625137663    116891648    7       HPFS/NTFS/exFAT
/dev/sda5         184324096     360103935    87889920      83      Linux
/dev/sda6          360105984    391354367    15624192      82      Linux swap / Solaris


########## mount the linux partition on /mnt ##########

sudo mount /dev/sda5 /mnt

########## mount (bind) the live CD  Dir with installed linux Dir ##########


sudo mount --bind /proc /mnt/proc

sudo mount --bind /dev /mnt/dev

sudo mount --bind /sys /mnt/sys

########## Get the root privilege ##########

chroot /mnt

########## Install the grub  ##########

grub-install /dev/sda






Tuesday, 25 September 2012

metasploit window7 hacking

Monday, 24 September 2012

metasploit windowXP Hacking (silent)