LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 05-07-2015, 09:50 PM   #1
aaron-kun
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, 05:39 PM   #2
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,604

Rep: Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241
Neither works... The initrd gets it own command line. Something like
Code:
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.
 
  


Reply


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 08: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
problem with suse 10.1 grub bootloader when loading winXP flanker12k Linux - Newbie 4 09-17-2007 11:05 PM


All times are GMT -5. The time now is 01:05 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