Forums

Skip to content

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

BIOS does not detect bootable disk (GRUB2) [SOLVED]

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
5 posts • Page 1 of 1
Author
Message
nsh
n00b
n00b
Posts: 5
Joined: Sun Nov 25, 2012 3:13 am

BIOS does not detect bootable disk (GRUB2) [SOLVED]

  • Quote

Post by nsh » Sun Nov 25, 2012 3:47 am

Hi,
I have software RAID1 installed (booting using mdadm nomdraid nolvm) on 2 disks-system.
I installed Grub2 and my BIOS does not recognize either of disks as bootable, displaying on load "A bootable device has not been detected".
However, when on startup I get to BIOS boot menu and choose the disk, Gentoo loads.

I followed Gentoo GRUB2 HOWTO to install Grub2.
Grub2 config and data reside in /boot/grub2 (/boot is a raid1 partition, mapped to /dev/md121)
I created a small partition in the beginning of each disk (parted mkpart s34..1048k), set bios_grub flag on it and ran grub2-install /dev/sda as well as grub2-install /dev/sdb to have it on the mirror disk.

UEFI boot in BIOS is disabled.

Could you please advise, what did I mess up/forgot?

Thanks in advance.
Last edited by nsh on Sun Nov 25, 2012 7:49 pm, edited 1 time in total.
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56104
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Sun Nov 25, 2012 1:26 pm

nsh,

Welcome to Gentoo.

Some brain dead BIOS check for the bootable flag on one partition on the boot drive. So your fdisk -l output needs to look like

Code: Select all

    Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *          63       80324       40131   fd  Linux raid autodetect
/dev/sda2           80325     1124549      522112+  82  Linux swap / Solaris
/dev/sda4         1124550  1953520064   976197757+   5  Extended
/dev/sda5         1124613    11631059     5253223+  fd  Linux raid autodetect
/dev/sda6        11631123  1953520064   970944471   fd  Linux raid autodetect
notice the * under bootable.
BIOSes vary. Some don't check at all. Some demand that exactly one partition is marked bootable, others are OK with one or more.

Use fdisk to set the bootable flag on the boot partition of both of the drives in your raid set. Its exactly one bit in the partition table entry for that partition. Your install will not be harmed.
The step is in the Gentoo Handbook
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
nsh
n00b
n00b
Posts: 5
Joined: Sun Nov 25, 2012 3:13 am

  • Quote

Post by nsh » Sun Nov 25, 2012 6:50 pm

NeddySeagoon,
Thank you for the reply.

I used parted as I partitioned my disks with GPT, fdisk reports that it does not support GPT.

Code: Select all

parted
GNU Parted 3.1
Using /dev/sda
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) p
Model: ATA WDC WD1002FAEX-0 (scsi)
Disk /dev/sda: 1000GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:

 8      17.4kB  1048kB  1031kB               [GRUB]  bios_grub
 1      1049kB  1000MB  999MB                /boot   boot
 2      1000MB  34.0GB  33.0GB               swap
 3      34.0GB  134GB   100GB                /usr
 4      134GB   144GB   10.0GB               /tmp
 5      144GB   194GB   50.0GB               /var
 6      194GB   204GB   10.0GB               /
 7      204GB   1000GB  796GB                /home
The same is for /dev/sdb .
I set boot flag on /boot but it doesn't seem to be enough. :? :?:
It is HP desktop with DH67BL motherboard. It had RAID support but I disabled it in BIOS as well as UEFI boot.
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56104
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Sun Nov 25, 2012 7:01 pm

nsh,

Ahhh.

You actually have two partition tables on your drives.
A legacy MSDOS partition table in Logical Block 0, which is what your BIOS will see and a GPT partition table used by everything else.
If you ignore fdisks dire warnings about not supporting GPT, it will show that you have a single partition of type EE (from memory) filling the entire disk.
This is how fdisk knows that it does not support your partition table.

However, this is where you need to set the bootable flag, not on your boot partition inside the GPT.
Go ahead and use fdisk to set the bootable flag on your protective MSDOS partition, so that the BIOS can see it.
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
nsh
n00b
n00b
Posts: 5
Joined: Sun Nov 25, 2012 3:13 am

  • Quote

Post by nsh » Sun Nov 25, 2012 7:46 pm

NeddySeagoon,
That makes perfect sense, thank you.
And it worked, too! :D

Thanks a lot!

-nsh
Top
Post Reply

5 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