Professional Web Applications Themes

LILO --> GRUB - Debian

I've been successfully booting into Debian-3.0 using LILO. Having used GRUB for many years on other systems, I decided to go ahead and install/configure it. Here (similar to what was suggested by another poster) is what I did: # apt-get install grub # grub-install --root-directory=/boot /dev/hda # update-grub # <edit menu.lst> # update-grub Unfortunately, when I reboot, LILO continues to get control instead of GRUB. Should 'grub-install' change the MBR? I did the above *again*. But this time, when I ran 'grub-install' it ran 'grub' (which it hadn't done before!) but ended with a message like: ... corrupt version of ...

  1. #1

    Default LILO --> GRUB

    I've been successfully booting into Debian-3.0 using LILO.

    Having used GRUB for many years on other systems, I decided to go
    ahead and install/configure it. Here (similar to what was suggested
    by another poster) is what I did:

    # apt-get install grub
    # grub-install --root-directory=/boot /dev/hda
    # update-grub
    # <edit menu.lst>
    # update-grub


    Unfortunately, when I reboot, LILO continues to get control instead of
    GRUB. Should 'grub-install' change the MBR?

    I did the above *again*. But this time, when I ran 'grub-install' it
    ran 'grub' (which it hadn't done before!) but ended with a message
    like:

    ... corrupt version of stage1/stage2

    BTW, I'm using grub-0.91.2.


    Ideas?
    --
    Prof Kenneth H Jacker [email]khjcs.appstate.edu[/email]
    Computer Science Dept [url]www.cs.appstate.edu/~khj[/url]
    Appalachian State Univ
    Boone, NC 28608 USA


    --
    To UNSUBSCRIBE, email to [email]debian-user-requestlists.debian.org[/email]
    with a subject of "unsubscribe". Trouble? Contact [email]listmasterlists.debian.org[/email]
    Kenneth Jacker Guest

  2. #2

    Default Re: LILO --> GRUB

    [20030706] Kenneth Jacker (khjbe.cs.appstate.edu) wrote:
    > I've been successfully booting into Debian-3.0 using LILO.
    >
    > Having used GRUB for many years on other systems, I decided to go
    > ahead and install/configure it. Here (similar to what was suggested
    > by another poster) is what I did:
    >
    > # apt-get install grub
    > # grub-install --root-directory=/boot /dev/hda
    > # update-grub
    > # <edit menu.lst>
    > # update-grub
    >
    >
    > Unfortunately, when I reboot, LILO continues to get control instead of
    > GRUB. Should 'grub-install' change the MBR?
    Try the following :

    $ grub
    root (hd0,0)
    setup (hd0)
    quit

    root (hd0,0) defines where your boot partition is [(hd0,0)=hda].
    setup (hd0) installs grub in hda's MBR.
    It works fine on my notebook with sid.

    btw. u don't have to run grub every time you edit menu.lst or
    upgrade a kernel image, that's its beauty :)

    --
    Manolis Tzanidakis
    (mtzanidakis-at-freemail-dot-gr)
    Jabber: [email]mtzanidakisjabber.org[/email]
    ICQ: 102798230
    GnuPG Key Fingerprint:
    5CA5 41D6 09F1 C4B9 C331
    65EF 4B3F 6979 EB8C 88F3
    Get my public key at: pgp.mit.edu

    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.2.2 (GNU/Linux)

    iD8DBQE/CUY7Sz9peeuMiPMRAtTKAJ9RdnfXqm6QMb2WD2i1i36KmJwMmA CePacH
    OzjPWifTgxCcIvCtmi3p+M8=
    =0C/Z
    -----END PGP SIGNATURE-----

    Manolis Tzanidakis Guest

  3. #3

    Default Re: LILO --> GRUB


    Andrés Roldán <aroldanfluidsignal.com> writes:
    > You can try zeroing the MBR (not including the partition table) and rerun
    > grub-install. Try the following:
    >
    > dd if=/dev/hda of=mbr.bak bs=512 count=1
    >
    > this will make a backup of your mbr including the partition table. Then run:
    >
    > dd if=/dev/zero of=/dev/hda bs=443 count=1
    Err, it is 446 :)
    >
    > After the 443 byte it is the partition table so it is recommended not to zero
    here it is 446 too
    > the partition table or you will really cry. Then rerun grub-install /dev/hda.
    >
    > If something happen, you can then restore the mbr again.
    >
    > Kenneth Jacker <khjbe.cs.appstate.edu> writes:
    >
    >> km> I recommend making a boot floppy:
    >>
    >> km> [url]http://www.linuxjournal.com/article.php?sid=4622[/url]
    >>
    >> Well I was able to make the boot floppy ...
    >>
    >> But *now*, I can't even run "grub-install /dev/hda" without an error
    >> message:
    >>
    >> /dev/hda does not have any corresponding BIOS drive
    >>
    >>
    >> Note that I can continue to boot normally with LILO from /dev/hda.
    >> So, I must have messed something up in my earlier attempts ... :-(
    >>
    >>
    >> Anyone know how to get around *this* problem? I looked through
    >> archives, but found nothing that will help ...
    >>
    >> Thanks,
    >>
    >> -Kenneth
    >>
    >>
    >> --
    >> To UNSUBSCRIBE, email to [email]debian-user-requestlists.debian.org[/email]
    >> with a subject of "unsubscribe". Trouble? Contact [email]listmasterlists.debian.org[/email]
    >>
    >
    > --
    > Andres Roldan <aroldanfluidsignal.com>
    > [url]http://people.fluidsignal.com/~aroldan[/url]
    > CSO, Fluidsignal Group
    >
    >
    > --
    > To UNSUBSCRIBE, email to [email]debian-user-requestlists.debian.org[/email]
    > with a subject of "unsubscribe". Trouble? Contact [email]listmasterlists.debian..org[/email]
    >
    --
    Andres Roldan <aroldanfluidsignal.com>
    [url]http://people.fluidsignal.com/~aroldan[/url]
    CSO, Fluidsignal Group


    --
    To UNSUBSCRIBE, email to [email]debian-user-requestlists.debian.org[/email]
    with a subject of "unsubscribe". Trouble? Contact [email]listmasterlists.debian.org[/email]
    Andrés Roldán Guest

  4. #4

    Default Re: LILO --> GRUB

    ar> You can try zeroing the MBR (not including the partition table)
    ar> and rerun grub-install. Try the following:

    ar> dd if=/dev/hda of=mbr.bak bs=512 count=1

    ar> this will make a backup of your mbr including the partition
    ar> table. Then run:

    ar> dd if=/dev/zero of=/dev/hda bs=443 count=1

    ar> After the 443 byte it is the partition table so it is
    ar> recommended not to zero the partition table or you will really
    ar> cry. Then rerun grub-install /dev/hda.

    Tried the above, but am still getting the message about "no
    corresponding BIOS drive" and 'grub' exits.

    Strange!

    Thanks for the idea, Adres ... any others? ;-)

    -Kenneth

    PS Time to restore my old MBR!


    --
    To UNSUBSCRIBE, email to [email]debian-user-requestlists.debian.org[/email]
    with a subject of "unsubscribe". Trouble? Contact [email]listmasterlists.debian.org[/email]
    Kenneth Jacker Guest

  5. #5

    Default Re: LILO --> GRUB

    ar> Err, it is 446 :)

    Made no difference ... grub-install *still* gives the error message
    and exits ...

    -Kenneth


    --
    To UNSUBSCRIBE, email to [email]debian-user-requestlists.debian.org[/email]
    with a subject of "unsubscribe". Trouble? Contact [email]listmasterlists.debian.org[/email]
    Kenneth Jacker Guest

  6. #6

    Default Re: LILO --> GRUB

    * Kenneth Jacker (khjbe.cs.appstate.edu) [030707 09:47]:
    > km> I recommend making a boot floppy:
    >
    > km> [url]http://www.linuxjournal.com/article.php?sid=4622[/url]
    >
    > Well I was able to make the boot floppy ...
    >
    > But *now*, I can't even run "grub-install /dev/hda" without an error
    > message:
    >
    > /dev/hda does not have any corresponding BIOS drive
    What does /boot/grub/device.map look like?

    If it's messed up, you can try grub-install's --recheck option to fix
    it.

    good times,
    Vineet
    --
    [url]http://www.doorstop.net/[/url]
    --
    One nation, indivisible, with equality, liberty, and justice for all.

    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.2.1 (GNU/Linux)

    iD8DBQE/CyyD1nIkYEQE+iMRAmMoAKCE79zEoD804Ecg4wxjYIWadX4TMQ Cgga4g
    RgW3qEINEFtNs6oyvo0a/FM=
    =qAqQ
    -----END PGP SIGNATURE-----

    Vineet Kumar Guest

Similar Threads

  1. RH9 x86 Setup issues - GRUB/LILO do not work
    By drhg in forum Linux Setup, Configuration & Administration
    Replies: 4
    Last Post: October 1st, 05:59 AM
  2. Bake grub.conf into MBR (like lilo)
    By Bill in forum Linux Setup, Configuration & Administration
    Replies: 3
    Last Post: August 15th, 01:53 PM
  3. Booting 2nd HDD from Lilo
    By Darsin in forum Linux Setup, Configuration & Administration
    Replies: 5
    Last Post: August 15th, 07:33 AM
  4. Lilo Problems
    By Jefferson Cowart in forum Debian
    Replies: 7
    Last Post: August 12th, 05:10 AM
  5. Understanding LILO
    By Andrés Roldán in forum Debian
    Replies: 0
    Last Post: July 29th, 08:00 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