Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Installing Gentoo
  • Search

grub doesn't like gentoo's brand new kernel

Having problems with the Gentoo Handbook? If you're still working your way through it, or just need some info before you start your install, this is the place. All other questions go elsewhere.
Post Reply
Advanced search
7 posts • Page 1 of 1
Author
Message
idella4
Retired Dev
Retired Dev
User avatar
Posts: 1600
Joined: Fri Jun 09, 2006 11:29 am
Location: Australia, Perth

grub doesn't like gentoo's brand new kernel

  • Quote

Post by idella4 » Tue Jul 08, 2008 2:58 pm

I'm no beginner at this. I've successfully built gentoo three times in the past, always able to resolve the conflicts.


But this!!!!!

I built the kernel in the usual way; i.e. by compiling the kernel!!
I copied the kernel in the usual way to /boot.
I even named it according to gentoo's preferred conventions.
Then at boot up, grub doesn't like it. Unknown file type. well, actually "'bad file or directory type'"

It's not that it can't find it. It found it allright. It doesn't want to play with it.!!!!
Gentoo new no bootup!
??????????

Anyone know what's going on here. Never seen it before.
I still have the old gentoo along with fedora and ubuntu, and suse. no problems .
They all boot up just fine.

What has grub got against genny's brand new kernel???
idella4@aus
Top
cyrillic
Watchman
Watchman
User avatar
Posts: 7311
Joined: Wed Feb 19, 2003 3:05 am
Location: Groton, Massachusetts USA

  • Quote

Post by cyrillic » Tue Jul 08, 2008 7:25 pm

So what type of file does the "file" command say it is ?

Code: Select all

# file /boot/vmlinuz-2.6.26-rc9 
/boot/vmlinuz-2.6.26-rc9: Linux kernel x86 boot executable RO-rootFS, root_dev 0x900, swap_dev 0x1, Normal VGA 
Top
pappy_mcfae
Watchman
Watchman
User avatar
Posts: 5999
Joined: Thu Dec 27, 2007 10:51 pm
Location: Pomona, California.
Contact:
Contact pappy_mcfae
Website

  • Quote

Post by pappy_mcfae » Tue Jul 08, 2008 8:13 pm

Check to make sure that the "kernel" you are trying to use isn't a link instead. The finished kernel (bzImage) is located in /usr/src/<source_dir>/arch/x86/boot (assuming x86 or amd64). This has been the case since the .24 kernel family. I skipped the whole .23 family, so I don't know if that's where they store the finished kernel. The .22 and earlier kernels stored the finished kernel in /usr/src/<source_dir>/arch/i386/boot (32 bit), and /usr/src/<source_dir>/arch/x86_64/boot (64 bit).

Blessed be!
Pappy
This space left intentionally blank, except for these ASCII symbols.
Top
terracotta_shore
Tux's lil' helper
Tux's lil' helper
Posts: 87
Joined: Tue Dec 05, 2006 2:36 pm

Re: grub doesn't like gentoo's brand new kernel

  • Quote

Post by terracotta_shore » Tue Jul 08, 2008 8:14 pm

idella4 wrote:'bad file or directory type'
Is that grub error 2 by any chance? Thought it was. Here's one explanation.
idella4 wrote:What has grub got against genny's brand new kernel???
Nothing, if that link is relevant. What did you use to prepare your partitions?
Top
ziggysquatch
Apprentice
Apprentice
User avatar
Posts: 172
Joined: Tue Nov 16, 2004 11:54 pm
Location: /USA/Minnesota

  • Quote

Post by ziggysquatch » Tue Jul 08, 2008 8:44 pm

before copying over the kernel did you make sure /boot is mounted. I did that once and got all confused. The file will copy fine but it won't be on the actual boot partition.
Top
idella4
Retired Dev
Retired Dev
User avatar
Posts: 1600
Joined: Fri Jun 09, 2006 11:29 am
Location: Australia, Perth

  • Quote

Post by idella4 » Wed Jul 09, 2008 4:16 am

pappy_mcfae

"Check to make sure that the "kernel" you are trying to use isn't a link instead. "

I did it manually, copied it from just where you suggest in the same way Tx anyway.


cyrillic

"So what type of file does the "file" command say it is ?

I says
"file /boot/kernel-gentoo-2.6.24-19-generic
/boot/kernel-gentoo-2.6.24-19-generic: Linux kernel x86 boot executable RO-rootFS, root_dev 0x822, swap_dev 0x2, Normal VGA
"

terracotta_shore

"What did you use to prepare your partitions?

Can't remember. They've been there for years. I used Suse's partitioner to format it with ext3. Can't see that's a problem, until I read the link. This is not nice. This is exactly what seems to have occurred
All I have to do is reformat and start again!!! Well, take an image, reformat and start again.
Thanks for the bad news! though not your fault. grub's fault.

Tx
idella4@aus
Top
terracotta_shore
Tux's lil' helper
Tux's lil' helper
Posts: 87
Joined: Tue Dec 05, 2006 2:36 pm

  • Quote

Post by terracotta_shore » Wed Jul 09, 2008 7:55 am

idella4, I can't quite make out from your post whether you formatted the partition years ago, or reformatted it recently with Suse. My question was ambiguous. I should have said format, not prepare.

One way round this is to have a separate /boot partition formatted ext2. If I'm understanding things correctly here, an ext2 partition will have 128-byte inodes which grub can cope with, whereas ext3 partitions created with e2fsprogs ≥ 1.40.5 will have 256-byte inodes which grub can't cope with. Does the new installer default to a separate /boot? I haven't used it, so I don't know - I haven't borked my fairly-recent stage 3 install yet. :wink: Perhaps this is this why there's not a blizzard of complaints about this issue. Perhaps it's just affecting multi-booters putting the boot directory in / .

This business stung me with Fedora 9 using the Fedora live CD. Although I had pre-formatted the target / partition on my multi-boot, the live CD wouldn't proceed without reformatting it. So when I tried to boot into the new install, guess what? "Error 2 : Bad file or directory type" :(
Top
Post Reply

7 posts • Page 1 of 1

Return to “Installing Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic