Professional Web Applications Themes

Grub problem (everything got d) - Linux Setup, Configuration & Administration

Hi, Lately I am getting from bad to worse: My Win98 (on /dev/hda partitions) got d, and I wanted to reinstall it. As it is likely that the Win98 installer will overwrite the MBR, I wanted to test the reinstallation of Grub to gain access to my Linux (RH9, on /dev/hdb partitions) after reinstalling Windows. The problem is that trying to install Grub (from a Knoppix 3.2 CD) I have messed up my system and I cannot boot anything anymore (except Knoppix from CD). I guess I need some help... (First time I am "playing" with Grub and MBRs...) I ...

  1. #1

    Default Grub problem (everything got d)

    Hi,

    Lately I am getting from bad to worse: My Win98 (on /dev/hda partitions)
    got d, and I wanted to reinstall it. As it is likely that the Win98
    installer will overwrite the MBR, I wanted to test the reinstallation of
    Grub to gain access to my Linux (RH9, on /dev/hdb partitions) after
    reinstalling Windows.
    The problem is that trying to install Grub (from a Knoppix 3.2 CD)
    I have messed up my system and I cannot boot anything anymore (except
    Knoppix from CD). I guess I need some help... (First time I am "playing"
    with Grub and MBRs...)

    I have a /boot partition on /dev/hdb1.

    The commands I have run are the following (as root):

    # grub

    grub> find /grub/stage1
    (hd1,0)

    grub> root (hd1,0)
    Filesystem type is ext2fs, partition type 0x83

    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)"... 16 sectors are embedded.
    succeeded
    Running "install /grub/stage1 d (hd0) (hd0)1+16 p (hd1,0)/grub/stage2 /grub/me
    nu.lst"... succeeded
    Done.

    grub> quit

    Despite the successes reported by grub, rebooting yields a system hanging
    after PCI probing (visually the last stage before booting from disk
    when everything worked) and this without any error message.

    Is there anything wrong in the way I am using Grub ?

    What is the role of the "root" command, if "setup" searches anyway
    for stage1 and stage2 ? (As I understood it, it is the place where
    Grub searches for the configuration files. Am I wrong ?)

    Any advice ?

    Thanks a lot for any help.
    Happy new year.


    ---- additional information below ----


    My menu.lst (comments removed):

    default=0
    timeout=10
    splashimage=(hd1,0)/grub/splash.xpm.gz
    title Red Hat Linux (2.4.20-20.9)
    root (hd1,0)
    kernel /vmlinuz-2.4.20-20.9 ro root=LABEL=/1
    initrd /initrd-2.4.20-20.9.img
    title Red Hat Linux 9 (2.4.20-8)
    root (hd1,0)
    kernel /vmlinuz-2.4.20-8 ro root=LABEL=/1
    initrd /initrd-2.4.20-8.img
    title DOS
    rootnoverify (hd0,0)
    chainloader +1
    # end of menu.lst

    My device.map:

    (fd0) /dev/fd0
    (hd0) /dev/hda
    (hd1) /dev/hdb
    # end of device.map

    Other useful information (?):
    ----------------------------

    # fdisk -l /dev/hda

    Disk /dev/hda: 40.0 GB, 40027029504 bytes
    255 heads, 63 sectors/track, 4866 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes

    Device Boot Start End Blocks Id System
    /dev/hda1 * 1 1460 11727418+ c Win95 FAT32 (LBA)
    /dev/hda2 1461 3245 14338012+ c Win95 FAT32 (LBA)
    /dev/hda3 3246 3500 2048287+ 82 Linux swap
    /dev/hda4 3501 4866 10972395 f Win95 Ext'd (LBA)
    /dev/hda5 3501 4866 10972363+ 83 Linux

    (Please ignore Linux partitions on /dev/hda, they will disappear soon.)

    # fdisk -l /dev/hdb

    Disk /dev/hdb: 120.0 GB, 120000000000 bytes
    255 heads, 63 sectors/track, 14589 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes

    Device Boot Start End Blocks Id System
    /dev/hdb1 * 1 382 3068383+ 83 Linux
    /dev/hdb2 383 1657 10241437+ 82 Linux swap
    /dev/hdb3 1658 14589 103876290 83 Linux

    (/dev/hdb1 is my /boot partition, /dev/hdb3 is my / partition.)
    enclume42 Guest

  2. #2

    Default Re: Grub problem (everything got d)

    On Mon, 29 Dec 2003 18:42:56 -0800, enclume42 wrote:
     
    I don't see anything you have done wrong. It should work. The only thing
    I can think of is that the BIOS virus protection is blocking writing to
    the MBR. Check that virus protection it is disabled (in BIOS setup).

    Douglas Guest

  3. #3

    Default Re: Grub problem (everything got d)

    Hi,

    Finally I could reinstall my MBR, using the method I described
    with one difference: instead of using the grub command in the
    Knoppix filesystem, I mounted the RH9 partition containing /sbin
    and ran the grub found there...

    Oddly enough, both grub executables are version 0.93, but they
    differ in size:
    Knoppix 3.2: 120248 bytes
    RH9 : 196220 bytes

    Any idea why it worked with one and not with the other ? And
    why the executables are different ?

    This grub business looks very much like sorcery... :-)

    Thanks for your comments.


    com (enclume42) wrote in message news:<google.com>... 
    enclume42 Guest

  4. #4

    Default Re: Grub problem (everything got d)

    On Tue, 30 Dec 2003 02:07:10 -0800, enclume42 wrote:
     
    I have noticed more confusion with menu.lst and grub.conf lately. The
    RedHat/Fedora grub may actually only work with grub.conf. The grub project
    favors menu.lst. When I looked at your post, I checked that the output
    from your grub shell showed it was linking to your menu consistently.

    It was actually less confusing when a symbolic link was required:

    menu.lst -> grub.conf

    OT: I don't think grub is sorcery. I think it works very well. But I do
    think a lot of things RedHat tries to "fix" get broken in the process.
    Take Gnome 2.x/Nautilus as another example. Gnome 2.x never crashes
    under Slackware, FWIW.

    --
    I want the cold Mexican beer...I want my shirts laundered
    like the way they do at the Imperial Hotel in Tokyo...
    http://us.imdb.com/title/tt0113481/quotes
    Douglas Guest

  5. #5

    Default Re: Grub problem (everything got d)

    Hi Douglas,

    For the technical part, under RH9 I have my menu.lst as
    a symlink to grub.conf, so that the problem probably lies
    somewhere else... Anyway, since I could fix it and have
    other urgent things to solve, I will let it unsolved.
    The positive side of this adventure is that I learned a lot
    about grub.

    In general I agree with you as regards the RedHat policy.
    Unfortunately working in a corporate-like business, one
    sometimes has to stick to decisions made by others. The world
    of computing is not perfect; this is quite fortunate otherwise
    few of us would have a job in this field... :-)

    Happy new year.

    Douglas Mayne <localnet> wrote in message news:<localnet>...
    .... 
    enclume42 Guest

Similar Threads

  1. problem with grub under winxp and rh9
    By Dave in forum Linux Setup, Configuration & Administration
    Replies: 2
    Last Post: December 28th, 05:25 AM
  2. How can I install grub on MBR so that it prompts grub for booting Windows 98
    By learner in forum Linux Setup, Configuration & Administration
    Replies: 2
    Last Post: December 3rd, 02:46 PM
  3. grub installation problem
    By Rob Baxter in forum Linux / Unix Administration
    Replies: 2
    Last Post: November 24th, 09:11 PM
  4. GRUB problem
    By Kevin McKinley in forum Debian
    Replies: 7
    Last Post: July 2nd, 09:40 PM
  5. fs_passno (was GRUB problem)
    By cr in forum Debian
    Replies: 0
    Last Post: June 28th, 11:20 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139