WTH is an Invalid Signature in GRUB? (solved)

Forum rules
We don't support installations in VirtualBox, VMWare, qemu or others. We ignore posts about WINE, PlayOnLinux, Steam and Skype. We don't support btrfs, lvm, UEFI, side-by-side installations with GPT or dualboot with anything newer than Windows XP.
Google your problem first. Check the Wiki. Read the existing threads. It's okay to "hijack" an existing thread, yes! If your problem is not yet covered, open a new thread. To get the quickest possible help, mention the exact release codename in your post (uname -a is a good idea, too). Due to the lack of crystal balls, attach the output of lspci -nnk if you encounter hardware problems.
User avatar
noo_b_nomnoms
MILF
Posts: 522
Joined: Sat Jan 09, 2016 5:13 pm
Location: USA

WTH is an Invalid Signature in GRUB? (solved)

Unread post by noo_b_nomnoms » Wed Feb 15, 2017 5:19 am

So I decided to play with my alt OS- Haiku OS- and they've definitely improved.
I decided it was time to install it again. The install is fairly easy with the only hitch being you have to edit the /etc/grub.d/custom_40 to get it on the grub menu.
This has never been a problem before, but it has played Hell Games with me this time.
I edited grub:
# Haiku on /dev/sdb1
menuentry "Haiku Alpha" {
set root=(hd1,1)
chainloader +1
}
Afterwards I ran "sudo update-grub" and....nothing.
So I went about my business (internetprons and such :-P)
Much to my surprise and delight Haiku showed up in my grub menu at the next boot, but upon choosing it I got a message about an "invalid signature" and the sage advice to press any key to return to the boot menu.
Any ideas? sdb1 is the correct drive/partition, so I believe hd1,1 would be correct as well....most of the posts I've read online seem to point at correct drive naming problems (damn that sounds convoluted! Sorry, guys!) so I am really at a loss, here.
I put a boot flag on this partition as a last resort, but I am going to wait to restart the system to give you guys a reason why I should not try this.
Thanks for your help! :)

*EDIT: Flagging the partiton with the boot flag did absolutely nothing, lols.
I am not so clever, lols me!
Sir! Put down the hammer and slowly step away from the computer.

User avatar
wuxmedia
Grasshopper
Posts: 6445
Joined: Wed Oct 17, 2012 11:32 am
Location: Back in Blighty
Contact:

Re: WTH is an Invalid Signature in GRUB?

Unread post by wuxmedia » Wed Feb 15, 2017 1:36 pm

nice trouble shooting at least. I have nothing to add - never had any damn luck with grub.
Does grub-install /dev/sdb1 not pick it up? automatically?
"Seek, and Ye shall find"
"Github | Chooons | Site"

pidsley
Hermit
Posts: 2539
Joined: Wed Oct 17, 2012 12:31 pm

Re: WTH is an Invalid Signature in GRUB?

Unread post by pidsley » Wed Feb 15, 2017 3:06 pm

What else is running on this machine? What distro is controlling grub? If it's a Debian flavor try running "sudo update-grub" in that distro; the Haiku docs say that os-prober should create a usable grub entry without having to use 40_custom.

Most of the topics I can find relating to that error talk about Windows and EFI mode. I know nothing about EFI, but if you installed anything with EFI that might be part of the problem.

machinebacon
Baconator
Posts: 10253
Joined: Thu Sep 16, 2010 11:03 am
Location: Pfälzerwald
Contact:

Re: WTH is an Invalid Signature in GRUB?

Unread post by machinebacon » Wed Feb 15, 2017 8:39 pm

Are you sure the geometry is correct? I refer to
set root=(hd1,1)
chainloader +1

How about removing the chainloader part, as it sounds it jumps to the second partition there
..gnutella..

User avatar
noo_b_nomnoms
MILF
Posts: 522
Joined: Sat Jan 09, 2016 5:13 pm
Location: USA

Re: WTH is an Invalid Signature in GRUB?

Unread post by noo_b_nomnoms » Wed Feb 15, 2017 11:32 pm

I need to apologise about this first. This is absolutely against the policy (being a non-bbq topic) and I simply did not think and went straight to this board when my feeble faculties hit a wall.That being said, all good ideas that I will try as soon as my next break hits. Thank you!
Sir! Put down the hammer and slowly step away from the computer.

pidsley
Hermit
Posts: 2539
Joined: Wed Oct 17, 2012 12:31 pm

Re: WTH is an Invalid Signature in GRUB?

Unread post by pidsley » Wed Feb 15, 2017 11:38 pm

Non-bbq topics are fine here. Just don't expect good answers. (-:

User avatar
noo_b_nomnoms
MILF
Posts: 522
Joined: Sat Jan 09, 2016 5:13 pm
Location: USA

Re: WTH is an Invalid Signature in GRUB?

Unread post by noo_b_nomnoms » Wed Feb 15, 2017 11:42 pm

I love you guys! Back to driving!
Sir! Put down the hammer and slowly step away from the computer.

User avatar
noo_b_nomnoms
MILF
Posts: 522
Joined: Sat Jan 09, 2016 5:13 pm
Location: USA

Re: WTH is an Invalid Signature in GRUB?

Unread post by noo_b_nomnoms » Thu Feb 16, 2017 4:00 am

Ok! Here is the result for a normal grub-install:

chuck@hello:~$ sudo grub-install /dev/sdb1
[sudo] password for chuck:
Installing for i386-pc platform.
grub-install: warning: File system `bfs' doesn't support embedding.
grub-install: warning: Embedding is not possible. GRUB can only be installed in this setup by using blocklists. However, blocklists are UNRELIABLE and their use is discouraged..
grub-install: error: will not proceed with blocklists

Gonna have to reboot to check the next fix, but I will try machinebacon's idea of removing the "chainloader + 1"
Something like this?

# Haiku on /dev/sda7
menuentry "Haiku Alpha" {
set root=(hd0,7)
}

I still have no idea about how things get indented and such in code, so I will be back with the results of my playing with syntax later, lols!
Sir! Put down the hammer and slowly step away from the computer.

User avatar
franksinistra
Ivana Fukalot
Posts: 1093
Joined: Mon Jan 27, 2014 2:03 am
Location: 印尼国

Re: WTH is an Invalid Signature in GRUB?

Unread post by franksinistra » Thu Feb 16, 2017 4:07 am

the problem:

Code: Select all

grub install /dev/sdb1
should be /dev/sdb.

And if you are using GPT partition, make sure you setup a bios boot partition first (512K will suffice)
rice no more.

User avatar
noo_b_nomnoms
MILF
Posts: 522
Joined: Sat Jan 09, 2016 5:13 pm
Location: USA

Re: WTH is an Invalid Signature in GRUB?

Unread post by noo_b_nomnoms » Thu Feb 16, 2017 4:55 am

Ah! Thanks, franksinistra! Another "Doh!" moment for the noo_b! Lols!
I think the problem may just be something weird. I deleted the "chainloader + 1" as mentioned then I did a update-grub and a reboot.
I have a separate grub menu set up for all four disks because I've found that doing grub for a specific spin on the drive it's installed to just works better.
At poweron I select the drive that I wish to boot from, then choose my spin. I do this because If I use the grub menu from, say, sda but choose a spin from sdb the chances are good that I am going to get a boot error.
So I poweron and forget to hit the drive selector so I end up on sda (The U****u grub).
Lo and behold, there's my Haiku OS entry!
I click on it and here I am- talking to you from Haiku's WebPositive browser :)
I still need to reboot and try it from the sdb grub, but at least now I know I can access it. Yay! Without even having to put in the cd!
Just thought I'd update you guys!
Sir! Put down the hammer and slowly step away from the computer.

machinebacon
Baconator
Posts: 10253
Joined: Thu Sep 16, 2010 11:03 am
Location: Pfälzerwald
Contact:

Re: WTH is an Invalid Signature in GRUB?

Unread post by machinebacon » Thu Feb 16, 2017 6:12 am

yeah the thing is if you have more than 1 drive and more than 1 partition to boot in, and not using UUID, then the /dev/sdX will change according to the drive/partition you selected to boot from. That's what pidsley was referring to in his post. Usually, you should have one system (I would always pick a Debian system, because of its grub tools) to "manage the GRUB entries". So, after adding a new OS and checking that it actually has grub (and not lilo or something else), you would boot back to Debian and let grub update the grub menu.

Anyway, glad it works for now ;)
..gnutella..

User avatar
noo_b_nomnoms
MILF
Posts: 522
Joined: Sat Jan 09, 2016 5:13 pm
Location: USA

Re: WTH is an Invalid Signature in GRUB?

Unread post by noo_b_nomnoms » Thu Feb 16, 2017 8:27 am

I thank you , machinebacon! I can see myself a couple of years ago reinstalling ad nauseum the same systems and cursing the gods for my misfortune!
The Grill taught me to at least take a breath and think before scrapping everything just because one little thing was messed up.
The Grill is the definitive cure for a lazy brain!
Sir! Put down the hammer and slowly step away from the computer.

User avatar
wuxmedia
Grasshopper
Posts: 6445
Joined: Wed Oct 17, 2012 11:32 am
Location: Back in Blighty
Contact:

Re: WTH is an Invalid Signature in GRUB?

Unread post by wuxmedia » Thu Feb 16, 2017 8:37 am

oops that was my fault, i posted /dev/sdb1, mea culpa :(
for posting if you want

Code: Select all

Pretty indented code snippits
then i just type

Code: Select all

{code} code you want {/code} 
replace curly brackets for square '[' and it should show

or hit 'full editor' and use the stylings near the top
"Seek, and Ye shall find"
"Github | Chooons | Site"

User avatar
ivanovnegro
Minister of Truth
Posts: 5448
Joined: Wed Oct 17, 2012 11:12 pm

Re: WTH is an Invalid Signature in GRUB?

Unread post by ivanovnegro » Thu Feb 16, 2017 4:50 pm

Haiku OS, now post a review of that sucker. :)

Post Reply