Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 05-07-2015, 08:50 PM   #1
LQ Newbie
Registered: May 2015
Posts: 1

Rep: Reputation: Disabled
"Invalid Magic Number" when loading initrd into GRUB prompt bootloader

Hi, I'm pretty new to Linux.

I'm currently working on a project in my Linux Administration class, but have run into a bit of a bump.

I'm tasked with booting Linux (currently using CentOS 7) through the GRUB prompt. I've loaded the kernel, but I'm having an issue with the initrd.

I've tried both of these commands:
"linux /boot/initrd-plymouth.img"
"linux /boot/initramfs-3.10.0-123.el7.x86_64.img"

Neither of these commands have worked. It only returns the message "invalid magic number" for both of the commands. Any ideas on how I can fix this?

Thanks for any help in advance. It should help me understand Linux better!
Old 05-08-2015, 04:39 PM   #2
Senior Member
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,704

Rep: Reputation: 1270Reputation: 1270Reputation: 1270Reputation: 1270Reputation: 1270Reputation: 1270Reputation: 1270Reputation: 1270Reputation: 1270
Neither works... The initrd gets it own command line. Something like
linux16 /vmlinuz-3.19.5-200.fc21.x86_64 root=UUID=e41bc212-a1b5-4a76-aac
c-92e83c2028a6 ro nomodeset rhgb quiet 
initrd16 /initramfs-3.19.5-200.fc21.x86_64.img
DISCLAIMER, I don't have a CentOS 7 install at the moment, the above is copied from a Fedora entry

I believe the "linux" command is expecting a kernel file, not an image or a initramfs/initrd.


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
grub confusion, not automatically loading (always goes back to grub prompt) spyghost Linux - Software 2 01-23-2012 07:00 PM
'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
problem with suse 10.1 grub bootloader when loading winXP flanker12k Linux - Newbie 4 09-17-2007 10:05 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:12 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration