Forums

Skip to content

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

BIOS, GPT, amd64, grub.

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
13 posts • Page 1 of 1
Author
Message
skiwarz
Apprentice
Apprentice
Posts: 297
Joined: Sun Feb 23, 2014 7:56 am

BIOS, GPT, amd64, grub.

  • Quote

Post by skiwarz » Fri Mar 28, 2014 4:24 pm

Alright. I've installed all my files on the disk. Now I'm trying to get it to boot. When I start my pc, I get some sort of a "no bootable devices found" thing from the bios. Here's what I got:

GPT disk with 4 partitions: bios_grub: 1MB, /boot: 500MB, /home: 50GB, root: 100GB
BIOS (not uefi-capable).
amd64 cpu arch. 64-bit linux installed.

According to http://wiki.gentoo.org/wiki/GRUB2, BIOS/GPT booting with grub2 is possible, but I'm not sure about the table they posted in that article. It shows that on an amd64 architecture, the only 64-bit config that works is with either the efi platform or the emu platform. Any way around this? I'd very much prefer to use GPT over MBR.
Top
vaxbrat
l33t
l33t
User avatar
Posts: 731
Joined: Wed Oct 05, 2005 3:59 am
Location: DC Burbs

Use the table from here

  • Quote

Post by vaxbrat » Fri Mar 28, 2014 7:56 pm

This wiki is specifically for doing a multivolume btrfs setup, but it does sucessfully use grub2 with a gpt scheme.

http://wiki.gentoo.org/wiki/Btrfs_native_system_root

If you have a simple root (single partition, non-btrfs or default volume) you don't need to do the initramfs thing.
Top
skiwarz
Apprentice
Apprentice
Posts: 297
Joined: Sun Feb 23, 2014 7:56 am

  • Quote

Post by skiwarz » Fri Mar 28, 2014 8:52 pm

That's essentially what I did. I used parted for partitioning, and I gave the grub2bios partition a different name. But I changed it according to the article, and still not bootable. I still see "Booting from local disk... No bootable device -- insert boot disk and press any key"
Top
Logicien
Veteran
Veteran
User avatar
Posts: 1555
Joined: Fri Sep 16, 2005 8:04 am
Location: Montréal

  • Quote

Post by Logicien » Fri Mar 28, 2014 9:46 pm

Have you follow
GUID Partition Table (GPT) specific instructions
Paul
Top
Hu
Administrator
Administrator
Posts: 24385
Joined: Tue Mar 06, 2007 5:38 am

  • Quote

Post by Hu » Fri Mar 28, 2014 10:09 pm

If you are not attached to GRUB, I suggest looking at SysLinux instead. It includes gptmbr.bin, a bootloader specifically designed for accessing GPT partitions on a BIOS-based boot system.
Top
skiwarz
Apprentice
Apprentice
Posts: 297
Joined: Sun Feb 23, 2014 7:56 am

  • Quote

Post by skiwarz » Fri Mar 28, 2014 11:11 pm

Figured it out. Booting now.
So, using gdisk or parted, make a 1-2MB partition and give it type ef02 in gdisk or set "bios_grub on" for that partition in parted. Then open up cfdisk (it will complain about being a gpt disk. just ignore that) and toggle the bootable flag ON for that partition. Then follow the standard instructions for installing grub, given by: http://wiki.gentoo.org/wiki/GRUB2. Apparently you can ignore that table I mentioned, which says it can't run the PC platform on an amd64 arch with a 64-bit OS. Because I just did it.
Top
vaxbrat
l33t
l33t
User avatar
Posts: 731
Joined: Wed Oct 05, 2005 3:59 am
Location: DC Burbs

Don't recall having to toggle bootable

  • Quote

Post by vaxbrat » Sat Mar 29, 2014 4:22 am

I don't remember ever being forced to do that with a grub2-install, and it's even more telling that cgdisk doesn't have that in the options
Top
srs5694
Guru
Guru
Posts: 434
Joined: Mon Mar 08, 2004 5:08 pm
Location: Woonsocket, RI
Contact:
Contact srs5694
Website

  • Quote

Post by srs5694 » Sat Mar 29, 2014 1:24 pm

skiwarz wrote:So, using gdisk or parted, make a 1-2MB partition and give it type ef02 in gdisk or set "bios_grub on" for that partition in parted. Then open up cfdisk (it will complain about being a gpt disk. just ignore that) and toggle the bootable flag ON for that partition.
Be aware: "that partition" that you changed in cfdisk is not the same partition that you created in gdisk or parted. Part of GPT is an MBR partition table that contains a "protective partition" that spans the entire disk. The idea is to keep MBR-unaware utilities from messing with the disk, since such tools will see the disk and think it's fully-allocated to an unknown OS. When you launched cfdisk, you saw and changed this protective partition. This helped because some EFIs (and perhaps some BIOSes) will boot in BIOS mode only if the disk has an MBR partition that's marked as bootable. I have a Web page on this subject if you care to read more.

Incidentally, this makes me think that you may have an EFI, not a BIOS, so you may have been able to install in EFI mode. If the computer/motherboard was introduced more recently than mid-2011, chances are you've got an EFI. It may be set to BIOS/CSM/legacy-mode booting by default, though. OTOH, it's also possible that you really do have a BIOS with this limitation.
Top
skiwarz
Apprentice
Apprentice
Posts: 297
Joined: Sun Feb 23, 2014 7:56 am

  • Quote

Post by skiwarz » Sun Mar 30, 2014 12:44 am

srs5694 wrote:
skiwarz wrote:So, using gdisk or parted, make a 1-2MB partition and give it type ef02 in gdisk or set "bios_grub on" for that partition in parted. Then open up cfdisk (it will complain about being a gpt disk. just ignore that) and toggle the bootable flag ON for that partition.
Be aware: "that partition" that you changed in cfdisk is not the same partition that you created in gdisk or parted. Part of GPT is an MBR partition table that contains a "protective partition" that spans the entire disk. The idea is to keep MBR-unaware utilities from messing with the disk, since such tools will see the disk and think it's fully-allocated to an unknown OS. When you launched cfdisk, you saw and changed this protective partition. This helped because some EFIs (and perhaps some BIOSes) will boot in BIOS mode only if the disk has an MBR partition that's marked as bootable. I have a Web page on this subject if you care to read more.

Incidentally, this makes me think that you may have an EFI, not a BIOS, so you may have been able to install in EFI mode. If the computer/motherboard was introduced more recently than mid-2011, chances are you've got an EFI. It may be set to BIOS/CSM/legacy-mode booting by default, though. OTOH, it's also possible that you really do have a BIOS with this limitation.
Nope. I do not have EFI. Believe me I'd love to have it; this whole thing would've been much easier. Yes, "that partition" is a "protective partition." Toggling the boot flag lets the BIOS know that the partition (ie the whole disk) is bootable and executes the boot code in the protective mbr. That boot code then loads the GRUB code in that 1-2MB partition I created, which then presents the standard grub prompt. Correct me if I'm wrong. I just learned all this over the past week.

Also, is it possible to load a 64-bit kernel in a sort of 32-bit mode? That might explain my discrepancy with the grub2 gentoo wiki about not being able to load a 64-bit os with my configuration.

*edit*: My motherboard is supposed to support efi, but apparently it's broken or something. I think it was one of the first ones to have that capability, and intel never got around to implementing it properly in the bios code. Thus, it's broken despite being designed to have that capability. Intel DP35DP. Just fyi
Top
srs5694
Guru
Guru
Posts: 434
Joined: Mon Mar 08, 2004 5:08 pm
Location: Woonsocket, RI
Contact:
Contact srs5694
Website

  • Quote

Post by srs5694 » Sun Mar 30, 2014 10:49 pm

skiwarz wrote:Also, is it possible to load a 64-bit kernel in a sort of 32-bit mode? That might explain my discrepancy with the grub2 gentoo wiki about not being able to load a 64-bit os with my configuration.
No, a 64-bit kernel will run only on a 64-bit CPU. That said, BIOS-mode GRUB is written in 16-bit code, and can load both 32- and 64-bit kernels.
*edit*: My motherboard is supposed to support efi, but apparently it's broken or something. I think it was one of the first ones to have that capability, and intel never got around to implementing it properly in the bios code. Thus, it's broken despite being designed to have that capability. Intel DP35DP. Just fyi
Your board's manual is dated April of 2007. FWIW, I've got an Intel DG43NB motherboard with a manual dated June 2006. That board definitely uses EFI. The manual only mentions EFI once (in a features table), and the firmware setup utility hides the one and only EFI option amongst the boot options, IIRC, and I think it's only mentioned as a value to an option that doesn't include the string "EFI" in the description. It's possible that your board does have EFI support, but you've simply overlooked this option in the firmware.
Top
skiwarz
Apprentice
Apprentice
Posts: 297
Joined: Sun Feb 23, 2014 7:56 am

  • Quote

Post by skiwarz » Tue Apr 01, 2014 8:11 pm

Like I said, it's supposed to have efi support. But the code is broken. Trust me, I've done my research. And with the 32/64-bit kernel, I meant that on a 64-bit machine and a 64-bit kernel, is there an option to start the kernel in a 32-bit only mode. I guess that wiki article is probably wrong then.
Top
Hu
Administrator
Administrator
Posts: 24385
Joined: Tue Mar 06, 2007 5:38 am

  • Quote

Post by Hu » Wed Apr 02, 2014 1:38 am

skiwarz wrote:I meant that on a 64-bit machine and a 64-bit kernel, is there an option to start the kernel in a 32-bit only mode.
The kernel is built either as 32-bit or 64-bit, but cannot mode switch between the two at boot time because that would affect the layout of all data structures. You can have a 64-bit kernel that provides a compatibility layer to allow 32-bit user programs to run, but such a kernel runs as a 64-bit kernel and coerces fields up/down as needed to let the 32-bit user program see what it expects to see. This is what multilib distributions do.
Top
skiwarz
Apprentice
Apprentice
Posts: 297
Joined: Sun Feb 23, 2014 7:56 am

  • Quote

Post by skiwarz » Wed Apr 02, 2014 3:32 am

Ok. Thank you. So I was right and the gentoo wiki was wrong :D
Ha. Not such a n00b after all
Top
Post Reply

13 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