Grub won't boot to linux partion - Redhat

This is a discussion on Grub won't boot to linux partion - Redhat ; I recently installed Ferdora, this was an upgrade from RH 7.3. Grub worked fine in RH 7.3 but no longer see my Linux partion in Fedora. This is the way my /ect grub.conf reads. It worked before what am I ...

+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 20 of 25

Thread: Grub won't boot to linux partion

  1. Grub won't boot to linux partion

    I recently installed Ferdora, this was an upgrade from RH 7.3. Grub
    worked fine in RH 7.3 but no longer see my Linux partion in Fedora.
    This is the way my /ect grub.conf reads. It worked before what am I
    missing? This system works and boot fine off a floppy.
    Thanks

    > #boot=/dev/hda
    > default=0
    > timeout=10
    > splashimage=(hd0,1)/boot/grub/splash.xpm.gz
    >
    > title WINDOWS 98
    > rootnoverify (hd0,0)
    > chainloader +1
    > title Fedora Core (2.4.22-1.2115.nptl)
    > root (hd0,4)
    > kernel /boot/vmlinuz-2.4.22-1.2115.nptl ro root=LABEL=/ hdd=ide-scsi
    > initrd /boot/initrd-2.4.22-1.2115.nptl.img



  2. Re: Grub won't boot to linux partion

    Jesse Benton wrote:

    > I recently installed Ferdora, this was an upgrade from RH 7.3. Grub
    > worked fine in RH 7.3 but no longer see my Linux partion in Fedora.
    > This is the way my /ect grub.conf reads. It worked before what am I
    > missing? This system works and boot fine off a floppy.
    > Thanks
    >
    >> #boot=/dev/hda
    >> default=0
    >> timeout=10
    >> splashimage=(hd0,1)/boot/grub/splash.xpm.gz
    >>
    >> title WINDOWS 98
    >> rootnoverify (hd0,0)
    >> chainloader +1
    >> title Fedora Core (2.4.22-1.2115.nptl)
    >> root (hd0,4)
    >> kernel /boot/vmlinuz-2.4.22-1.2115.nptl ro root=LABEL=/ hdd=ide-scsi
    >> initrd /boot/initrd-2.4.22-1.2115.nptl.img


    Have you tried it without the hdd=ide-scsi option? (And throw in vga=791 as
    well to get a pretty penguin.)
    Also, my grub doesn't have /boot. Isn't that a redundant part?



    Pip

  3. Re: Grub won't boot to linux partion

    On Thu, 22 Apr 2004 01:56:25 -0400, Jesse Benton wrote:

    > I recently installed Ferdora, this was an upgrade from RH 7.3. Grub
    > worked fine in RH 7.3 but no longer see my Linux partion in Fedora. This
    > is the way my /ect grub.conf reads. It worked before what am I missing?
    > This system works and boot fine off a floppy. Thanks
    >
    >



    >> kernel /boot/vmlinuz-2.4.22-1.2115.nptl ro root=LABEL=/ hdd=ide-scsi
    >> initrd /boot/initrd-2.4.22-1.2115.nptl.img


    Use the drive/partition instead of the partition label, replace
    'root=LABEL=/' with 'root=/dev/hda5' and you should not need the '/boot'
    portion in either of the two lines.

    >> kernel /vmlinuz-2.4.22-1.2115.nptl ro root=/dev/hda5 hdd=ide-scsi
    >> initrd /initrd-2.4.22-1.2115.nptl.img



    --
    Posted under the XFree86 v.1.0 license
    Copyright remains with the author

  4. Re: Grub won't boot to linux partion

    Pip and Lenard,
    I tried both of your suggestions, and it still fails to see my
    partition. I get to the splash screen and select Ferdora. Then it reads
    root (0,4) partition does not exist error code 22 hit any key to
    continue. I've even tried hdc2, which is what the boot disk says it is
    booting to and I get the same results. root(0,4) worked for before this.
    Now I'm lost.

    Lenard wrote:
    > On Thu, 22 Apr 2004 01:56:25 -0400, Jesse Benton wrote:
    >
    >
    >>I recently installed Ferdora, this was an upgrade from RH 7.3. Grub
    >>worked fine in RH 7.3 but no longer see my Linux partion in Fedora. This
    >>is the way my /ect grub.conf reads. It worked before what am I missing?
    >>This system works and boot fine off a floppy. Thanks
    >>
    >>

    >
    >
    >
    >>> kernel /boot/vmlinuz-2.4.22-1.2115.nptl ro root=LABEL=/ hdd=ide-scsi
    >>> initrd /boot/initrd-2.4.22-1.2115.nptl.img

    >
    >
    > Use the drive/partition instead of the partition label, replace
    > 'root=LABEL=/' with 'root=/dev/hda5' and you should not need the '/boot'
    > portion in either of the two lines.
    >
    >
    >>> kernel /vmlinuz-2.4.22-1.2115.nptl ro root=/dev/hda5 hdd=ide-scsi
    >>> initrd /initrd-2.4.22-1.2115.nptl.img

    >
    >
    >



  5. Re: Grub won't boot to linux partion

    On Fri, 23 Apr 2004 01:51:58 -0400, Jesse Benton wrote:

    > Pip and Lenard,
    > I tried both of your suggestions, and it still fails to see my
    > partition. I get to the splash screen and select Ferdora. Then it reads
    > root (0,4) partition does not exist error code 22 hit any key to
    > continue. I've even tried hdc2, which is what the boot disk says it is
    > booting to and I get the same results. root(0,4) worked for before this.
    > Now I'm lost.


    Try booting the system with the boot disk then as root;

    /sbin/grub-install --recheck /dev/hdc2

    But check the boot floppy's boot.msg (??) file first to be sure.

    It would be nice to see the output of both 'fdisk -l /dev/hd?' and 'cat
    /etc/fstab' without the quotes from the console or xterm session.


    --
    Posted under the XFree86 v.1.0 license
    Copyright remains with the author

  6. Re: Grub won't boot to linux partion

    Jesse Benton wrote:
    > I recently installed Ferdora, this was an upgrade from RH 7.3. Grub
    > worked fine in RH 7.3 but no longer see my Linux partion in Fedora.
    > This is the way my /ect grub.conf reads. It worked before what am I
    > missing? This system works and boot fine off a floppy.
    > Thanks
    >
    >> #boot=/dev/hda
    >> default=0
    >> timeout=10
    >> splashimage=(hd0,1)/boot/grub/splash.xpm.gz
    >>
    >> title WINDOWS 98
    >> rootnoverify (hd0,0)
    >> chainloader +1
    >> title Fedora Core (2.4.22-1.2115.nptl)
    >> root (hd0,4)
    >> kernel /boot/vmlinuz-2.4.22-1.2115.nptl ro root=LABEL=/ hdd=ide-scsi
    >> initrd /boot/initrd-2.4.22-1.2115.nptl.img

    >
    >

    Hello,

    I suggest to investigate the (hd0,4) and verify or tried to recall that
    your actual booting kernel exist on the first hard drive and the 4th
    partition. Maybe this had been changed since the upgrade??? Hope this
    might help.

    -Jason

  7. Re: Grub won't boot to linux partion

    Lenard,
    Here is my /etc/fstab file. Fdisk kept saying bad command. I tried
    using 1,1 and 1,4 but they still didn't work.This system only has one
    hard drive anyway. I know GRUB needs to start on partion 4 and the 0
    means the first hard drive.
    Thanks in advance for your help

    Jesse


    LABEL=/ / ext3 defaults 1 1
    none /dev/pts devpts gid=5,mode=620 0 0
    none /proc proc defaults 0 0
    none /dev/shm tmpfs defaults 0 0
    /dev/hdc3 swap swap defaults 0 0
    /dev/fd0 /mnt/floppy auto
    noauto,owner,kudzu 0 0
    /dev/scd0 /mnt/cdromscsi iso9660 noauto,user,ro 0 0
    /dev/hdc1 /mnt/dos vfat defaults 0 0


    Lenard wrote:
    > On Fri, 23 Apr 2004 01:51:58 -0400, Jesse Benton wrote:
    >
    >
    >>Pip and Lenard,
    >> I tried both of your suggestions, and it still fails to see my
    >>partition. I get to the splash screen and select Ferdora. Then it reads
    >>root (0,4) partition does not exist error code 22 hit any key to
    >>continue. I've even tried hdc2, which is what the boot disk says it is
    >>booting to and I get the same results. root(0,4) worked for before this.
    >>Now I'm lost.

    >
    >
    > Try booting the system with the boot disk then as root;
    >
    > /sbin/grub-install --recheck /dev/hdc2
    >
    > But check the boot floppy's boot.msg (??) file first to be sure.
    >
    > It would be nice to see the output of both 'fdisk -l /dev/hd?' and 'cat
    > /etc/fstab' without the quotes from the console or xterm session.
    >
    >



  8. Re: Grub won't boot to linux partion

    Jesse Benton wrote:
    > Lenard,
    > Here is my /etc/fstab file. Fdisk kept saying bad command.


    You normally say /sbin/fdisk (and do it as root). The first thing it
    says when coming up is to type "m" for help. If you do that, it gives
    you a list of valid commands. Command "p" will "print" your partition table.

    If none of that happens, you have to solve that problem first.

    > I tried
    > using 1,1 and 1,4 but they still didn't work.


    fdisk will not like those as commands. If you put those into
    /boot/grub/grub.conf, who knows? My grub.conf looks like this (on this
    machine):

    # grub.conf generated by anaconda
    #
    # Note that you do not have to rerun grub after making changes to this file
    # NOTICE: You have a /boot partition. This means that
    # all kernel and initrd paths are relative to /boot/, eg.
    # root (hd0,0)
    # kernel /vmlinuz-version ro root=/dev/hda3
    # initrd /initrd-version.img
    #boot=/dev/hda
    default=0
    timeout=15
    splashimage=(hd0,0)/grub/splash.xpm.gz
    title Red Hat Enterprise Linux ES (2.4.21-9.0.3.ELsmp)
    root (hd0,0)
    kernel /vmlinuz-2.4.21-9.0.3.ELsmp ro root=LABEL=/
    initrd /initrd-2.4.21-9.0.3.ELsmp.img
    title Red Hat Enterprise Linux ES (2.4.21-9.0.3.EL)
    root (hd0,0)
    kernel /vmlinuz-2.4.21-9.0.3.EL ro root=LABEL=/
    initrd /initrd-2.4.21-9.0.3.EL.img
    title Red Hat Enterprise Linux ES (2.4.21-9.0.1.ELsmp)
    root (hd0,0)
    kernel /vmlinuz-2.4.21-9.0.1.ELsmp ro root=LABEL=/
    initrd /initrd-2.4.21-9.0.1.ELsmp.img

    You may wish to compare this with yours. But you will have to know where
    your boot (or root) partition is. Just guessing can take a long time.

    > This system only has one
    > hard drive anyway. I know GRUB needs to start on partion 4 and the 0
    > means the first hard drive.
    > Thanks in advance for your help
    >
    > Jesse
    >
    >
    > LABEL=/ / ext3 defaults 1 1
    > none /dev/pts devpts gid=5,mode=620 0 0
    > none /proc proc defaults 0 0
    > none /dev/shm tmpfs defaults 0 0
    > /dev/hdc3 swap swap defaults 0 0
    > /dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0
    > /dev/scd0 /mnt/cdromscsi iso9660 noauto,user,ro 0 0
    > /dev/hdc1 /mnt/dos vfat defaults
    > 0 0
    >

    Mine works with no problem. Here is /etc/fstab:
    LABEL=/ / ext3 defaults 1 1
    LABEL=/boot /boot ext2 defaults 1 2
    LABEL=/dataA /dataA ext2 defaults 1 2
    LABEL=/data0 /data0 ext2 defaults 1 2
    LABEL=/data1 /data1 ext2 defaults 1 2
    LABEL=/data2 /data2 ext2 defaults 1 2
    LABEL=/data3 /data3 ext2 defaults 1 2
    none /dev/pts devpts gid=5,mode=620 0 0
    LABEL=/home /home ext3 defaults,usrquota 1 2
    LABEL=/opt /opt ext3 defaults 1 2
    none /proc proc defaults 0 0
    none /dev/shm tmpfs defaults 0 0
    LABEL=/tmp /tmp ext3 defaults,usrquota 1 2
    LABEL=/usr /usr ext3 defaults 1 2
    LABEL=/usr/local /usr/local ext3 defaults 1 2
    LABEL=/usr/src /usr/src ext3 defaults 1 2
    LABEL=/var /var ext3 defaults,usrquota 1 2
    /dev/sdd2 swap swap defaults,pri=15 0 0
    /dev/sdc2 swap swap defaults,pri=15 0 0
    /dev/sdb2 swap swap defaults,pri=15 0 0
    /dev/sda2 swap swap defaults,pri=15 0 0
    /dev/cdrom /mnt/cdrom udf,iso9660 noauto,owner,kudzu,ro 0 0
    /dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0

    and here is fdisk output (for drive /dev/hda only. There are four other
    hard drives on a SCSI controller.

    Disk /dev/hda: 81.9 GB, 81964302336 bytes
    255 heads, 63 sectors/track, 9964 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes


    Device Boot Start End Blocks Id System
    /dev/hda1 * 1 49 393561 83 Linux
    /dev/hda2 50 1354 10482412+ 83 Linux
    /dev/hda3 1355 1615 2096482+ 83 Linux
    /dev/hda4 1616 9964 67063342+ f Win95 Ext'd (LBA)
    /dev/hda5 1616 2659 8385898+ 83 Linux
    /dev/hda6 2660 3703 8385898+ 83 Linux
    /dev/hda7 3704 4225 4192933+ 83 Linux
    /dev/hda8 4226 4747 4192933+ 83 Linux
    /dev/hda9 4748 5073 2618563+ 83 Linux
    /dev/hda10 5074 5196 987966 83 Linux

    Note that /dev/hda1 is the /boot partition. Since you do not have a
    separate boot partition, you will probably have fdisk set hda? to bootable.

    --
    .~. Jean-David Beyer Registered Linux User 85642.
    /V\ Registered Machine 241939.
    /( )\ Shrewsbury, New Jersey http://counter.li.org
    ^^-^^ 04:50:00 up 2 days, 5:32, 5 users, load average: 4.14, 4.03, 4.07


  9. Re: Grub won't boot to linux partion

    On Sun, 25 Apr 2004 01:12:22 -0400, Jesse Benton wrote:

    > Lenard,
    > Here is my /etc/fstab file. Fdisk kept saying bad command. I tried
    > using 1,1 and 1,4 but they still didn't work.This system only has one
    > hard drive anyway. I know GRUB needs to start on partion 4 and the 0
    > means the first hard drive.


    Try using '/sbin/fdisk -l /dev/hdc' without the quotes, that's the
    lowercase letter 'L' and not the number one in the command.

    You might want to try (instead of or in addition to fdisk);

    /sbin/sfdisk -l -V /dev/hdc ;again it's the lowercase letter 'L' here.


    --
    "In short, without this exclusive franchise, called the Windows API,
    we would have been dead a long time ago." M$ Senior VP Bob Muglia '96

  10. Re: Grub won't boot to linux partion

    Jean-David,
    Here is my fdisk, hda1 came up as unreadable so I used what the floppy
    uses to boot to. This is a single 40 gig hd with Win98 on the first 26
    gig, linux using the rest. Any ideas?

    Thank in advance for any help

    Disk /dev/hdc1: 26.2 GB, 26222160384 bytes
    255 heads, 63 sectors/track, 3187 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes

    Device Boot Start End Blocks Id System
    /dev/hdc1p1 ? 120513 235786 925929529+ 68 Unknown
    Partition 1 does not end on cylinder boundary.
    /dev/hdc1p2 ? 82801 116350 269488144 79 Unknown
    Partition 2 does not end on cylinder boundary.
    /dev/hdc1p3 ? 33551 120595 699181456 53 OnTrack DM6 Aux3
    Partition 3 does not end on cylinder boundary.
    /dev/hdc1p4 ? 86812 86813 10668+ 49 Unknown
    Partition 4 does not end on cylinder boundary.

    Partition table entries are not in disk order


  11. Re: Grub won't boot to linux partion

    Lenard,
    sfdisk came back with allot more usable info. Now how do I fix it?
    Thanks for your help

    Jesse


    # /sbin/sfdisk -l -V /dev/hdc

    Disk /dev/hdc: 4865 cylinders, 255 heads, 63 sectors/track
    Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0

    Device Boot Start End #cyls #blocks Id System
    /dev/hdc1 * 0+ 3187 3188- 25607578+ c Win95 FAT32 (LBA)
    /dev/hdc2 3188 4590 1403 11269597+ 83 Linux
    /dev/hdc3 4591 4863 273 2192872+ 82 Linux swap
    /dev/hdc4 0 - 0 0 0 Empty
    /dev/hdc: OK


    Lenard wrote:
    using '/sbin/fdisk -l /dev/hdc' without the quotes, that's the
    > lowercase letter 'L' and not the number one in the command.
    >
    > You might want to try (instead of or in addition to fdisk);
    >
    > /sbin/sfdisk -l -V /dev/hdc ;again it's the lowercase letter 'L' here.
    >
    >



  12. Re: Grub won't boot to linux partion

    On Tue, 27 Apr 2004 02:16:15 -0400, Jesse Benton wrote:

    > Lenard,
    > sfdisk came back with allot more usable info. Now how do I fix it?
    > Thanks for your help
    >
    > Jesse
    >
    >
    > # /sbin/sfdisk -l -V /dev/hdc
    >
    > Disk /dev/hdc: 4865 cylinders, 255 heads, 63 sectors/track Units =
    > cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0
    >
    > Device Boot Start End #cyls #blocks Id System
    > /dev/hdc1 * 0+ 3187 3188- 25607578+ c Win95 FAT32 (LBA)
    > /dev/hdc2 3188 4590 1403 11269597+ 83 Linux /dev/hdc3
    > 4591 4863 273 2192872+ 82 Linux swap /dev/hdc4 0
    > - 0 0 0 Empty /dev/hdc: OK


    It looks like the partition hdc4 is an invalid choice to attempt booting
    with. the only partition that holds promise is hdc2. so when the GRUB
    Splash screen displayed, highlight the Linux boot option and press the 'e'
    key. Highlight the line that starts with 'kernel /boot/vmlinuz' and modify
    to read like;

    kernel /boot/vmlinuz-2.4.22-1.2115.nptl ro root=/dev/hdc2 hdd=ide-scsi

    If you still have problems, adjust the line to 'match' the boot floppy's
    files boot.msg and syslinux.cfg settings to boot with.


    --
    "In short, without this exclusive franchise, called the Windows API,
    we would have been dead a long time ago." M$ Senior VP Bob Muglia '96

  13. Re: Grub won't boot to linux partion

    This is what my floppy has as a syslinuz.cfg
    > default linux
    > prompt 1
    > display boot.msg
    > timeout 100
    > label linux
    > kernel vmlinuz
    > append initrd=initrd.img hda=ide-scsi root=/dev/hdc2


    After I changed the grub.conf ( using e let me edit it but not save). I
    still have the same problem root (0,4) no such partions.
    Here is my complete grub.cong which worked before
    # grub.conf generated by anaconda
    #
    # Note that you do not have to rerun grub after making changes to this file
    # NOTICE: You do not have a /boot partition. This means that
    # all kernel and initrd paths are relative to /, eg.
    # root (hd0,4)
    # kernel /boot/vmlinuz-version ro root=/dev/hda5
    # initrd /boot/initrd-version.img
    #boot=/dev/hda
    default=0
    timeout=10
    splashimage=(hd0,1)/boot/grub/splash.xpm.gz

    title WINDOWS 98
    rootnoverify (hd0,0)
    chainloader +1
    title Fedora Core (2.4.22-1.2115.nptl)
    root (hd0,4)
    kernel /vmlinuz-2.4.22-1.2115.nptl ro root=/dev/hdc2 hdd=ide-scsi
    initrd /initrd-2.4.22-1.2115.nptl.img
    # root (hd0,4)
    # kernel /boot/vmlinuz-2.4.18-3debug ro root=/dev/hda5 hdd=ide-scsi
    # initrd /boot/initrd-2.4.18-3debug.img
    #title Red Hat Linux (2.4.18-3)
    # root (hd0,4)
    # kernel /boot/vmlinuz-2.4.18-3 ro root=/dev/hda5 hdd=ide-scsi
    # initrd /boot/initrd-2.4.18-3.img
    #title Red Hat Linux (2.4.18-27.7.xdebug)
    # root (hd0,4)
    # kernel /boot/vmlinuz-2.4.18-27.7.xdebug ro root=/dev/hda5 hdd=ide-scsi
    # initrd /boot/initrd-2.4.18-27.7.xdebug.img
    #title Red Hat Linux (2.4.18-27.7.x)
    # root (hd0,4)
    # kernel /boot/vmlinuz-2.4.18-27.7.x ro root=/dev/hda5 hdd=ide-scsi
    # initrd /boot/initrd-2.4.18-27.7.x.img
    #title Red Hat Linux (2.4.20-20.7)
    # root (hd0,4)
    # kernel /boot/vmlinuz-2.4.20-20.7 ro root=/dev/hda5 hdd=ide-scsi
    # initrd /boot/initrd-2.4.20-20.7.img
    # not set up for nvidia card yet
    Your help is appreciated.

    Jesse

    Lenard wrote:
    > On Tue, 27 Apr 2004 02:16:15 -0400, Jesse Benton wrote:
    >
    >
    >>Lenard,
    >> sfdisk came back with allot more usable info. Now how do I fix it?
    >>Thanks for your help
    >>
    >>Jesse
    >>
    >>
    >># /sbin/sfdisk -l -V /dev/hdc
    >>
    >>Disk /dev/hdc: 4865 cylinders, 255 heads, 63 sectors/track Units =
    >>cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0
    >>
    >> Device Boot Start End #cyls #blocks Id System
    >>/dev/hdc1 * 0+ 3187 3188- 25607578+ c Win95 FAT32 (LBA)
    >>/dev/hdc2 3188 4590 1403 11269597+ 83 Linux /dev/hdc3
    >> 4591 4863 273 2192872+ 82 Linux swap /dev/hdc4 0
    >> - 0 0 0 Empty /dev/hdc: OK

    >
    >
    > It looks like the partition hdc4 is an invalid choice to attempt booting
    > with. the only partition that holds promise is hdc2. so when the GRUB
    > Splash screen displayed, highlight the Linux boot option and press the 'e'
    > key. Highlight the line that starts with 'kernel /boot/vmlinuz' and modify
    > to read like;
    >
    > kernel /boot/vmlinuz-2.4.22-1.2115.nptl ro root=/dev/hdc2 hdd=ide-scsi
    >
    > If you still have problems, adjust the line to 'match' the boot floppy's
    > files boot.msg and syslinux.cfg settings to boot with.
    >
    >



  14. Re: Grub won't boot to linux partion

    On Wed, 28 Apr 2004 04:08:24 -0400, Jesse Benton
    wrote:

    >This is what my floppy has as a syslinuz.cfg
    >> default linux
    >> prompt 1
    >> display boot.msg
    >> timeout 100
    >> label linux
    >> kernel vmlinuz
    >> append initrd=initrd.img hda=ide-scsi root=/dev/hdc2

    >
    >After I changed the grub.conf ( using e let me edit it but not save). I
    >still have the same problem root (0,4) no such partions.
    > Here is my complete grub.cong which worked before
    ># grub.conf generated by anaconda
    >#
    ># Note that you do not have to rerun grub after making changes to this file
    ># NOTICE: You do not have a /boot partition. This means that
    ># all kernel and initrd paths are relative to /, eg.
    ># root (hd0,4)
    ># kernel /boot/vmlinuz-version ro root=/dev/hda5
    ># initrd /boot/initrd-version.img
    >#boot=/dev/hda
    >default=0
    >timeout=10
    >splashimage=(hd0,1)/boot/grub/splash.xpm.gz
    >
    >title WINDOWS 98
    > rootnoverify (hd0,0)
    > chainloader +1
    >title Fedora Core (2.4.22-1.2115.nptl)
    > root (hd0,4)


    ^^^ NOTE: STILL POINTS TO (HD0,4) ^^^

    > kernel /vmlinuz-2.4.22-1.2115.nptl ro root=/dev/hdc2 hdd=ide-scsi
    > initrd /initrd-2.4.22-1.2115.nptl.img
    ># root (hd0,4)
    ># kernel /boot/vmlinuz-2.4.18-3debug ro root=/dev/hda5 hdd=ide-scsi
    ># initrd /boot/initrd-2.4.18-3debug.img
    >#title Red Hat Linux (2.4.18-3)
    ># root (hd0,4)
    ># kernel /boot/vmlinuz-2.4.18-3 ro root=/dev/hda5 hdd=ide-scsi
    ># initrd /boot/initrd-2.4.18-3.img
    >#title Red Hat Linux (2.4.18-27.7.xdebug)
    ># root (hd0,4)
    ># kernel /boot/vmlinuz-2.4.18-27.7.xdebug ro root=/dev/hda5 hdd=ide-scsi
    ># initrd /boot/initrd-2.4.18-27.7.xdebug.img
    >#title Red Hat Linux (2.4.18-27.7.x)
    ># root (hd0,4)
    ># kernel /boot/vmlinuz-2.4.18-27.7.x ro root=/dev/hda5 hdd=ide-scsi
    ># initrd /boot/initrd-2.4.18-27.7.x.img
    >#title Red Hat Linux (2.4.20-20.7)
    ># root (hd0,4)
    ># kernel /boot/vmlinuz-2.4.20-20.7 ro root=/dev/hda5 hdd=ide-scsi
    ># initrd /boot/initrd-2.4.20-20.7.img
    ># not set up for nvidia card yet
    >Your help is appreciated.
    >
    >Jesse
    >
    >Lenard wrote:
    >> On Tue, 27 Apr 2004 02:16:15 -0400, Jesse Benton wrote:
    >>
    >>
    >>>Lenard,
    >>> sfdisk came back with allot more usable info. Now how do I fix it?
    >>>Thanks for your help
    >>>
    >>>Jesse
    >>>
    >>>
    >>># /sbin/sfdisk -l -V /dev/hdc
    >>>
    >>>Disk /dev/hdc: 4865 cylinders, 255 heads, 63 sectors/track Units =
    >>>cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0
    >>>
    >>> Device Boot Start End #cyls #blocks Id System
    >>>/dev/hdc1 * 0+ 3187 3188- 25607578+ c Win95 FAT32 (LBA)
    >>>/dev/hdc2 3188 4590 1403 11269597+ 83 Linux /dev/hdc3
    >>> 4591 4863 273 2192872+ 82 Linux swap /dev/hdc4 0
    >>> - 0 0 0 Empty /dev/hdc: OK

    >>
    >>
    >> It looks like the partition hdc4 is an invalid choice to attempt booting
    >> with. the only partition that holds promise is hdc2. so when the GRUB
    >> Splash screen displayed, highlight the Linux boot option and press the 'e'
    >> key. Highlight the line that starts with 'kernel /boot/vmlinuz' and modify
    >> to read like;
    >>
    >> kernel /boot/vmlinuz-2.4.22-1.2115.nptl ro root=/dev/hdc2 hdd=ide-scsi
    >>
    >> If you still have problems, adjust the line to 'match' the boot floppy's
    >> files boot.msg and syslinux.cfg settings to boot with.
    >>
    >>



  15. Re: Grub won't boot to linux partion

    Mark,
    I'm missing your point. This is my first drive ( 0 ) and Grub starts at
    ( 4 ) if I'm reading the man grib right. If I'm missing something
    obvious, please let me now so I can kick myself in the pants.

    Jesse

    Mark Nagy wrote:
    > On Wed, 28 Apr 2004 04:08:24 -0400, Jesse Benton
    > wrote:
    >
    >
    >>This is what my floppy has as a syslinuz.cfg
    >>
    >>>default linux
    >>>prompt 1
    >>>display boot.msg
    >>>timeout 100
    >>>label linux
    >>> kernel vmlinuz
    >>> append initrd=initrd.img hda=ide-scsi root=/dev/hdc2

    >>
    >>After I changed the grub.conf ( using e let me edit it but not save). I
    >>still have the same problem root (0,4) no such partions.
    >> Here is my complete grub.cong which worked before
    >># grub.conf generated by anaconda
    >>#
    >># Note that you do not have to rerun grub after making changes to this file
    >># NOTICE: You do not have a /boot partition. This means that
    >># all kernel and initrd paths are relative to /, eg.
    >># root (hd0,4)
    >># kernel /boot/vmlinuz-version ro root=/dev/hda5
    >># initrd /boot/initrd-version.img
    >>#boot=/dev/hda
    >>default=0
    >>timeout=10
    >>splashimage=(hd0,1)/boot/grub/splash.xpm.gz
    >>
    >>title WINDOWS 98
    >> rootnoverify (hd0,0)
    >> chainloader +1
    >>title Fedora Core (2.4.22-1.2115.nptl)
    >> root (hd0,4)

    >
    >
    > ^^^ NOTE: STILL POINTS TO (HD0,4) ^^^
    >
    >
    >> kernel /vmlinuz-2.4.22-1.2115.nptl ro root=/dev/hdc2 hdd=ide-scsi
    >> initrd /initrd-2.4.22-1.2115.nptl.img
    >># root (hd0,4)
    >># kernel /boot/vmlinuz-2.4.18-3debug ro root=/dev/hda5 hdd=ide-scsi
    >># initrd /boot/initrd-2.4.18-3debug.img
    >>#title Red Hat Linux (2.4.18-3)
    >># root (hd0,4)
    >># kernel /boot/vmlinuz-2.4.18-3 ro root=/dev/hda5 hdd=ide-scsi
    >># initrd /boot/initrd-2.4.18-3.img
    >>#title Red Hat Linux (2.4.18-27.7.xdebug)
    >># root (hd0,4)
    >># kernel /boot/vmlinuz-2.4.18-27.7.xdebug ro root=/dev/hda5 hdd=ide-scsi
    >># initrd /boot/initrd-2.4.18-27.7.xdebug.img
    >>#title Red Hat Linux (2.4.18-27.7.x)
    >># root (hd0,4)
    >># kernel /boot/vmlinuz-2.4.18-27.7.x ro root=/dev/hda5 hdd=ide-scsi
    >># initrd /boot/initrd-2.4.18-27.7.x.img
    >>#title Red Hat Linux (2.4.20-20.7)
    >># root (hd0,4)
    >># kernel /boot/vmlinuz-2.4.20-20.7 ro root=/dev/hda5 hdd=ide-scsi
    >># initrd /boot/initrd-2.4.20-20.7.img
    >># not set up for nvidia card yet
    >>Your help is appreciated.
    >>



  16. Re: Grub won't boot to linux partion

    On Fri, 30 Apr 2004 01:37:02 -0400, Jesse Benton
    wrote:

    >Mark,
    > I'm missing your point. This is my first drive ( 0 ) and Grub starts at
    >( 4 ) if I'm reading the man grib right. If I'm missing something
    >obvious, please let me now so I can kick myself in the pants.
    >
    >Jesse


    Well, I'm not at your computer and sometimes things aren't what they
    seem so I don't want to get arrogant and insist that it's
    kick-in-the-pants obvious, but first, to illustrate what I mean, your
    old "root" statements, the commented-out ones, are consistent - i.e.,
    root (hd0,4) [...] root=/dev/hda5: what grub normally calls (hd0,4),
    mount normally calls /dev/hda5.

    But your new root (in mount's terms, as indicated by fstab and the
    uncommented "kernel" line in grub.conf) is /dev/hdc2, so, unless
    there's something even stranger going on, you appear to be using the
    second partition of the third hard disk (i.e., secondary master) as
    your root partition, not the fifth of the first (primary master).
    Unless you have a PCI IDE card that grub and mount number differently,
    or something like that, grub's "root" line should point to (hd2,1).
    Also, your fstab doesn't show a separate boot partition, so you might
    want to put "/boot" back in your "kernel" line before "/vmlinuz...",
    if in fact you have vmlinuz-2.4.22-1.2115.nptl in the /boot directory
    on your root partition.

  17. Re: Grub won't boot to linux partion

    Also - though it might not change the implications of what I just said
    for immediate practical purposes, /dev/hda5 isn't *necessarily* the
    fifth partition like I just loosely called it - it's the first logical
    partition under the first extended partition, which might or might not
    be the fifth partition overall. So if a logical partition got
    converted to a primary partition by some reconstruction of the
    partition table in the installation process (I don't know whether
    Fedora does that) and a disk got moved from the primary IDE controller
    to the secondary, what used to be /dev/hda5 could become /dev/hdc2.
    For what it's worth.

  18. Re: Grub won't boot to linux partion

    Mark,
    Thanks for taking the time to write. Under system tools all settings
    for my single hd are hdc1 fat32, hdc2 ext3, hdc3 linux-swap. At work I
    deal with so many operating systems I can feel I'm just missing
    something real simple here. In the past Grub pointed to (0,4) and now it
    doesn't seem to be able to find that partition. I'm more then welcome to
    any ideas.
    Jesse

    Mark Nagy wrote:
    > Also - though it might not change the implications of what I just said
    > for immediate practical purposes, /dev/hda5 isn't *necessarily* the
    > fifth partition like I just loosely called it - it's the first logical
    > partition under the first extended partition, which might or might not
    > be the fifth partition overall. So if a logical partition got
    > converted to a primary partition by some reconstruction of the
    > partition table in the installation process (I don't know whether
    > Fedora does that) and a disk got moved from the primary IDE controller
    > to the secondary, what used to be /dev/hda5 could become /dev/hdc2.
    > For what it's worth.



  19. Re: Grub won't boot to linux partion

    On Sat, 01 May 2004 02:01:31 -0400, Jesse Benton
    wrote:

    >Mark,
    > Thanks for taking the time to write. Under system tools all settings
    >for my single hd are hdc1 fat32, hdc2 ext3, hdc3 linux-swap. At work I
    >deal with so many operating systems I can feel I'm just missing
    >something real simple here. In the past Grub pointed to (0,4) and now it
    >doesn't seem to be able to find that partition. I'm more then welcome to
    >any ideas.
    >Jesse


    What is it you are trying to accomplish here? To boot from grub the
    FC1 installation that you booted from /dev/hdc2 by means of a floppy
    disk? If so, have you tried the changes to grub.conf I suggested in
    the prior post?

  20. Re: Grub won't boot to linux partion

    On Sat, 01 May 2004 02:01:31 -0400, Jesse Benton wrote:

    > Mark,
    > Thanks for taking the time to write. Under system tools all settings
    > for my single hd are hdc1 fat32, hdc2 ext3, hdc3 linux-swap. At work I
    > deal with so many operating systems I can feel I'm just missing
    > something real simple here. In the past Grub pointed to (0,4) and now it
    > doesn't seem to be able to find that partition. I'm more then welcome to
    > any ideas.


    Sorry about not getting back sooner (I was away at a training session, no
    Internet access allow) take the time a carefully think about what the
    facts are;

    You have a hard drive with three partitions, hdc1 (fat32), hdc2 (ext3) and
    hdc3 (linux-swap)

    Grub is attempting to use a partition (0,4) which is not present (the
    fifth partition on the first hard drive listed by the BIOS)

    Correct the errors in your grub.conf file;

    default=0
    timeout=10
    splashimage=(hd0,1)/boot/grub/splash.xpm.gz

    This is a very good clue here, notice the splash image is on the second
    partition of the first hard drive as reported by the BIOS (hd0,1).

    title WINDOWS 98
    rootnoverify (hd0,0)
    chainloader +1
    title Fedora Core (2.4.22-1.2115.nptl)
    root (hd0,4)

    Remember the fifth partition does not exist and the splash image is on the
    second partition.

    The corrected line should read like;

    root (hd0,2)
    kernel /vmlinuz-2.4.22-1.2115.nptl ro root=/dev/hdc2 hdd=ide-scsi


    --
    "In short, without this exclusive franchise, called the Windows API,
    we would have been dead a long time ago." M$ Senior VP Bob Muglia '96

+ Reply to Thread
Page 1 of 2 1 2 LastLast