Re: Grub won't boot to linux partion

From: Jesse Benton (jessebent_at_netscape.net)
Date: 04/28/04


Date: Wed, 28 Apr 2004 04:08:24 -0400

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.
>
>



Relevant Pages

  • Needed help with Linux installation
    ... Last week I had a virus attack and had to re install windows again. ... install red hat Linux 9.0 on the existing Linux partitions. ... ignoring may cause warning problems with some boot loaders. ... As a matter of fat i had used partition magic 8.0 to create a new ...
    (comp.os.linux.setup)
  • Re: ext3 FASTER than reiserfs
    ... > boot without passing the parameter if something bad happens. ... # Note that you do not have to rerun grub after making changes to this file ... You have a /boot partition. ... title Red Hat Linux ...
    (linux.redhat.misc)
  • Re: compile+link Fujitsu Linux
    ... IDENTIFICATION DIVISION. ... DISPLAY "THE END - ACCEPTING ONE BYTE". ... Red Hat Linux 7.2, Locale C ...
    (comp.lang.cobol)
  • How do you reset the Master Boot Record?
    ... I have a partition on my computer on which I have just replaced ... Windows 98 with Windows XP. ... so that I cannot load up Red Hat Linux on the other partition. ... How do I reset the master boot record? ...
    (comp.os.linux.setup)
  • compile+link Fujitsu Linux
    ... I am evaluating Fujitsu NetCOBOL for Linux. ... IDENTIFICATION DIVISION. ... DISPLAY "THE END - ACCEPTING ONE BYTE". ... Red Hat Linux 7.2, Locale C ...
    (comp.lang.cobol)