Skip to main content.
Shams Web

    1. How to reinstall the grub from linux rescure?
    2. How to dual boot linux from windows xp with Wingrub?
    3. How to install grub to ntfs with Wingrub?
    4. How to make a grub boot disk in fedora ?
    5. How to dual boot xp with linux with two hard disks?
1. How to reinstall the grub from linux rescue?
Put the first linux installation cd, in the boot menu select "rescure linux installation", and continue until you get the shell prompt.
In the shell prompt type:
chroot /mnt/sysimge
now your are in your linux system, to invoke the grub prompt in the shell type:
grub
This wiil bring the grub prompt up, now type:
root (hd0,x)
Replace the the 0 and x for the proper numbers of hard disk and partition holding the linux boot directory, here we use grub partitions nomenclature, 0 mean the first hard disk or primary master 1 is for the primary slave and so on, the partitions number starts from 0, from 0 upto 3 are for the primary partitions the first logical partition is 4, for example for C drive can write (hd0,0) and for D drive write (hd0,4) and so on, for more details read faq 15 and 16.
Hit enter then type:
setup (hd0)
(hd0) will install the gurb in the mbr, to install in other hard disk or partition write as (hd0,x).
Top 2. How to install the grub from window xp with Wingrub?
Downlaod the WINGRB0206.EXE and install with the all options checked (Also check create the icon on the desktop), start the Wingrb from the desktop, in the Base setup window check the copy stage files and select the partition where want to wingrub copy the setup files for example C and click ok. Open the partition where the wingrub setup files was copied in our example C drive, open the Grub folder.
In a text editor open the file MENU (or menu.lst) and replace the lines with these ones:
  timeout=20
  root (hd0,x)
  kernel /boot/vmlinuz
  initrd /boot/initrd.img
Replace the the 0 and x for the proper numbers of hard disk and partition holding the linux boot directory, here we use grub partitions nomenclature, 0 mean the first hard disk or primary master 1 is for the primary slave and so on, the partitions number starts from 0, from 0 upto 3 are for the primary partitions the first logical partition is 4, for example for C drive can write (hd0,0) and for D drive write (hd0,4) and so on, for more details read faq 15 and 16, the vmlinuz and the initrd.img parameters should be the exact ones from the /boot directory.
From the Wingrb Tools menu open the "Install Grub", in the lower of Install Grub window in the Boot From options select the "BOOT.INI", System Drive is the location of the windows BOOT.INI file, it's normaly C drive , for the title write "Linux" or any linux distro you have, set the timeout to 20 (it means 20 seconds wait for defualt boot), and click on Install, this will add the linux to the xp boot menu (ntldr), reboot and start the linux.
Top 3. How to install the grub to the mbr with Wingrub?
Here is how to do.
1. Open WINGRUB, use the "Base Setup" menu item, click the "Copy stage files" checkbox,then "OK". (This step copy the stage files to your base directory)
2. Use "Install Grub", install GRLDR using the BOOT.INI method
3. Assure that there is an item in menu.lst to boot your Windows NT/2K/XP, it's something like this:(replace (hd0,0) with real deivce name)
  title Boot Windows NT/2K/XP
         root (hd0,0)
         chainloader +1
4. Reboot, when it gets to the grub console, press 'c', enter command mode
5. Type the following command (replace (hd0,0) with real deivce name):
        root (hd0,0)
        setup (hd0)
6. If all goes well, GRUB will be installed to MBR (the GNU way), reboot
7. Using GRUB to boot your Windows NT/2K/XP, add the linux to menu.list, read the section 2 for help.
8. Use "Install Grub", "Remove" grub from BOOT.INI
Top 4. How to make a grub boot disk in linux?
Open a terminal and type:
  grub
Put a new formatted floppy in the floppy dirve and in the grub prompt type:
  root (hd0,x)
x is the partition holding the boot directory, replace the the 0 and x for the proper numbers, here we use grub partitions nomenclature, 0 mean the first hard disk or primary master 1 is for the primary slave and so on, x is the partition number holding the isolinux directory, in grub the partition number starts from 0, from 0 upto 3 are for the primary partitions the first logical partition is 4, for example for /dev/hda1 write (hd0,0) and for /dev/hda5 write (hd0,4) and so on, for more details read faq 15 and 16, to preview your linux partition type df, hit enter and type:
  setup (fd0)
Grub boot disk is ready, check before use for the next time, make the first boot device the floppy and check it.
  Top 5. How to dual boot xp with linux with two hard disks?
If windows installed hard disk is the primary master and grub is installed to the mbr, there is no problem to start windows or linux, but if grub is intalled to the linux hard disk / prtition, then to start windows, do mapping for the hard disks. Start the linux, open the /boot/grub/grub.conf in a text editor and write the mapping as:
    ## grub mapping:
        title Windows XP
    root (hd1,0)
    map (hd1) (hd0)
    map (hd0) (hd1)
    makeactive
    chainloader +1
To start the system with grub, change the bois sittings to boot from the linux hard disk.
Top