LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-16-2015, 04:42 PM   #1
xiongnu
Member
 
Registered: Sep 2004
Distribution: Devuan, Void
Posts: 264

Rep: Reputation: 23
relationship between MBR, GPT, UEFI


recently, i've encountered some disk related issues. it seems related to different boot record schemes and bios.

i admit my situation is rather convoluted but here it goes:

i pulled a 2.5" laptop IDE harddrive(with winxp) from my broken thinkpad laptop and installed onto my desktop computer(with the help of an adapter). however I encountered 'error loading operating system' when trying to boot. after trying windows recovery console, reinstall the OS, changed bios settings etc to no avail, i updated the motherboard bios by downloading latest from manufacturer website. after bios update and reinstall the windowsXP, i could boot into windows. so i assumed i fixed the issue. then i tried to install Openindiana onto the same disk in different partition, to my surprise, the OI installer couldn't detect the hd even though bios shows it correctly. after troubleshooting for sometime, i discovered if i put the hd on secondary IDE channel on the motherboard, OI installer can detect the hd correctly and been installed. however, after OI installation finished, i couldn't boot into OI because the pc was caught in an endless boot loop. through thirty-party boot media, it appears that OI use GPT scheme on the boot record of the harddisk. afterwards, i added another SATA harddrive to the computer, then bios couldn't detect IDE HD anymore. SATA hd (with win7) works fine though. and i made sure the IDE support in bios is enabled.

at this point, i'm really confused by the rather peculiar behavior of computer. I suspect this has something to do with bios support of MBR, GPT or UEFI but i'm pretty ignorant about GPT or UEFI.

the motherboard is a MSI K8N Neo Platinum 754 NVIDIA nForce3 250Gb ATX AMD Motherboard.
 
Old 12-16-2015, 06:33 PM   #2
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,444

Rep: Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474
What "third party boot media" are you referring to?
I don't use UEFI but, from what I understand, if you are using GPT with windows you also need to install using UEFI. If you have multiple systems installed, they need to all be UEFI or all MBR. How old is this computer? You could google 'bootinfoscript' and download it and burn it to a CD and boot it. Just select the option to Create BootInfo Summary and post a link to it here as it will have details on your system which should get you some help.
 
Old 12-16-2015, 08:20 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,103

Rep: Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117
The laptop IDE disk will be jumpered as "master". Not a good idea to have two masters on the one interface - might explain why moving it helped (a little).
I would doubt OI would force gpt - but I've seen the Win10 preview do it, so anything is possible.

Show us the bootinfo data as requested - and make sure you document at what stage it was taken; i.e what disk(s) was in which interface.
 
Old 12-17-2015, 09:29 AM   #4
xiongnu
Member
 
Registered: Sep 2004
Distribution: Devuan, Void
Posts: 264

Original Poster
Rep: Reputation: 23
Quote:
Originally Posted by yancek View Post
What "third party boot media" are you referring to?
I don't use UEFI but, from what I understand, if you are using GPT with windows you also need to install using UEFI. If you have multiple systems installed, they need to all be UEFI or all MBR. How old is this computer? You could google 'bootinfoscript' and download it and burn it to a CD and boot it. Just select the option to Create BootInfo Summary and post a link to it here as it will have details on your system which should get you some help.

i've been doing some distro hopping lately. so I constantly swap in/out different harddisks on my desktop pc.
here are the setup:
1. 640G SATA hd (win7/debian7 dual boot)
2. 10G IDE hd (OI -> Voidlinux)
3. 30G 2.5" IDE hd (win2k/FreeBSD10.1 dualboot -> FreeBSD10.1)
4. 80G 2.5" IDE hd (winxp -> winxp/OI dual boot)

originally only the SATA harddrive was installed on the pc, I pulled it out to swap in other harddisk.
10G IDE hd with OI couldn't boot on the pc, so I installed voidlinux on it.
30G/80G 2.5" IDE were pulled from my broken thinkpads and had OS installed before, 30G with win2k/FreeBSD both OS can still boot in desktop; 80G with Xp can't boot with 'error loading OS', so I updated desktop bios and reinstalled winxp and installed OI as well.

after bios update, I noticed 2.5 IDE disk with FreeBSD could't load, reports error:
'mounting from ufs://dev/ada0s2a failed with error 19'. so I wiped it clean and reinstalled FreeBSD on it.

on 10G hd, when I tried to remove OI and install voidlinux, voidlinux installer(i.e. 3rd party boot media) reports the disk has GPT scheme and can't overwrite it, so I had to use a winXP cd to remove the partition first then install voidlinux. the voidlinux USB installer was labeled as 'Grub_UEFI' when created by 'win32diskimage'.

none of the IDE hard drive was recognized by new bios when SATA is installed on the PC.

so i'm lost as to what to make of all these, since GPT and UEFI are relatively new development and I don't know much about them. the desktop pc I have is a 10 yrs old homebuilt pc with the aforementioned MSI MB.

Last edited by xiongnu; 12-17-2015 at 09:30 AM.
 
Old 12-17-2015, 04:00 PM   #5
sgosnell
Senior Member
 
Registered: Jan 2008
Location: Baja Oklahoma
Distribution: Debian Stable and Unstable
Posts: 1,943

Rep: Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542
Excellent explanation for this stuff

How to fix MBR/GPT mashups

Last edited by sgosnell; 12-17-2015 at 04:02 PM.
 
Old 12-17-2015, 05:05 PM   #6
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,444

Rep: Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474
If the desktop you are having problems with is 10 years old, I don't think UEFI will play any role as it hasn't been commonly used for that long. To post more details with the bootinfoscript I suggested earlier or download the boot repair iso from the site below and run it then post the output.

https://help.ubuntu.com/community/Boot-Repair
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Any distro just WORK with UEFI and GPT? Timothy Miller Linux - Software 21 09-20-2014 07:00 PM
UEFI/GPT installation problems FreedomForever Linux - Newbie 3 11-04-2013 07:07 AM
slackware uefi gpt install porphyry5 Slackware - Installation 18 09-18-2013 04:06 PM
GPT, UEFI and BIOS Legacy slaka Linux - Laptop and Netbook 8 04-17-2013 07:28 AM
[SOLVED] Slackware 13.37 - gdisk choices, MBR, GPT or Blank GPT CFet Slackware - Installation 3 04-01-2011 04:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:56 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