Fedora Linux Support Community & Resources Center
  #1  
Old 9th October 2011, 03:29 PM
RaiTulo Offline
Registered User
 
Join Date: Nov 2010
Posts: 16
linuxfirefox
Grub2 boot or not to boot

Fedora x86-64 Beta RC4 DVD, Fres install new Partition Table: gpt

After install: No Bootable Device -- insert boot disk and pres any key
lshw:
*-core
description: Motherboard
product: DG965OT
vendor: Intel Corporation
physical id: 0
version: AAD63733-204
slot: Base Board Chassis Location
*-cpu
description: CPU
product: Intel(R) Core(TM)2 CPU 6600 @ 2.40GHz

Only way to boot Fedora: plug "System Rescue CD" (2.3.1) USB stick an choose "Boot from second harddisk"
Only 1 HD, sda
grub2-setup -f /dev/sda -v .. see log file F16 Grub2.txt

parted /dev/sda
GNU Parted 3.0
Using /dev/sda
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) p
Model: ATA ST9500420ASG (scsi)
Disk /dev/sda: 500GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number Start End Size File system Name Flags
1 1049kB 2097kB 1049kB bios_grub
2 2097kB 526MB 524MB ext4 ext4 boot
3 526MB 54.2GB 53.7GB ext4
4 54.2GB 62.6GB 8338MB linux-swap(v1)
5 62.6GB 500GB 438GB ext4

Any idea to get gpt/bios_boot to working?
Attached Files
File Type: txt F16 Grub2.txt (11.5 KB, 121 views)
  #2  
Old 9th October 2011, 05:00 PM
RaiTulo Offline
Registered User
 
Join Date: Nov 2010
Posts: 16
linuxfirefox
Re: Grub2 boot or not to boot

New MDSOS partition table and custom partition Boot OK.

lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 465.8G 0 disk
├─sda1 8:1 0 500M 0 part /boot
├─sda2 8:2 0 48.8G 0 part /
├─sda3 8:3 0 8.1G 0 part [SWAP]
└─sda4 8:4 0 408.3G 0 part /home
Attached Files
File Type: txt F16 Grub2_mbr.txt (4.7 KB, 110 views)
  #3  
Old 11th October 2011, 05:58 AM
RaiTulo Offline
Registered User
 
Join Date: Nov 2010
Posts: 16
linuxfirefox
Re: Grub2 boot or not to boot

BIOS - GPT problem.


http://www.rodsbooks.com/gdisk/index.html
  #4  
Old 12th October 2011, 01:28 AM
AdamW Offline
Fedora QA Community Monkey
 
Join Date: Dec 2008
Location: Vancouver, BC
Posts: 4,176
linuxfirefox
Re: Grub2 boot or not to boot

yeah, we've come across a few systems that just seem to refuse to boot from gpt-labelled disks. some thinkpads seem to be affected - https://bugzilla.redhat.com/show_bug.cgi?id=735733 . the info on that page is interesting, thanks raitulo.
__________________
Adam Williamson | awilliam AT redhat DOT com
Fedora QA Community Monkey
IRC: adamw | Twitter: AdamW_Fedora | identi.ca: adamwfedora
http://www.happyassassin.net
  #5  
Old 12th October 2011, 08:05 PM
RaiTulo Offline
Registered User
 
Join Date: Nov 2010
Posts: 16
linuxfirefox
Lightbulb Re: Grub2 boot or not to boot

Quote:
Originally Posted by RaiTulo View Post
After more testing: F16 Beta RC4 DVD x86_64, GPT partitions

Intel® Motherboards tested. (Latest BIOS)
D945GCLF2, BIOS Date 4/14/2010 Version 0278, Not bootting
DG965OT, BIOS Date 11/17/2008 Version 1754, Not Booting
DP35DP, BIOS Date 7/15/2009, version 0572. UEFI boot Enable or Disable:Not Booting.
DH57JG, BIOS date 4/28/2011, version 0656, YES its boot

Tested moving insalled F16 HDD MoBo to MoBo, not re-installing everytime.

Every Board boot Fedora 16 if i use SystemRescue-CD USB stick (boot SR-cd, selecting option "Boot Second HDD" (usb stick comes first hdd))
  #6  
Old 13th October 2011, 07:09 AM
AdamW Offline
Fedora QA Community Monkey
 
Join Date: Dec 2008
Location: Vancouver, BC
Posts: 4,176
linuxfirefox
Re: Grub2 boot or not to boot

did you try rod's #1 workaround?
__________________
Adam Williamson | awilliam AT redhat DOT com
Fedora QA Community Monkey
IRC: adamw | Twitter: AdamW_Fedora | identi.ca: adamwfedora
http://www.happyassassin.net
  #7  
Old 13th October 2011, 09:00 AM
RaiTulo Offline
Registered User
 
Join Date: Nov 2010
Posts: 16
linuxfirefox
Re: Grub2 boot or not to boot

Quote:
Originally Posted by AdamW View Post
did you try rod's #1 workaround?
which page?
  #8  
Old 13th October 2011, 01:41 PM
sea Online
"Shells" (of a sub world)
 
Join Date: May 2011
Location: Confoederatio Helvetica (Swissh)
Age: 34
Posts: 3,067
linuxfedorafirefox
Re: Grub2 boot or not to boot

just in RaiTulo's link.
__________________
Notebook: Samsung NC210/NC110 CPU: Intel 2*1600 Mhz RAM: 1024 MB DDR2 OS: Fedora 19 DE: Awesome
Laptop: Toshiba Satellite L670 CPU: Intel(r) 2*1872 Mhz RAM: 3072 MB DDR3 OS: Fedora 17 DE: Awesome
Fedora Manual (RTFM) | The Linux Documentation Project | Script-Tools
  #9  
Old 13th October 2011, 09:45 PM
AdamW Offline
Fedora QA Community Monkey
 
Join Date: Dec 2008
Location: Vancouver, BC
Posts: 4,176
linuxfirefox
Re: Grub2 boot or not to boot

entry #1 under 'stick with the BIOS' on http://www.rodsbooks.com/gdisk/bios.html .
__________________
Adam Williamson | awilliam AT redhat DOT com
Fedora QA Community Monkey
IRC: adamw | Twitter: AdamW_Fedora | identi.ca: adamwfedora
http://www.happyassassin.net
  #10  
Old 14th October 2011, 08:58 AM
RaiTulo Offline
Registered User
 
Join Date: Nov 2010
Posts: 16
linuxfirefox
Re: Grub2 boot or not to boot

Quote:
Originally Posted by AdamW View Post
entry #1 under 'stick with the BIOS' on http://www.rodsbooks.com/gdisk/bios.html .
http://www.rodsbooks.com/gdisk/bios.html
"Sticking with the BIOS"

1.
Particularly if you've got an Intel motherboard, use Linux fdisk or a similar tool to mark the EFI GPT protective partition entry in the MBR as active/bootable. In fdisk, type a followed by the partition number (probably 1), then type p to view the partition table. An asterisk (*) should appear in the Boot column for the relevant partition. You can then type w to save your changes. Do not use GParted, GNU Parted, or another libparted-based tool to make this change; these tools interpret the "boot flag" as being synonymous with an EFI System Partition type code on GPT disks, so changing the "boot flag" with these tools will not have the desired effect. You must use fdisk or some other tool that will alter the MBR data structures, not the GPT data structures!

I made fres install F16B-rc4 x86_64 DVD:

# fdisk -l /dev/sda

WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Device Boot Start End Blocks Id System
/dev/sda1 * 1 976773167 488386583+ ee GPT


Togle Boot flag on with fdisk YES, its boot every tested Intel motherboard.

No more test today.

# gdisk /dev/sda
GPT fdisk (gdisk) version 0.7.2

Partition table scan:
MBR: protective
BSD: not present
APM: not present
GPT: present

Found valid GPT with protective MBR; using GPT.

Command (? for help): p
Disk /dev/sda: 976773168 sectors, 465.8 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): 8015E9F5-892F-4F6C-9A11-8F9B375979A5
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 976773134
Partitions will be aligned on 2048-sector boundaries
Total free space is 2029 sectors (1014.5 KiB)

Number Start (sector) End (sector) Size Code Name
1 2048 4095 1024.0 KiB EF02
2 4096 1028095 500.0 MiB EF00 ext4
3 1028096 105885695 50.0 GiB 0700
4 105885696 944005119 399.6 GiB 0700
5 944005120 976773119 15.6 GiB 8200
  #11  
Old 14th October 2011, 02:43 PM
fpmurphy Offline
Registered User
 
Join Date: May 2009
Location: /dev/ph
Posts: 313
windows_7firefox
Re: Grub2 boot or not to boot

Many Intel-manufactured BIOS-based m/boards have problems with GRUB2/GPT This is nothing new. For example, see http://lists.gnu.org/archive/html/gr.../msg00055.html. The solution in almost every case that I have come across is to mark the PMBR as bootable.

Last edited by fpmurphy; 16th October 2011 at 02:50 PM.
  #12  
Old 14th October 2011, 06:20 PM
nimnull22 Offline
Registered User
 
Join Date: Feb 2010
Posts: 187
linuxopera
Re: Grub2 boot or not to boot

You have to enable support EFI in bios motherboard to be able to boot from gpt.
  #13  
Old 14th October 2011, 09:55 PM
AdamW Offline
Fedora QA Community Monkey
 
Join Date: Dec 2008
Location: Vancouver, BC
Posts: 4,176
linuxfirefox
Re: Grub2 boot or not to boot

raitulo: so you're saying that if you use the workaround of marking the protective MBR entry as bootable, it makes booting work on all those intel motherboards?
__________________
Adam Williamson | awilliam AT redhat DOT com
Fedora QA Community Monkey
IRC: adamw | Twitter: AdamW_Fedora | identi.ca: adamwfedora
http://www.happyassassin.net
  #14  
Old 15th October 2011, 02:51 AM
chrismurphy Offline
Registered User
 
Join Date: May 2010
Posts: 969
macossafari
Re: Grub2 boot or not to boot

I can report that on a Macbook Pro 8,2, dual boot, changing the hybrid MBR to a protective MBR and setting the protective MBR (single partition /dev/sda1) to be bootable makes *both* OS's non-bootable. They simply do not show up in the option-key startup disk selection menu.

Using gdisk to create a new hybrid MBR and setting specifically and only the linux boot partition to be bootable restores bootability of both OS's.
  #15  
Old 16th October 2011, 04:12 AM
chrismurphy Offline
Registered User
 
Join Date: May 2010
Posts: 969
macoschrome
Re: Grub2 boot or not to boot

I can report if a hybrid MBR contains either a linux boot partition, or linux lvm (or root) partition, or both, so long as either one of them is flagged bootable in the MBR, the Apple hardware I've tested will see it, and present a "Windows" disk icon at the Apple EFI startup disk menu (option key at startup). That Windows option will load grub and from there the user can choose whatever installation grub is made aware of.

So while the Apple EFI requirement for presenting a "legacy OS" option is specific, there is some permissiveness to it. It just doesn't like protective only MBRs. I'm not sure if it's because of the EE hex code for that partition or the fact there's only one partition present that it doesn't like, but that's kinda moot.

Anyway, point is there's at least one rather large pile of hardware out there that does not like the protective MBR marked as bootable. Not only does it not reveal an option to boot linux, but at least on Apple hardware it also makes the Mac OS volume non-bootable as well. (Until reversed - the data is fine.)
 

Tags
grub2

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
boot fedora from iso using loopback in grub2 geseeker Installation, Upgrades and Live Media 19 27th February 2013 08:13 PM
HOW TO: Fedora 15 with /boot inside LVM using GRUB2 Scipio Guides & Solutions (No Questions) 3 12th September 2012 03:04 AM
[SOLVED] Putting /boot inside LVM with grub2 Scipio Installation, Upgrades and Live Media 2 1st June 2011 06:04 PM
grub2 loopback boot from livecd iso image does not work johnshen Using Fedora 5 26th October 2010 06:53 PM
Dual Boot probl Win XP and FC 3: no boot menu and automatical boot to windows siwask Installation, Upgrades and Live Media 1 18th February 2005 03:57 AM


Current GMT-time: 00:51 (Thursday, 17-04-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat