LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 05-06-2011, 10:31 AM   #1
qrange
Senior Member
 
Registered: Jul 2006
Location: Belgrade, Yugoslavia
Distribution: Debian stable/testing, amd64
Posts: 1,061

Rep: Reputation: 47
'INVALID magic number' grub2 debian


I get error 'invalid magic number' when using this
vmlinuz 2,417,247 bytes

if I use this:
vmlinuz 2,417,312 bytes

then later it complains about kernel mismatch

??
 
Old 05-06-2011, 04:07 PM   #2
alan_ri
Senior Member
 
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733
Blog Entries: 5

Rep: Reputation: 127Reputation: 127
What are trying to do? And what on Earth is vmlinuz 2,417,247 bytes or 2,417,312 bytes?
 
0 members found this post helpful.
Old 05-06-2011, 04:14 PM   #3
qrange
Senior Member
 
Registered: Jul 2006
Location: Belgrade, Yugoslavia
Distribution: Debian stable/testing, amd64
Posts: 1,061

Original Poster
Rep: Reputation: 47
i'm trying to do this: http://www.linuxquestions.org/questi...om-hdd-861783/
its the size of vmlinuz file
 
Old 05-06-2011, 04:32 PM   #4
alan_ri
Senior Member
 
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733
Blog Entries: 5

Rep: Reputation: 127Reputation: 127
Yes I knew that it is a size, but you don't need vmlinuz size for what you want to do. I believe in the link you posted druuna explained some things very well (I had a quick look).

There's an error;
Quote:
'cannot copy file from cdrom'
...but you said you want to install without cd/dvd I believe, so what you want to do?
 
0 members found this post helpful.
Old 05-07-2011, 04:09 AM   #5
qrange
Senior Member
 
Registered: Jul 2006
Location: Belgrade, Yugoslavia
Distribution: Debian stable/testing, amd64
Posts: 1,061

Original Poster
Rep: Reputation: 47
but vmlinuz is bad. I used the size to identify 'version' instead of md5sum. that last version druuna gave me produces that error. it is referring to iso as cdrom, I guess.

can you mix vmlinuz with different initrd.gz ?

I think I'll just give up and install the damn thing from dvd.

ps. sorry for starting another thread about this. I'd delete it.

Last edited by qrange; 05-07-2011 at 04:33 AM.
 
Old 05-07-2011, 06:54 AM   #6
alan_ri
Senior Member
 
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733
Blog Entries: 5

Rep: Reputation: 127Reputation: 127
vmlinuz is not bad.

Just so that it stays written here;
Quote:
Traditionally, UNIX platforms called the kernel image /unix. With the development of virtual memory, kernels that supported this feature were given the vm- prefix to differentiate them. The name vmlinux is a mutation of vmunix, while in vmlinuz the letter z at the end denotes that it is compressed.
http://www.debian.org/ has a lot of documentation etc. For example, have a look here; http://www.debian.org/releases/stabl...h04s04.html.en Read that, then Section 5.1.4 and you should be ready to go.

Mixing vmlinuz with initrd.gz for some other vmlinuz is a bad idea, trust me.
 
0 members found this post helpful.
Old 05-07-2011, 07:14 AM   #7
qrange
Senior Member
 
Registered: Jul 2006
Location: Belgrade, Yugoslavia
Distribution: Debian stable/testing, amd64
Posts: 1,061

Original Poster
Rep: Reputation: 47
if it weren't bad, I wouldn't get 'invalid magic number'. I did everything by manual.

but the documentation you linked to does not provide download link for the vmlinuz and initrd.gz that would work with latest debian_testing_amd64.iso
 
Old 05-07-2011, 10:54 AM   #8
alan_ri
Senior Member
 
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733
Blog Entries: 5

Rep: Reputation: 127Reputation: 127
Well I won't say much, I'll post two links and I'll tell you what I've learned over the years; if you're using Linux you need to remember two words; search and read.

http://forums.debian.net/viewtopic.php?f=17&t=52153
http://ftp.debian.org/debian/dists/t...ages/hd-media/
 
0 members found this post helpful.
  


Reply



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
PHP + MYSQL: Invalid parameter number: number of bound variables does not match... OrangeGrover Linux - Software 6 05-08-2013 05:36 PM
[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
gunzip: Invalid magic sceadu Linux - Software 1 01-12-2005 06:26 AM
invalid tar magic error bpw Linux - General 4 03-04-2004 08:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 04:34 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
Open Source Consulting | Domain Registration