LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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-06-2017, 11:29 PM   #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, 02:50 PM   #2
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 7,954

Rep: Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548
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 07:11 AM
"error invalid magic number alloc magic is broken" MrRex Linux - Newbie 1 09-14-2016 11:00 AM
'INVALID magic number' grub2 debian qrange Debian 7 05-07-2011 10:54 AM
[SOLVED] Adding a kernel in GRUB for Kubuntu 9.10: Invalid Magic number gregorian Linux - Newbie 1 04-19-2010 07:59 PM
grub2 returns a "invalid magic number" error when booting slackware 13.0's kernel baji Slackware - Installation 4 03-09-2010 06:15 PM

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

All times are GMT -5. The time now is 09:28 PM.

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