| HOWTO Restore GRUB |
|
You have windows 98 and linux on the same hard disk and you choose GRUB as boot loader. At boot time you see a menu to choose windows or linux. What to do: Remember that for grub (hd0,1) means hda (primary controller master), second partition. Now we need to tell grub where are the grub files: A sample menu.lst file is this: default=0 |
| Let's see another case |
|
To repair it: Now you need to repair the ext3 filesystem because now it's bigger than before and the journal file must be created again. First, check the filesystem: fsck.ext3 /dev/hda2 Now, create again the journaling ext3 file: tune2fs -j /dev/hda2 Now mount the root filesystem on /mnt/sysimage and run grub: mount -t ext2 /dev/hda2 /mnt/sysimage
|
| Making a GRUB boot floppy disk |
|
You will need to know where are the files stage1 and stage2, in Red Hat they are on: /usr/share/grub/i386-redhat/ Once located, enter into the directory, put a floppy disk on the drive (do not mount it) and type:
|

|
You can always take a look at the official documentation website for grub at: http://www.gnu.org/software/grub/ Feel free to post any questions on SorgoNet.com Forum. by DrDoom
|