[SOLVED] GRUB error 17

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

[SOLVED] GRUB error 17

Postby nightshadow » Feb 14th, '16, 20:45

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
Attachments
20160214_193643.jpg
20160214_193643.jpg (2.87 MiB) Viewed 2121 times
Last edited by nightshadow on Feb 23rd, '16, 14:06, edited 1 time in total.
nightshadow
 
Posts: 38
Joined: Dec 12th, '13, 23:35

Re: GRUB error 17

Postby filip » Feb 14th, '16, 21:18

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.
filip
 
Posts: 478
Joined: May 4th, '11, 22:10
Location: Kranj, Slovenia

Re: GRUB error 17

Postby nightshadow » Feb 15th, '16, 02:15

So what exactly should I do?
nightshadow
 
Posts: 38
Joined: Dec 12th, '13, 23:35

Re: GRUB error 17

Postby filip » Feb 15th, '16, 16:45

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
filip
 
Posts: 478
Joined: May 4th, '11, 22:10
Location: Kranj, Slovenia

Re: GRUB error 17

Postby nightshadow » Feb 17th, '16, 15:38

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.
nightshadow
 
Posts: 38
Joined: Dec 12th, '13, 23:35

Re: GRUB error 17

Postby filip » Feb 17th, '16, 17:56

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.
filip
 
Posts: 478
Joined: May 4th, '11, 22:10
Location: Kranj, Slovenia

Re: GRUB error 17

Postby nightshadow » Feb 17th, '16, 18:42

Yes, it says error 15:file not found
nightshadow
 
Posts: 38
Joined: Dec 12th, '13, 23:35

Re: GRUB error 17

Postby filip » Feb 18th, '16, 09:24

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.
filip
 
Posts: 478
Joined: May 4th, '11, 22:10
Location: Kranj, Slovenia

Re: GRUB error 17

Postby gohlip » Feb 18th, '16, 11:57

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.
Why do we live? To prove not everything in nature has a purpose.
gohlip
 
Posts: 573
Joined: Jul 9th, '12, 10:50

Re: GRUB error 17

Postby nightshadow » Feb 23rd, '16, 01:55

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.
nightshadow
 
Posts: 38
Joined: Dec 12th, '13, 23:35

Re: GRUB error 17

Postby gohlip » Feb 23rd, '16, 09:16

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.
Why do we live? To prove not everything in nature has a purpose.
gohlip
 
Posts: 573
Joined: Jul 9th, '12, 10:50

Re: GRUB error 17

Postby nightshadow » Feb 23rd, '16, 14:05

I've reinstalled with GRUB2 chosen, and now it works.
Thanks for the help.
nightshadow
 
Posts: 38
Joined: Dec 12th, '13, 23:35


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest