Page 1 of 1

[SOLVED] GRUB error 17

PostPosted: Feb 14th, '16, 20:45
by nightshadow
After installing mageia from my USB drive, there is no grub installed, it boots directly to my windows system.
When I go to rescue and try to install grub from there, this is what happens

Re: GRUB error 17

PostPosted: Feb 14th, '16, 21:18
by filip
If grub is really the culprit there are two very common possibilities:
Grub counts from zero not 1.
There could also be a difference between BIOS/UEFI and grub enumeration of hard drives.

Both of them can be checked with root command within grub.

Re: GRUB error 17

PostPosted: Feb 15th, '16, 02:15
by nightshadow
So what exactly should I do?

Re: GRUB error 17

PostPosted: Feb 15th, '16, 16:45
by filip
It would help if you would share partition list with us:
Code: Select all
fdisk -l

Anyway I would try:
- boot with live media of your arch
- chroot into existing install
- start grub
- use find to see where grub really is
Code: Select all
find /boot/grub/stage1

- follow the grub fixup procedure

Re: GRUB error 17

PostPosted: Feb 17th, '16, 15:38
by nightshadow
Yea, I forgot that.
Here's a pic
(Can't attach, file too big)
https://drive.google.com/file/d/0ByjJgO ... cslist_api

Also, command find /boot/grub/stage1 does not find anything.

Re: GRUB error 17

PostPosted: Feb 17th, '16, 17:56
by filip
nightshadow wrote:Here's a pic
(Can't attach, file too big)
https://drive.google.com/file/d/0ByjJgO ... cslist_api
It seems that sda5 is your root partition.

nightshadow wrote:Also, command find /boot/grub/stage1 does not find anything.
Are you sure you followed my procedure? As I was referring find command within chrooted grub shell. Can you confirm with mount command and post the output.

Re: GRUB error 17

PostPosted: Feb 17th, '16, 18:42
by nightshadow
Yes, it says error 15:file not found

Re: GRUB error 17

PostPosted: Feb 18th, '16, 09:24
by filip
nightshadow wrote:Yes, it says error 15:file not found

Strange.What about output within chroot of:
Code: Select all
cat /boot/grub/menu.lst

and
Code: Select all
cat /boot/grub/install.sh


Another question. Are you sure that your system is not UEFI? Because grub legacy doesn't support it?
For UEFI you should take a look at our wiki page about that.

Re: GRUB error 17

PostPosted: Feb 18th, '16, 11:57
by gohlip
Don't mind my jumping in..(but please proceed with the flow from filip)
Just checking only ....is there any /boot/grub/menu.lst or /boot/grub2/grub.cfg?
How about ..... /boot/vmlinuz-x.xxx.desktop.mga5 and /boot/initrd-x.xxx.x-desktop-.mga5.img

You can check from a livecd or other means.

Re: GRUB error 17

PostPosted: Feb 23rd, '16, 01:55
by nightshadow
I've been away from my computer for a few days. I'm back now.
Yes, I'm sure my system does not support UEFI. 100% sure.

And actually..I have no /boot at all(or I can't access it?)
When I try to cd to /boot, or ls /boot, it says no such file or directory.

Re: GRUB error 17

PostPosted: Feb 23rd, '16, 09:16
by gohlip
I think the best option based on your last post is to reinstall.
After installation, if you cannot boot, at least you should get to a grub prompt (grub>)
And... as what filip said, at that grub prompt, (no need to chroot),
Code: Select all
grub> find /boot/grub/stage1
you should get an output.
Most likely, since it's using grub-legacy, your device naming is wrong, sda instead of sdb or vice versa.
You won't have this problem if installed using grub 2. But here being Mageia, I understand the hostility to it: and I won't want to change your minds. Do as you wish.

Good luck.

Re: GRUB error 17

PostPosted: Feb 23rd, '16, 14:05
by nightshadow
I've reinstalled with GRUB2 chosen, and now it works.
Thanks for the help.