LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Trouble With GRUB menu.lst Locating Kernel (https://www.linuxquestions.org/questions/linux-newbie-8/trouble-with-grub-menu-lst-locating-kernel-168053/)

agmorgan 04-09-2004 04:47 AM

Trouble With GRUB menu.lst Locating Kernel
 
My PC has Lycoris and Windows 98SE installed on it.
I have one 40 Gb drive with 5 partitions on it.
C: FAT16 (Small old partition)
D: FAT32 (Windows Installation)
E: FAT32 (Development Work)
F: FAT32 (Games)
Linux

Recently I messed up the MBR when trying to merge the C and D drives.
I managed to restore it OK using Partition Table Doctor but now I can only boot
using the Lycoris Boot Floppy.
I can boot to Windows fine but I cant boot to Linux and I cant make the changes
to the harddisk bootloader so that I dont have to rely on a floppy all the time either.

I keep getting the error message "Error 17: Cannot mount selected partition"
I think it is the 5th and 6th lines of menu.lst that is causing the error, but despite
trying various combinations of numbers I cant get it right.

Can someone work out what those lines should say?
I have included a couple of HD partition descriptions as well.

Once I can boot to Linux I then have to fix GRUB on the harddisk so that loads properly.....

GRUB menu.lst
Code:

timeout = 15
splashscreen = (fd0)/boot/message
default = 3
title = Linux rescue (harddisk)
root = (hd0,2)
kernel = /boot/vmlinuz-2.4.18-modular vga=274 noapic quiet root=/dev/hda6
title = Linux rescue (floppy)
root = (fd0)
kernel = /vmlinuz vga=274 noapic quiet root=/dev/hda8
title = Windows
chainloader = (hd0,1)+1
title = Windows 98
chainloader = (hd0,4)+1
title = Windows-2
chainloader = (hd0,5)+1

Ranish Partition Output
Code:

Ranish Partition Manager      Version 2.40.00          February 08, 2001

                  File                Starting        Ending      Partition
  # Type Row  System Type        Cyl Head Sect    Cyl Head Sect  Size [KB]

  0  MBR  Master Boot Record        0    0    1      0    0    1          0
  1  Pri  Unused                    0    0    2      0    0  63        31
  2 >Pri 1 Linux ext2fs              0    1    1      0  254  63      8,001
  3  Pri 2 DOS FAT-16                1    0    1    66  254  63    530,145
  4  Pri 3 VFAT Extended LBA        67    0    1  4,966  254  63 39,359,250
  5  + Log Windows FAT-32          67    1    1    719  254  63  5,245,191
  7  + Log Windows FAT-32          720    1    1  2,025  254  63 10,490,413
  9  + Log Windows FAT-32        2,026    1    1  3,330  254  63 10,482,381
  10  + Log Unused                3,331    0    1  3,331  254  63      8,032
  12  + Log Linux ext2fs          3,332    1    1  4,966  254  63 13,133,106
  13  Pri  Unused                4,967    0    1  4,981  254  63    120,487

Partition Table Doctor Output
Code:

|---Total space|--Total Cylinders|----Total Heads|----Sector|-----Total Sectors|
        39079 M              4982            255        63          80035830 

|Par|Act|System------|--------Start|----------End|--Lead Sec|Total Secs|-Space|
                          C  H  S      C  H  S                             
  1  Yes Linux ext2        0  1  1      0 254 63        63      16002      7
  2  No  FAT16            1  0  1    66 254 63      16065    1060290    517
    No  EXTEND          67  0  1  4966 254 63    1076355  78718500  38436
    No  [Free]        4967  0  1  4981 254 63  79794855    240975    117

|------- Extend  Infomation----------------------------------------------------|
  3  No  FAT32            67  1  1    719 254 63        63  10490382    5122
  4  No  FAT32          720  1  1  2025 254 63        63  20980827  10244
  5  No  FAT32          2026  1  1  3330 254 63        63  20964762  10236
    No  [Free]        3331  1  1  3331 254 63        63      16002      7
  6  No  Linux ext2    3332  1  1  4966 254 63        63  26266212  12825


leonscape 04-09-2004 05:32 AM

Try changing /dev/hda6 at the end of the kernel line to hda8

agmorgan 04-09-2004 06:31 AM

Ive iterated from /dev/hda0 to /dev/hda12 on the kernel line with no sucess
I keep getting the same Error 17.
When I change to numeric value in the root line I either get File not found or
Error 24 Attempt to access block outside partition
depending on what number I put in the kernel line.

Is it possible to get a command line to search manually for the files
i.e. before linux has been loaded?
I can get a DOS command line but that doesn't allow me to see the linux data.

leonscape 04-09-2004 06:41 AM

Yes in the menu you get when grub starts, you hit c this will give you grubs cammand line, and you can try diffrent commands to try and start your kernel.

But maybe you should also try diffrent root settings. as the error 17 says.

Quote:

This error is returned if the partition requested exists, but the filesystem type cannot be recognized by GRUB.
so try hd0,1 this should work....... I think :)

agmorgan 04-11-2004 09:26 AM

Well the topic is not quite resolved, but you've got me going in the right direction.
hd0,1 is correct, thanks.


All times are GMT -5. The time now is 01:17 PM.