LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-12-2007, 09:40 AM   #1
jgombos
Member
 
Registered: Jul 2003
Posts: 256

Rep: Reputation: 32
**solved** GRUB boot floppy gets "Error 17"


I made a GRUB floppy using this process, I see the following when I boot the floppy:
Code:
GRUB Loading stage1.5.

GRUB loading, please wait...
Error 17
Then it simply hangs. If I install linux to a hard drive along with GRUB, the hard drive boot gets the same error.

This machine has no problems booting SBM-based code, like the SBM floppy, or XOSL from the HDD. But both LILO and GRUB cannot boot. The problem has to be pretty fundamental, because the GRUB floppy is just a couple binary files w/out a configuration.

Last edited by jgombos; 03-12-2007 at 09:31 PM.
 
Old 03-12-2007, 10:11 AM   #2
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
From the GRUB manual itself...
Quote:
17 : Cannot mount selected partition
This error is returned if the partition requested exists, but the filesystem type cannot be recognized by GRUB.
 
Old 03-12-2007, 10:13 AM   #3
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
Error 17 :
Cannot mount selected partition.
This error is returned if the partition requested exists, but the
filesystem type cannot be recognized by GRUB.

More information is needed from you.

Which distro are you trying to boot?

What steps did you take to partition and format the drive before installation, or during the installation of said distro?
 
Old 03-12-2007, 10:13 AM   #4
almatic
Member
 
Registered: Mar 2007
Distribution: Debian
Posts: 547

Rep: Reputation: 67
does this problem persist if you install grub the 'normal' way on the floppy ?
(root (hd...), setup (fd0), look up the devices in the devices.map in the grub folder)
 
Old 03-12-2007, 11:16 AM   #5
jgombos
Member
 
Registered: Jul 2003
Posts: 256

Original Poster
Rep: Reputation: 32
Quote:
Originally Posted by Arow
This error is returned if the partition requested exists, but the filesystem type cannot be recognized by GRUB.
I tried it with both EXT2 and EXT3 volumes.
Quote:
Originally Posted by bigrigdriver
Error 17 :
Cannot mount selected partition.
This error is returned if the partition requested exists, but the
filesystem type cannot be recognized by GRUB.

More information is needed from you.

Which distro are you trying to boot?

What steps did you take to partition and format the drive before installation, or during the installation of said distro?
This is DSL linux. I partitioned the drive as follows:
/dev/hda1 linux (type 83)
/dev/hda2 swap (type 82)

Then I ran mkswap /dev/hda2, followed by dslinstall. The DSL install went fine, and I chose LILO and GRUB each on different attempts. On other hardware, this automated approach has worked.

I was expecting the boot floppy to work, because it doesn't depend on the hard drive even being present. AFAIK, the floppy should just bring me to a GRUB> prompt.
Quote:
Originally Posted by almatic
does this problem persist if you install grub the 'normal' way on the floppy ?
(root (hd...), setup (fd0), look up the devices in the devices.map in the grub folder)
In the documentation, there is a 'natural' approach, and a 'grub-install' approach. I followed the natural approach to make the boot floppy- downloaded the latest GRUB Legacy from CVS, compiled it (on a different machine), and used 'dd' to create a floppy from the stage1 and stage2 files. I didn't have to do anything with devices.map or those devices that you list. After doing a 'configure && make' the stage files are ready to go.
 
Old 03-12-2007, 12:08 PM   #6
almatic
Member
 
Registered: Mar 2007
Distribution: Debian
Posts: 547

Rep: Reputation: 67
you were saying in your first post that your hd-install of grub already failed. If I understand you correctly, you then rawcopied the misconfigured binary files onto the floppy (according to the link you posted). This cannot work as this method assumes a proper configuration of grub.

Please post the content of menu.lst and device.map. Both are located in /boot/grub
 
Old 03-12-2007, 12:25 PM   #7
almatic
Member
 
Registered: Mar 2007
Distribution: Debian
Posts: 547

Rep: Reputation: 67
cd /usr/lib/grub/i386-pc

sorry, my mistake, I have overseen this line in your link. I assumed you were copying the files from /etc/boot.
You want to use a completely unconfigured grub. You are right, the grub prompt should show up when booting from the
floppy created this way. Forget what I posted above ...
 
Old 03-12-2007, 09:21 PM   #8
jgombos
Member
 
Registered: Jul 2003
Posts: 256

Original Poster
Rep: Reputation: 32
I actually created the floppy twice. The first time, I grabbed the already built stage files from /usr/lib/grub/i386-pc of the DSL installation, and got the error 17. The second time, I downloaded the latest CVS version and built it on a running machine. I imaged the clean unconfigured stage files to a floppy, which still resulted in the error 17. So I'm puzzled as to why I can't boot such a generic version of GRUB and get a GRUB shell.

BTW, this is a strange machine when it comes to booting. It cannot boot a bootable CD either - not without circumventing the BIOS. To boot a DSL linux CD (which uses ISOLINUX), I must boot a SBM floppy, and then select the CD drive from the menu in order to boot the CD.
 
Old 03-12-2007, 09:30 PM   #9
jgombos
Member
 
Registered: Jul 2003
Posts: 256

Original Poster
Rep: Reputation: 32
Solved!

You guys probably never would have guessed what my problem was: The HDD geometry was erroneously set in the BIOS.



Linux distrusts the BIOS drive geometry, thus ignores it. I never thought to make sure that the geometry was properly set in the BIOS. Even though the BIOS thought the 428.1MB drive was 2421MB, fdisk still saw the correct size - so I didn't suspect any addressing problems. Well GRUB and LILO must have be trusting the BIOS. Once I corrected the HDD geometry, GRUB worked correctly.

I wonder if GRUB 2 will be fixing this. AFAIK, there is no reason to trust the BIOS.

In case someone else runs into this with LILO, the error was a lengthy repitition of "99 99 99 99 99 99".

Last edited by jgombos; 03-12-2007 at 10:23 PM.
 
  


Reply

Tags
grub



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
"Error booting operating system" Repairing GRUB. SUSE 10.2 and XP dual boot Arma12 SUSE / openSUSE 11 01-28-2007 04:26 PM
uninstall boot loader "Lilo" install "Grub" sethis Linux - Newbie 6 11-30-2006 09:32 AM
Boot problem: "GRUB Loading stage2read Error" after installing PCI Ethernet card nsyng Fedora - Installation 1 06-06-2005 06:53 AM
"GRUB Geom Error" on boot...What does this mean? arctic123 Linux - Software 1 03-07-2005 05:53 PM
Error at boot after GRUB : last message "apm:BIOS version 1.2 flags 0x03" OmniXBro Mandriva 2 04-10-2004 12:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:49 AM.

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
Open Source Consulting | Domain Registration