LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-09-2004, 05:47 AM   #1
agmorgan
LQ Newbie
 
Registered: Aug 2003
Location: Lurking
Distribution: Lycoris
Posts: 3

Rep: Reputation: 0
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
 
Old 04-09-2004, 06:32 AM   #2
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 47
Try changing /dev/hda6 at the end of the kernel line to hda8
 
Old 04-09-2004, 07:31 AM   #3
agmorgan
LQ Newbie
 
Registered: Aug 2003
Location: Lurking
Distribution: Lycoris
Posts: 3

Original Poster
Rep: Reputation: 0
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.
 
Old 04-09-2004, 07:41 AM   #4
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 47
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
 
Old 04-11-2004, 10:26 AM   #5
agmorgan
LQ Newbie
 
Registered: Aug 2003
Location: Lurking
Distribution: Lycoris
Posts: 3

Original Poster
Rep: Reputation: 0
Well the topic is not quite resolved, but you've got me going in the right direction.
hd0,1 is correct, thanks.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
need grub menu.lst example pk108 Mandriva 4 12-11-2004 07:45 PM
grub.conf vs. menu.lst netstv Linux - General 3 11-24-2004 07:19 PM
Grub, can someone posts their Menu.lst please webwolf70 cAos 6 10-21-2004 01:37 AM
grub.conf vs menu.lst linmix Linux - Software 2 08-26-2004 04:17 PM
grub.conf is menu.lst??? zombyLINUX Linux - General 4 03-31-2004 09:12 PM


All times are GMT -5. The time now is 09:24 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration