. [ref][ref] > > /boot resides on /dev/hda1 > > / resides on /dev/hda3 > > > > If I boot from grub on the command line, and run these: > > grub> root (hd0,0) > > grub> setup (hd0)[/ref] > > You could try > grub> configfile grub/grub.conf > to see if it likes your config file. > > Also I would try "grub-install --recheck /dev/hda" > to see if it installs properly.[/ref] I just gave up on grub and installed lilo. That always seems to work for me. Thanks for all your help, folks. JC [allowsmilie] => 1 [showsignature] => 0 [ipaddress] => [iconid] => 0 [visible] => 1 [attach] => 0 [infraction] => 0 [reportthreadid] => 0 [isusenetpost] => 1 [msgid] => <6862a130.0311201214.571cedfa@posting.google.com> [ref] => <6862a130.0311191204.64556a8b@posting.google.com> [htmlstate] => on_nl2br [postusername] => John [ip] => new.1.pcnorb@sp [isdeleted] => 0 [usergroupid] => [membergroupids] => [displaygroupid] => [password] => [passworddate] => [email] => [styleid] => [parentemail] => [homepage] => [icq] => [aim] => [yahoo] => [msn] => [skype] => [showvbcode] => [showbirthday] => [usertitle] => [customtitle] => [joindate] => [daysprune] => [lastvisit] => [lastactivity] => [lastpost] => [lastpostid] => [posts] => [reputation] => [reputationlevelid] => [timezoneoffset] => [pmpopup] => [avatarid] => [avatarrevision] => [profilepicrevision] => [sigpicrevision] => [options] => [akvbghsfs_optionsfield] => [birthday] => [birthday_search] => [maxposts] => [startofweek] => [referrerid] => [languageid] => [emailstamp] => [threadedmode] => [autosubscribe] => [pmtotal] => [pmunread] => [salt] => [ipoints] => [infractions] => [warnings] => [infractiongroupids] => [infractiongroupid] => [adminoptions] => [profilevisits] => [friendcount] => [friendreqcount] => [vmunreadcount] => [vmmoderatedcount] => [socgroupinvitecount] => [socgroupreqcount] => [pcunreadcount] => [pcmoderatedcount] => [gmmoderatedcount] => [assetposthash] => [fbuserid] => [fbjoindate] => [fbname] => [logintype] => [fbaccesstoken] => [newrepcount] => [vbseo_likes_in] => [vbseo_likes_out] => [vbseo_likes_unread] => [temp] => [field1] => [field2] => [field3] => [field4] => [field5] => [subfolders] => [pmfolders] => [buddylist] => [ignorelist] => [signature] => [searchprefs] => [rank] => [icontitle] => [iconpath] => [avatarpath] => [hascustomavatar] => 0 [avatardateline] => [avwidth] => [avheight] => [edit_userid] => [edit_username] => [edit_dateline] => [edit_reason] => [hashistory] => [pagetext_html] => [hasimages] => [signatureparsed] => [sighasimages] => [sigpic] => [sigpicdateline] => [sigpicwidth] => [sigpicheight] => [postcount] => 5 [islastshown] => [isfirstshown] => [attachments] => [allattachments] => ) --> Grub installation got me scratchin' my head... - Linux Setup, Configuration & Administration

Grub installation got me scratchin' my head... - Linux Setup, Configuration & Administration

I'm more versed in using Lilo, so I deciced to get current. I decided to use Grub with this install of Gentoo <<--rocks. I'm having an issue with getting the grub.conf to pass the kernel var to the loader (even though I can still boot: I'm using lynx to post this). Here is my grub.conf: root (hd0,0) kernel (hd0,0)/boot/bzImage root=/dev/hda3 title Kernel 2.4.20-gentoo-r6 splashimage (hd0,0)/boot/grub/splash.xpm.gz /boot resides on /dev/hda1 / resides on /dev/hda3 If I boot from grub on the command line, and run these: grub> root (hd0,0) grub> setup (hd0) I get an okeedokee from grub, but when I ...

  1. #1

    Default Grub installation got me scratchin' my head...

    I'm more versed in using Lilo, so I deciced to get current. I decided
    to use
    Grub with this install of Gentoo <<--rocks.
    I'm having an issue with getting the grub.conf to pass the kernel var
    to the loader (even though I can still boot: I'm using lynx to post
    this). Here is my grub.conf:

    root (hd0,0)
    kernel (hd0,0)/boot/bzImage root=/dev/hda3
    title Kernel 2.4.20-gentoo-r6
    splashimage (hd0,0)/boot/grub/splash.xpm.gz

    /boot resides on /dev/hda1
    / resides on /dev/hda3

    If I boot from grub on the command line, and run these:
    grub> root (hd0,0)
    grub> setup (hd0)

    I get an okeedokee from grub, but when I reboot, I still have to
    manually
    type in the kernel parameters.

    Is there something obvious that I'm doing wrong? I've even dd'd the
    boot
    sector to zero's and started again:
    dd if=/dev/zero of=/dev/hda bs=466 count=1

    To no avail. Any help at all would be appreciated.
    John Guest

  2. #2

    Default Re: Grub installation got me scratchin' my head...

    On Wed, 19 Nov 2003 12:04:10 -0800, John Croson wrote:
     
    Your grub.conf should look more like this...

    #grub.conf
    default=0
    timeout=10
    splashimage (hd0,0)/boot/grub/splash.xpm.gz
    title Kernel 2.4.20-gentoo-r6
    root (hd0,0)
    kernel /boot/bzImage root=/dev/hda3

    Check this page for details:
    http://www.gnu.org/software/grub/manual/html_node/index.html

    --
    Douglas Mayne
    Douglas Guest

  3. #3

    Default Re: Grub installation got me scratchin' my head...

    John Croson wrote:
     

    Is your kernel really in /boot/boot/bzImage ?
     

    You could try
    grub> configfile grub/grub.conf
    to see if it likes your config file.

    Also I would try "grub-install --recheck /dev/hda"
    to see if it installs properly.


    --
    Timothy Murphy
    e-mail (<80k only): tim /at/ birdsnest.maths.tcd.ie
    tel: +353-86-2336090, +353-1-2842366
    s-mail: School of Mathematics, Trinity College, Dublin 2, Ireland
    Timothy Guest

  4. #4

    Default Re: Grub installation got me scratchin' my head...

    According to the docs, GNU/Linux uses kernel (hdx,x)/yourkernelpath
    syntax, not kernel /yourkernelpath.
    Both work, however, from the grub command line, but if I update my
    grub.conf, run grub,
    and pass root (hd0,0) and setup (hd0), it appears that the most
    important lines, kernel and root, aren't written to the MBR.
    If I make changes to the colors of the grub boot window, that works.
    Even the splashimage line doesn't seem to work.
    I wonder if this has anything to do with the fact that I can't use
    grub-install without the BIOS error.

    JC
     
    John Guest

  5. #5

    Default Re: Grub installation got me scratchin' my head...

    > > root (hd0,0) 
    >
    > Is your kernel really in /boot/boot/bzImage ?
    >[/ref]

    No, but even if I got that wrong, there is symlink that points back to /boot, i.e.:

    ls -la /boot

    boot --> .

     
    >
    > You could try
    > grub> configfile grub/grub.conf
    > to see if it likes your config file.
    >
    > Also I would try "grub-install --recheck /dev/hda"
    > to see if it installs properly.[/ref]


    I just gave up on grub and installed lilo. That always seems to work for me.

    Thanks for all your help, folks.

    JC
    John Guest

  6. #6

    Default Re: Grub installation got me scratchin' my head...

    On Wed, 19 Nov 2003 12:04:10 -0800, John Croson wrote:
     

    This should be "/boot/grub/menu.lst". The whole "grub.conf" thing is a
    stupid RedHat-ism. I'm guessing that Gentoo's GRUB tree isn't modified
    much (if at all) from the original tree, so all the stupid RedHat-isms do
    not apply. (Same on Debian, which I use.)

    --
    Derrik Pates
    net
    Derrik Guest

  7. #7

    Default Re: Grub installation got me scratchin' my head...

    On Wed, 19 Nov 2003 at 20:04 GMT, John Croson eloquently wrote: 
    Therefore boot is (hd0,0)
     
    Therefore / is (hd0,2) So the kernel line should be:

    kernel (hd0,2)/boot/bzImage root=/dev/hda3

    --
    N.Emile...
    --
    Registered Linux User # 125653 (http://counter.li.org) | Please remove
    Certified: 75% , 42% of which is tard. | '.invalid'
    http://www.thespark.com/test | to reply.
    Switch to: http://www.speakeasy.net/refer/190653
    ne... Guest

  8. #8

    Default Re: Grub installation got me scratchin' my head...

    On Wed, 19 Nov 2003 14:52:37 -0700, Douglas Mayne wrote:
     
    > Your grub.conf should look more like this...
    >
    > #grub.conf
    > default=0
    > timeout=10
    > splashimage (hd0,0)/boot/grub/splash.xpm.gz
    > title Kernel 2.4.20-gentoo-r6
    > root (hd0,0)
    > kernel /boot/bzImage root=/dev/hda3
    >
    > Check this page for details:
    > http://www.gnu.org/software/grub/manual/html_node/index.html
    >[/ref]
    This is correction to my previous post.

    Because the "boot" directory exists on its own
    partition, then the grub.conf should look more like this...

    #grub.conf
    default=0
    timeout=10
    splashimage (hd0,0)/grub/splash.xpm.gz
    title Kernel 2.4.20-gentoo-r6
    root (hd0,0)
    kernel /bzImage ro root=/dev/hda3

    For this case do not reference "boot" as part of the path when an
    entire partition is mounted as a directory. The path /boot/bzImage is
    valid once the linux kernel mounts it, but when grub is executing, paths
    are relative to their disk partition only.

    When you run the grub shell to setup the loader, it will
    report errors if it cannot find the "stage" files at the given path
    location. If this is off, then this is a hint that the kernel path may
    not be correct either.

    --
    Douglas Mayne
    Douglas Guest

Similar Threads

  1. grub installation problem
    By Rob Baxter in forum Linux / Unix Administration
    Replies: 2
    Last Post: November 24th, 09:11 PM
  2. Replies: 0
    Last Post: November 20th, 12:18 AM
  3. Displaying grub's installation info
    By Dan in forum Linux Setup, Configuration & Administration
    Replies: 2
    Last Post: November 11th, 03:09 PM
  4. new XP installation won't boot from grub
    By Jed in forum Linux Setup, Configuration & Administration
    Replies: 4
    Last Post: November 6th, 02:31 AM
  5. Injecting code into the <head></head> section
    By Brian W in forum ASP.NET General
    Replies: 10
    Last Post: July 2nd, 07:53 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