Hi, My grub is gone and I can't boot linux. Was messing with win98 on hda which overwrote the MBR. (It's a long story, don't ask!). I'm not at all familiar with grub, except that it is a boot loader. I'm using YaST on the Suse 9.1 CD to try to install grub again. I followed the instructions on the SuseFAQ which says to boot from CD, using YaST select Install, select Repair Installed System, select Expert Tools, then Install New Boot Loader. http://susefaq.sourceforge.net/faq/grub.html I accepted the default suggestions, but get Error messages when YaST tries to actually write the MBR. /boot/grub/device.map says (hd0) /dev/hda (hd1) /dev/hdb (fd0) /dev/fd0 Windows is on hd0 on one partition. Suse 9.1 is on hd1 on two partitions, the other is swap I think the problem is with /etc/grub.conf which Yast proposes as follows root (null) install --stage2=/boot/grub/stage2 / d (hd0) / 0x8000 (null)/ quit This configuration returns the error: "Error occurred while installing GRUB" "GNU GRUB version 0.94 (640K lower / 3072K upper memory) grub> root(null) Error 12: Invalid device requested grub> quit I tried rewriting grub.conf as follows: root (hdb) install --stage2=/boot/grub/stage2 / d (hd0) / 0x8000 (hdb)/ quit which returrns the following error: grub> root(hdb) Error 23: Error while parsing number grub> install -- stage2=/boot/grub/stage2 / d (hd0) / 0x8000 (hdb)/ Error 12: Invalid device requested grub> quit Not sure what to try now. As if this post isn't long enough already, here's a bit more info: Partitioner reports the following: /dev/hda1 win95 FAT32 /dev/hdb1 Linuux swap /dev/hdb2 Linux native / If you're not crosseyed yet, any help would be appreciated. Many thanks, Jim Flanagan linuxjim at jjfiii.com
I found a fix. Per the SuseFAQ, I ran manual repair, and selected only fix mbr. That did a more thourough scan of my system and re-wrote the mbr properly. All is well now. Sorry for the long post earlier, I guess you could hear my frustration comming thru. Jim Flanagan On Monday 20 September 2004 8:39 am, Jim Flanagan wrote:
Hi,
My grub is gone and I can't boot linux. Was messing with win98 on hda which overwrote the MBR. (It's a long story, don't ask!).
I'm not at all familiar with grub, except that it is a boot loader. I'm using YaST on the Suse 9.1 CD to try to install grub again.
I followed the instructions on the SuseFAQ which says to boot from CD, using YaST select Install, select Repair Installed System, select Expert Tools, then Install New Boot Loader. http://susefaq.sourceforge.net/faq/grub.html
I accepted the default suggestions, but get Error messages when YaST tries to actually write the MBR.
/boot/grub/device.map says (hd0) /dev/hda (hd1) /dev/hdb (fd0) /dev/fd0
Windows is on hd0 on one partition. Suse 9.1 is on hd1 on two partitions, the other is swap
I think the problem is with /etc/grub.conf which Yast proposes as follows root (null) install --stage2=/boot/grub/stage2 / d (hd0) / 0x8000 (null)/ quit This configuration returns the error: "Error occurred while installing GRUB" "GNU GRUB version 0.94 (640K lower / 3072K upper memory) grub> root(null) Error 12: Invalid device requested grub> quit
I tried rewriting grub.conf as follows: root (hdb) install --stage2=/boot/grub/stage2 / d (hd0) / 0x8000 (hdb)/ quit which returrns the following error: grub> root(hdb) Error 23: Error while parsing number grub> install -- stage2=/boot/grub/stage2 / d (hd0) / 0x8000 (hdb)/ Error 12: Invalid device requested grub> quit
Not sure what to try now.
As if this post isn't long enough already, here's a bit more info: Partitioner reports the following: /dev/hda1 win95 FAT32 /dev/hdb1 Linuux swap /dev/hdb2 Linux native /
If you're not crosseyed yet, any help would be appreciated. Many thanks,
Jim Flanagan linuxjim at jjfiii.com
Hi,
My grub is gone and I can't boot linux. Was messing with win98 on hda which overwrote the MBR. (It's a long story, don't ask!).
I'm not at all familiar with grub, except that it is a boot loader. I'm using YaST on the Suse 9.1 CD to try to install grub again.
I followed the instructions on the SuseFAQ which says to boot from CD, using YaST select Install, select Repair Installed System, select Expert Tools, then Install New Boot Loader. http://susefaq.sourceforge.net/faq/grub.html
I accepted the default suggestions, but get Error messages when YaST tries to actually write the MBR.
/boot/grub/device.map says (hd0) /dev/hda (hd1) /dev/hdb (fd0) /dev/fd0
Windows is on hd0 on one partition. Suse 9.1 is on hd1 on two partitions, the other is swap
I think the problem is with /etc/grub.conf which Yast proposes as follows root (null) install --stage2=/boot/grub/stage2 / d (hd0) / 0x8000 (null)/ quit This configuration returns the error: "Error occurred while installing GRUB" "GNU GRUB version 0.94 (640K lower / 3072K upper memory) grub> root(null) Error 12: Invalid device requested grub> quit
I tried rewriting grub.conf as follows: root (hdb) install --stage2=/boot/grub/stage2 / d (hd0) / 0x8000 (hdb)/ quit which returrns the following error: grub> root(hdb) Error 23: Error while parsing number grub> install -- stage2=/boot/grub/stage2 / d (hd0) / 0x8000 (hdb)/ Error 12: Invalid device requested grub> quit
Not sure what to try now.
As if this post isn't long enough already, here's a bit more info: Partitioner reports the following: /dev/hda1 win95 FAT32 /dev/hdb1 Linuux swap /dev/hdb2 Linux native /
If you're not crosseyed yet, any help would be appreciated. Many thanks, The easiest way to do this I am not all familiar with the suse boot disks and recovery, however the generic way (the Linux Way or old school) is command
On Monday 20 September 2004 15:39, Jim Flanagan wrote: line. Boot from any linux medium in single or init 1 (runlevel 1) e.g. linux single or linux init 1 thats from the cds lilo or grub when the system is up type mount to see what is mounted and what is not! if need be create a directory call something, I use /mnt/sysimage, I just find it easier to remember :-) use fdisk -l to establish which partitions are you linux, swap and windows. mount the linux partition /mnt/sysimage. e.g. lets say your linux root partition is /dev/hda3 mount -t ext2 -o rw /dev/hda3 /mnt/sysimage I have mounted it ext2 on purpose. I often find things don't work to well when it mounted as ext3 in single /init 1 mode. If this is your only partition then things should not be too hard. You will now need to chroot (change root) So to do this type chroot /mnt/sysimage /bin/bash now if you miss this you are in the poo type env-update now if your original system is still intact then you can do this grub |>root (hd0,3) "replace the 'a' with the numer' ie a=0 b=1 " |>setup (hd0) |>quit OK now reboot and check that you can boot Linux. If yes then boot in X and use YAst to configure you windows, /boot/grub/grub.conf should look something like this though: default 0 timeout 30 splashimage=(hd0,0)/grub/splash.xpm.gz title Linux kernel (hd0,0)/vmlinuz root=/dev/hda3 initrd (hd0,0)/initrd title windows rootnoverify (hd0,1) "obviously windows must be on the 2nd partition here" chainloader +1 This is my sample file which use on all my students it give you a very basic overview of the grub.conf just remeber which partition you are working on here, and it has to work. Cheers good luck -- -- Chadley Wilson Production Line Supervisor Pinnacle Micro Manufacturers of Proline Computers ==================================== Exercise freedom, Use LINUX =====================================
On Monday 20 September 2004 15:39, Jim Flanagan wrote:
Hi,
My grub is gone and I can't boot linux. Was messing with win98 on hda which overwrote the MBR. (It's a long story, don't ask!).
I'm not at all familiar with grub, except that it is a boot loader. I'm using YaST on the Suse 9.1 CD to try to install grub again. Hey wait a minute just to add I have just checked my file and discovered there is no /boot/grub/grub.conf in Suse 9.1. it actually menu.1st and resides in
/boot/grub/menu.lst Sorry for that. Sleeping! -- -- Chadley Wilson Production Line Supervisor Pinnacle Micro Manufacturers of Proline Computers ==================================== Exercise freedom, Use LINUX =====================================
participants (2)
-
Chadley Wilson
-
Jim Flanagan