This is a discussion on Boot thru grub within the Getting started tutorials forums, part of the Linux Getting Started category; What procedure do we need to follow when there are dual boot operating system likw windows and linux and some ...
|
|||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
| Sponsored Links | ||
|
|
|
||||
|
You have to install GRUB on the MBR (Master Boot Record). To do this just follow this steps:
(First of all, enter your BIOS setup and in BOOT Sequence window choose to boot with CDROM first.) 1) Boot with your Fedora Core Installation CD 1 (or your Redhat Distro). 2) Type "linux rescue" at the prompt. 3) Answer the questions about keyboard and language. 4) Tell the rescue mode to use your proper partition to mount (the one that you want to get booted into) 5) When you come to the console prompt type: chroot /mnt/sysimage 6) Type grub 7) Set the GRUB's root device to the partition containing the boot directory like this: grub> root (hd0,0) Filesystem type is ext2fs, partition type 0x83 I have Windows 98 in hd0,0 ; Windows XP in hd0,1, Fedora Core /boot partition in hd0,2 and Mandrake /boot partition in hd0,6. So in my case the command should be: > root (hd0,2) If you are not sure which partition actually holds this directory, use the command 'find' like this: grub> find /boot/grub/stage1 This will search for the file name '/boot/grub/stage1' and show the devices which contain the file. Once you've set the root device correctly, run the command 'setup'. grub> setup (hd0) Checking if "/boot/grub/stage1" exists....... no Checking if "/grub/stage1" exists....... yes Checking if "/grub/stage2" exists....... yes Checking if "/grub/e2fs_stage1_5" exists....... yes Running "embed /grub/e2fs_stage1_5 (hd0)"....... 15 sectors are embedded succeded Running "install /grub/stage1 (hd0) (hd0) 1+15 p (hd0,2)/grub/stage2 /grub/grub.conf....... succeded Done This command will install GRUB boot loader on the Master Boot Record (MBR) of the first drive. 9) Type quit grub> quit GRUB is now in the MBR. 10) Finally, you'll have to edit your /boot/grub/grub.conf, for example whith nano: > nano /boot/grub/grub.conf (/etc/grub.conf or /boot/grub/grub.conf or /boot/grub/menu.lst, they are the same file) This file has the boot partitions of the disk/s. 11) Restart your PC without the Fedora Core CD 1 Installation. (or your Redhat Distro) |
|
|||
|
you can also use this command
grub-install --recheck /dev/hda or /dev/sda.. it will correct the entries in grub.conf.. BTW suggestions posted by nix are also corect.. very nice way.... |
![]() |
| Bookmarks |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| e2fsck does not help to boot | Ritho | Getting started tutorials | 1 | 03-24-2008 11:40 PM |
| How to remove grub vista? | raj | Windows Xp/2000/2003 server administration | 1 | 10-08-2007 01:02 AM |
| Ubuntu GRUB Problem | surmandal | Linux software | 7 | 09-01-2007 10:31 PM |
| Fedora boot problem | rajuk | Linux software | 3 | 02-06-2006 11:54 PM |
| debian boot into grub single user mode | Linux software | 1 | 01-01-2006 12:21 AM | |