LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-07-2017, 12:29 AM   #1
yi22588
LQ Newbie
 
Registered: Nov 2017
Posts: 2

Rep: Reputation: Disabled
Can't boot error: invalid magic number


Hi,

I'm going to boot my serial console with Memtest86 v7.4. I put the BOOTX64.efi in sda4.

Code:
gurb.cfg:

menuentry{
      set-root=hd(0,3)
      linux /BOOTX64.efi
}
When I boot the machine, it shows
error: invalid magic number

press any key to continue...

I think we can boot .efi file right?
 
Old 12-07-2017, 03:50 PM   #2
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 7,392

Rep: Reputation: 1416Reputation: 1416Reputation: 1416Reputation: 1416Reputation: 1416Reputation: 1416Reputation: 1416Reputation: 1416Reputation: 1416Reputation: 1416
With Grub2 looking for sda4, you need set root=(hd0,4). It counts drives from zero, partitions from one.
 
  


Reply

Tags
boot grub efi


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Error: invalid magic number Humberto Parrilla Linux - Newbie 1 09-08-2017 08:11 AM
"error invalid magic number alloc magic is broken" MrRex Linux - Newbie 1 09-14-2016 12:00 PM
'INVALID magic number' grub2 debian qrange Debian 7 05-07-2011 11:54 AM
[SOLVED] Adding a kernel in GRUB for Kubuntu 9.10: Invalid Magic number gregorian Linux - Newbie 1 04-19-2010 08:59 PM
grub2 returns a "invalid magic number" error when booting slackware 13.0's kernel baji Slackware - Installation 4 03-09-2010 07:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:14 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration