Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
GRUB Error 17 on start up???
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
smellycheeseboy
Apprentice
Apprentice


Joined: 15 May 2003
Posts: 263
Location: The Future

PostPosted: Fri Aug 01, 2003 1:59 am    Post subject: GRUB Error 17 on start up??? Reply with quote

I recently installed Gentoo from the stage 3 tarball onto my computer. I am dual booting Gentoo with Windows ME (which is probably the source or some of my problems ). The problem that I am having now is that every time I turn on my computer it comes up with the message

GRUB Loading stage1.5.

GRUB Loading Please Wait...
ERROR 17

The only way to get my computer to get past this is to put in the live cd and reboot from it. It only comes up with this error message after I shut down and not after I just reboot.

My computer is a Dell Dimension 8100 with a 1.5 Ghz pentium 4.

If anyone can help me out with this I would really appreciate it and you would save me a lot of headaches.
Back to top
View user's profile Send private message
Anacific
Apprentice
Apprentice


Joined: 05 Jun 2003
Posts: 210
Location: Toronto, Canada

PostPosted: Fri Aug 01, 2003 5:20 am    Post subject: Reply with quote

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


So, I suspect there's something wrong with your grub.conf file. Could you post the contents of it, please? :)

Fdisk summary would be nice too (list of all partitions & HDs)
_________________
warning: `class GroveImpl' only defines a private destructor and has no friends.
Back to top
View user's profile Send private message
smellycheeseboy
Apprentice
Apprentice


Joined: 15 May 2003
Posts: 263
Location: The Future

PostPosted: Mon Aug 04, 2003 12:49 am    Post subject: Reply with quote

My grub.conf file looks like this (which is how the Gentoo instructions told me to make it).

Quote:

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

title=Gentoo
root (hd0,2)
kernel (hd0,0)/boot/bzImage root=/dev/hda6 "hdd=ide-scsi"

title=Windows
root (hd0,0)
chainloader (hd0,0)+1


My Fdisk summary looks like this.

Quote:

Disk /dev/hda: 61.4 GB, 61492838400 bytes
255 heads, 63 sectors/track, 7476 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 637 5116671 b Win95 FAT32
/dev/hda2 638 7295 53477047+ f Win95 Ext'd (LBA)
Partition 2 does not end on cylinder boundary.
/dev/hda3 7295 7307 99727+ 83 Linux
/dev/hda4 7308 7370 506047+ 82 Linux swap
/dev/hda5 638 6502 47110581 b Win95 FAT32
/dev/hda6 6503 7294 6361708+ 83 Linux


Thanks for your help.
Back to top
View user's profile Send private message
cyrillic
Watchman
Watchman


Joined: 19 Feb 2003
Posts: 7313
Location: Groton, Massachusetts USA

PostPosted: Mon Aug 04, 2003 1:00 am    Post subject: Reply with quote

Your kernel line should start with "kernel (hd0,2)..."

Unless the kernel is located on your Windows partition.
Back to top
View user's profile Send private message
smellycheeseboy
Apprentice
Apprentice


Joined: 15 May 2003
Posts: 263
Location: The Future

PostPosted: Mon Aug 04, 2003 1:04 am    Post subject: Reply with quote

Sweet A. Thanks
Back to top
View user's profile Send private message
smellycheeseboy
Apprentice
Apprentice


Joined: 15 May 2003
Posts: 263
Location: The Future

PostPosted: Mon Aug 04, 2003 1:12 am    Post subject: Reply with quote

Changing that kernel line in the grub.conf didn't change anything. It still comes up with the error 17. Where can you find out where your kernel is located?
Back to top
View user's profile Send private message
cyrillic
Watchman
Watchman


Joined: 19 Feb 2003
Posts: 7313
Location: Groton, Massachusetts USA

PostPosted: Mon Aug 04, 2003 1:23 am    Post subject: Reply with quote

When you boot to the GRUB menu, press "c" to get a command prompt, then use GRUB's find command :
Code:
grub> find /boot/bzImage
grub> find /bzImage
grub> find /usr/src/linux/arch/i386/boot/bzImage

GRUB should respond with the partition it is located in.
If you really misplaced your kernel, you may need to (re)compile it.
Back to top
View user's profile Send private message
smellycheeseboy
Apprentice
Apprentice


Joined: 15 May 2003
Posts: 263
Location: The Future

PostPosted: Mon Aug 04, 2003 1:28 am    Post subject: Reply with quote

This is what grub says when I typed in those three things.

Quote:

grub> find /boot/bzImage
(hd0,2)

grub> find /bzImage
(hd0,2)

grub> find /usr/src/linux/arch/i386/boot/bzImage

Error 15: File not found
Back to top
View user's profile Send private message
cyrillic
Watchman
Watchman


Joined: 19 Feb 2003
Posts: 7313
Location: Groton, Massachusetts USA

PostPosted: Mon Aug 04, 2003 1:32 am    Post subject: Reply with quote

So, it should work if you do this from the GRUB prompt :
Code:
grub> root (hd0,2)
grub> kernel /bzImage
grub> boot
Back to top
View user's profile Send private message
smellycheeseboy
Apprentice
Apprentice


Joined: 15 May 2003
Posts: 263
Location: The Future

PostPosted: Tue Aug 05, 2003 2:58 am    Post subject: Reply with quote

I'm not sure if that changed anything but that error 17 thing keeps coming up.

Jason
Back to top
View user's profile Send private message
Dillinger
Apprentice
Apprentice


Joined: 27 Jul 2003
Posts: 226
Location: Huntington Beach, Ca

PostPosted: Tue Aug 05, 2003 8:05 am    Post subject: Reply with quote

It looks to me like hda3 is small enough to be the boot partition and hda4 is the root. If that's the case then it should look like this:
Code:

title=Gentoo
root (hd0,3)
kernel (hd0,2)/boot/bzImage root=/dev/hda6 "hdd=ide-scsi"


Give that a try.
Back to top
View user's profile Send private message
smellycheeseboy
Apprentice
Apprentice


Joined: 15 May 2003
Posts: 263
Location: The Future

PostPosted: Wed Aug 06, 2003 12:04 am    Post subject: Reply with quote

Well I changed that in my grub.conf file and that error 17 still comes up.

I was wondering if it was because there are two bootable partitions in the primary partitions section (hda1 thru hda4) and maybe I should switch the linux boot partition to something like hda7? Does that make any sense?

Jason
Back to top
View user's profile Send private message
cyrillic
Watchman
Watchman


Joined: 19 Feb 2003
Posts: 7313
Location: Groton, Massachusetts USA

PostPosted: Wed Aug 06, 2003 1:55 am    Post subject: Reply with quote

FYI, only the Windows bootloader cares about the "bootable" flag. GRUB and LILO can boot from any partition.

Which command is giving you the "error 17" ?
root (hd0,2)
or
kernel /bzImage
or
boot

or does the error only happen when you select Gentoo from the menu.
Back to top
View user's profile Send private message
smellycheeseboy
Apprentice
Apprentice


Joined: 15 May 2003
Posts: 263
Location: The Future

PostPosted: Wed Aug 06, 2003 6:20 am    Post subject: Reply with quote

I double checked and my Windows primary partition (/dev/hda1) is the only one that is checked bootable.

I'm not sure which command is giving me the error 17 because it doesn't even get to the grub boot menu. It does the Dell start screen and then says this:

Quote:
GRUB Loading stage1.5.

GRUB Loading Please Wait...
ERROR 17


Jason
Back to top
View user's profile Send private message
cyrillic
Watchman
Watchman


Joined: 19 Feb 2003
Posts: 7313
Location: Groton, Massachusetts USA

PostPosted: Wed Aug 06, 2003 10:45 pm    Post subject: Reply with quote

At this point, I would try reinstalling GRUB.
Boot with the LiveCD, mount your / and /boot partitions, chroot, then :
Code:
# grub
grub> root (hd0,2)
grub> setup (hd0)
grub> quit
# exit

Now unmount your partitions, reboot and hope for the GRUB menu to appear :roll:
Back to top
View user's profile Send private message
smellycheeseboy
Apprentice
Apprentice


Joined: 15 May 2003
Posts: 263
Location: The Future

PostPosted: Thu Aug 07, 2003 12:06 am    Post subject: Reply with quote

Alright I'll try that, but just to clear up one point. It only comes up with the error 17 when I turn the computer on. If I reboot then it works fine every time.

I have tried reinstalling GRUB but I'll try it again anyway. I'll let you know in a couple days.

Jason
Back to top
View user's profile Send private message
smellycheeseboy
Apprentice
Apprentice


Joined: 15 May 2003
Posts: 263
Location: The Future

PostPosted: Thu Aug 07, 2003 12:27 am    Post subject: Reply with quote

After I have booted from the LiveCD and mounted /, it won't let me mount /boot because it says
Code:
 can't find /boot in /etc/fstab or /etc/mtab
.

Also after both of these are mounted you do
Code:
chroot /
right?

Jason
Back to top
View user's profile Send private message
cyrillic
Watchman
Watchman


Joined: 19 Feb 2003
Posts: 7313
Location: Groton, Massachusetts USA

PostPosted: Thu Aug 07, 2003 1:13 am    Post subject: Reply with quote

You should mount the partitions and chroot the same way you did during the original install :
Code:
# mount /dev/hda6 /mnt/gentoo
# mount /dev/hda3 /mnt/gentoo/boot
# mount -t proc proc /mnt/gentoo/proc
# chroot /mnt/gentoo /bin/bash
# env-update
# source /etc/profile
Back to top
View user's profile Send private message
smellycheeseboy
Apprentice
Apprentice


Joined: 15 May 2003
Posts: 263
Location: The Future

PostPosted: Thu Aug 07, 2003 1:31 am    Post subject: Reply with quote

Well I reinstalled GRUB and it still does the error 17 only when I shut the computer off and then turn it back on.

Jason
Back to top
View user's profile Send private message
SnowDeath
n00b
n00b


Joined: 15 Jul 2003
Posts: 64
Location: Florida, USA

PostPosted: Thu Aug 07, 2003 2:26 pm    Post subject: Reply with quote

Just out of curiosity, you don't happen to have an nforce/nforce2 chipset or a built-in display adapater, do you?
Back to top
View user's profile Send private message
ea
n00b
n00b


Joined: 18 Jul 2002
Posts: 6

PostPosted: Sat Aug 09, 2003 4:18 pm    Post subject: Reply with quote

Hi!

I've just installed windows XP along with my gentoo system. This however nuked my GRUB bootloader.

I tried to reinstall it with the LIVE CD just as suggested above but encountered the same error (error 17) with grub

I write:

grub> root (hd0,0)
>> responds something about partition being 0x83 but not recognizing it's
>> type
grub> setup (hd0)
>> Error 17 (cannot mount partition)


The only thing I can think of is that it's a Reiserfs and that this confuses grub, but thats just a longshot guess.

Please, if anyone have a suggestion (short of total reinstallation, which really isn't an option), let me know.
Back to top
View user's profile Send private message
cyrillic
Watchman
Watchman


Joined: 19 Feb 2003
Posts: 7313
Location: Groton, Massachusetts USA

PostPosted: Sat Aug 09, 2003 4:28 pm    Post subject: Reply with quote

GRUB and Reiserfs work just fine together (on all of my machines).
How are your partitions setup ? Post the output from "fdisk -l"
Back to top
View user's profile Send private message
smellycheeseboy
Apprentice
Apprentice


Joined: 15 May 2003
Posts: 263
Location: The Future

PostPosted: Mon Aug 11, 2003 12:39 am    Post subject: Reply with quote

Here is fdisk -l:
Code:
Disk /dev/ide/host0/bus0/target0/lun0/disc: 61.4 GB, 61492838400 bytes
255 heads, 63 sectors/track, 7476 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

                                Device Boot    Start       End    Blocks   Id  S                                                                                      ystem
/dev/ide/host0/bus0/target0/lun0/part1   *         1       637   5116671    b  W                                                                                      in95 FAT32
/dev/ide/host0/bus0/target0/lun0/part2           638      7295  53477047+   f  W                                                                                      in95 Ext'd (LBA)
Partition 2 does not end on cylinder boundary.
/dev/ide/host0/bus0/target0/lun0/part3          7295      7307     99727+  83  L                                                                                      inux
/dev/ide/host0/bus0/target0/lun0/part4          7308      7370    506047+  82  L                                                                                      inux swap
/dev/ide/host0/bus0/target0/lun0/part5           638      6502  47110581    b  W                                                                                      in95 FAT32
/dev/ide/host0/bus0/target0/lun0/part6          6503      7294   6361708+  83  L                                                                                      inux


Jason
Back to top
View user's profile Send private message
cyrillic
Watchman
Watchman


Joined: 19 Feb 2003
Posts: 7313
Location: Groton, Massachusetts USA

PostPosted: Mon Aug 11, 2003 1:19 am    Post subject: Reply with quote

smellycheeseboy :
Your partitions look fine. I suspect something strange is going on in the BIOS because your bootloader should respond the same way if you reboot or turn the computer on. You might be able to fix this by changing the boot order in the BIOS or even with a BIOS update (or just leave the computer on 24/7)

ea :
What does "fdisk -l" look like on your computer ?
Back to top
View user's profile Send private message
smellycheeseboy
Apprentice
Apprentice


Joined: 15 May 2003
Posts: 263
Location: The Future

PostPosted: Mon Aug 11, 2003 1:48 am    Post subject: Reply with quote

I had the boot order going cdrom, floppy, hard drive. I changed it back to the original order of floppy, hard drive, and then cdrom but it still came up with the error 17. I looked up a BIOS update and they didn't have one for my computer. And last but not least I can't leave my computer all the time because I am in college so I move back and forth between there and home.

Thanks for your help and I hope that you have some more ideas.

Jason[/quote]
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum