LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 12-08-2018, 12:09 PM   #1
SaintDanBert
Senior Member
 
Registered: Jan 2009
Location: "North Shore" Louisiana USA
Distribution: Mint-20.1 with Cinnamon
Posts: 1,771
Blog Entries: 3

Rep: Reputation: 108Reputation: 108
seeking howto use GPT partition drives to install linux


I'm stumped! I know the details are out there, but I can't find them. I hope I'm not asking the right questions or using the right words to search. I hope, too, that someone here can show me the yellow brick road. I want to partition my drives using GPT instead of MBR and then install linux onto those drives.

For years, I would take a drive, make an MBR table, create a /boot,a / (root), and a swap primary partition. Then I'd create an extended partitions for /home and what I call /wrk. During install, I'd point to these partitions and let it run. Things would boot into GRUB and run selections just fine and work as expected.

When I tried this with a GPT partition table, I got the GRUB boot menu as expected, but when I make a selection, the screen blinks and the GRUB menu re-appears. When I say "tried this" I mean: created a GPT table then created the partitions as described above.

I also tried to create an empty GPT table and let the install do whatever it wanted with the space. At startup, all I got was a black screen and the system stalled.

AARRGGHH !?!?!?

I'm not interested in secure boot. I only want to use GPT partitions instead of MBR partitions. Once I have this working I want to enable boot &c with the SDD.

My workstation details:

Lenovo ThinkPad X220-tablet
UEFI BIOS version 8DET70WW(1.40)
UEFI BIOS date 2015-05-14

Settings:

Follow-up:
This system does not have a setting to set "secure boot" on/off. There is a setting
that affects a "Security Chip". Active, the chip is visible and operative. Inactive, the chip is visible but not used. Disabled, the chip is not visible and not used.

Security Chip ==> Inactive

UEFI/Legacy boot ==> BOTH
UEFI/Legacy priority ==> Legacy First
Reserve Memory for UEFI Boot Mgr ==> Enabled
Drives:

internal HDD ==> 1TB WD
internal SDD ==> 256GB Samsung (installed instead of the cell adapter)
external HDD ==> 1TB WD (working MBR install of Mint 18.3)
Thanks in advance,
~~~ 0;-Dan

Last edited by SaintDanBert; 12-08-2018 at 12:30 PM.
 
Old 12-08-2018, 12:21 PM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,292

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Get in in a console mode somehow and use gdisk instead of fdisk. Commands are pretty similar. No extended partition - just partition away. I wouldn't do this myself, btw. If my bios smells GPT partitions, it defaults to UEFI mode. It has to be fdisk for me, or a gargantuan struggle with uefi. Likewise I wouldn't enable BOTH UEFI and Legacy - that's allowing UEFI. I would disable it's Memory also. You're really asking for trouble there.

Or just delete all disk partitions, and boot an install dvd. They all spoon feed you through partitioning.
 
1 members found this post helpful.
Old 12-08-2018, 12:50 PM   #3
SaintDanBert
Senior Member
 
Registered: Jan 2009
Location: "North Shore" Louisiana USA
Distribution: Mint-20.1 with Cinnamon
Posts: 1,771

Original Poster
Blog Entries: 3

Rep: Reputation: 108Reputation: 108
Through another forum, I learned of the utility [b]efibootmgr[b] ... and tried it.
Code:
prompt$ sudo efibootmgr 
[sudo] password ***********

efibootmgr: EFI variables are not supported on this system.
I can see more than one interpretation for this message:
  1. the running configuration did not involve EFI and so those are not parts of the active system
  2. this hardware does not support EFI in spite of the settings available through CMOS
Can anyone shed light onto this situation?


Follow-up:
I found this article: EFI Bootmgr, and offer the following extract.

In order to successfully use efibootmgr the EFI variables filesystem must be accessible. This requires that the system has been booted in EFI mode (and not through the firmware's MBR mode) as otherwise the EFI variables themselves cannot be accessed.

If the system is in MBR mode, reboot and do what is necessary in order to tell the system firmware to boot in EFI mode. Usually this involved either changing an option in the firmware's settings or selecting an EFI boot entry in the system's boot menu.

This seems to clearly explain the situation with efibootmgr, and suggests that my GPT boot troubles might be caused by a similar conflict between the workstation boot mode -- MBR vs. EFI -- and the target partitions.

Hmmm ???
Thanks in advance,
~~~ 0;-Dan

Last edited by SaintDanBert; 12-08-2018 at 01:02 PM.
 
Old 12-08-2018, 12:54 PM   #4
SaintDanBert
Senior Member
 
Registered: Jan 2009
Location: "North Shore" Louisiana USA
Distribution: Mint-20.1 with Cinnamon
Posts: 1,771

Original Poster
Blog Entries: 3

Rep: Reputation: 108Reputation: 108
Quote:
Originally Posted by business_kid View Post
Get in in a console mode somehow and use gdisk instead of fdisk. Commands are pretty similar. No extended partition - just partition away. I wouldn't do this myself, btw. If my bios smells GPT partitions, it defaults to UEFI mode. It has to be fdisk for me, or a gargantuan struggle with uefi. Likewise I wouldn't enable BOTH UEFI and Legacy - that's allowing UEFI. I would disable it's Memory also. You're really asking for trouble there.

Or just delete all disk partitions, and boot an install dvd. They all spoon feed you through partitioning.
Thank you for taking time to reply.

I'm quite comfortable with linux installation onto MBR partition table HDD workstations.
As you suggest, "beyond here lie beasties" when I enter the world of EFI boot.
While I'm not interested in so-called "secure boot," I have need to install to GPT partitions table HDD hardware.
One reason involves the fact that so many new{er} workstations are UEFI boot and I'd like to future-proof my
efforts to support those environments.

Again, thanks for the reply,
~~~ 0;-Dan
 
Old 12-09-2018, 04:43 AM   #5
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,292

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Install dvds handle empty disk space very well.
 
1 members found this post helpful.
Old 12-09-2018, 07:51 AM   #6
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,503

Rep: Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489
Using a Legacy install with GPT partitions requires an unformatted BIOS_grub partition. The process is explained in detail at the link below. Have you done that during/before the instll?

https://www.linuxliteos.com/forums/t...pt-partitions/
 
1 members found this post helpful.
Old 12-09-2018, 11:04 AM   #7
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,292

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Quote:
Originally Posted by yancek
Using a Legacy install with GPT partitions requires an unformatted BIOS_grub partition. The process is explained in detail at the link below. Have you done that during/before the install?
The link explanation didn't work for me. No one could help me out in 2013, no dvd booted with a gpt disk, etc. I have installed 2 ssds in turn, and DARE not format GPT. I think nearly every other bios discussed is kinder, but I suspect M$ wrote this one :-/. UEFI is just a base attempt to modernize partitioning (Yet again) and to cut out M$ boot viruses
 
Old 12-09-2018, 09:11 PM   #8
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
If you use gpt, you must provide a partition for the boot code. And it must be flagged appropriately.
- for UEFI, an EFI partition formatted as FAT
- for BIOS a boot_BIOS partition as mentioned above.

Modern (as in last 18 months) fdisk is fine with gpt, but I have always used gdisk (or parted) out of habit.
IMHO, if UEFI is available, use it, it will save angst as you move forward. Re BIOS and gpt, this thread from the last couple of days is interesting; not sure if it also applies to CSM (UEFI pretending to be BIOS).
 
Old 12-10-2018, 05:17 AM   #9
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,346

Rep: Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589
Quote:
I got the GRUB boot menu as expected, but when I make a selection, the screen blinks and the GRUB menu re-appears.
sounds like a problem with your grub configuration file. You wouldn't happen to have the bootable usb still plugged in when this happend?

Quote:
At startup, all I got was a black screen and the system stalled.
Is this before or after the grub menu? Possibly a video card issue
 
Old 12-13-2018, 04:50 PM   #10
tofino_surfer
Member
 
Registered: Aug 2007
Posts: 483

Rep: Reputation: 153Reputation: 153
Quote:
I'm not interested in secure boot. I only want to use GPT partitions instead of MBR partitions. Once I have this working I want to enable boot &c with the SDD.
Do you know the difference between UEFI and secure boot ? For machines you build yourself you don't have to enable secure boot in the UEFI firmware. UEFI and secure boot are different things. Virtually every distro supports UEFI itself as grub2-efi supports EFI booting.

With Linux you can easily use either legacy BIOS or UEFI with GPT partitions. I have a BIOS/GPT system myself. If partitioning manually it is important to create 1 MiB BIOS Boot partitions as others have said. This is for the grub second stage.

What is an SDD?

HDD = Hard Disk Drive
SSD = Solid State Drive
 
Old 12-14-2018, 12:35 PM   #11
SaintDanBert
Senior Member
 
Registered: Jan 2009
Location: "North Shore" Louisiana USA
Distribution: Mint-20.1 with Cinnamon
Posts: 1,771

Original Poster
Blog Entries: 3

Rep: Reputation: 108Reputation: 108
Quote:
Originally Posted by yancek View Post
I also found this: EFI System Partition & Default Boot

{soapbox}
Why isn't there a recipe that just works ???
GPT and UEFI have been around forever in "internet time." Linux has been around longer. I find it pitiful
and very frustrating that there is not a step-by-step recipe to:
  • take a new HDD and create a GPT partition table
  • make a "boot" partition, format as xxx file system with size yyy
  • ... repeat for "root", "var", "home", "...", "whatever"
  • run your favorite 64-bit linux installer
  • point installer to the partitions created
  • reboot and enjoy your new workstation
The recipe might also include some other things.
I'm not interested in dual-boot as win-doze complicates things in several ways.
Rather, I'm wanted to boot from multiple Linux editions, distros, or deployments.
  • the workstation has both an SDD and an HDD
  • configuration includes boot from SDD with boot from HDD as alternate
  • steps to add 2nd and following linux boot target -- alt. kernel, distro, desktop, etc
... I could go on.
{/soapbox}

Last edited by SaintDanBert; 12-14-2018 at 12:41 PM.
 
Old 12-14-2018, 04:13 PM   #12
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,503

Rep: Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489
In your last post, you indicate what you want to do and the partitions you want to create. You left out an important option if you want a GPT drive with a Legacy boot of boot code in the MBR. You must have a bios_grub partition. That is in addition to your boot partition if you insist on having a separate boot. Without an unformatted (1MB+)bios_grub partition it won't boot. The instructions at the link I posted earlier seem pretty simple but the link below is a little more detailed.

https://forums.linuxmint.com/viewtopic.php?t=223015

Quote:
I'm not interested in dual-boot as win-doze complicates things in several ways.
That's a good thing because you cannot do a Legacy install of windows on a GPT partition, it MUST be UEFI.
 
Old 12-14-2018, 05:41 PM   #13
RickDeckard
Member
 
Registered: Jan 2014
Location: Canton, Georgia, USA
Distribution: Debian 12
Posts: 205

Rep: Reputation: Disabled
Quote:
Originally Posted by yancek View Post
That's a good thing because you cannot do a Legacy install of windows on a GPT partition, it MUST be UEFI.
Are you sure? If you have an at least 1MB partition of type EF02 at the beginning of the drive for legacy BIOS dual boot, and another of type EF00 for GPT, there's no reason an install like that can't work. I use a GPT-formatted USB boot stick to boot systems with both UEFI and with only BIOS, and haven't ever had any problems. Am I reading you wrong because I really feel like I am.

Last edited by RickDeckard; 12-14-2018 at 05:45 PM.
 
Old 12-15-2018, 06:28 AM   #14
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,503

Rep: Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489
Quote:
Am I reading you wrong because I really feel like I am.
No, you are not. I got this information from the microsoft site at the link below, the first paragraph under Drive Partition Rules. It does state that microsoft does not "support" this which of course, doesn't mean it can't be done.

https://docs.microsoft.com/en-us/win...ive-partitions

Quote:
I use a GPT-formatted USB boot stick to boot systems with both UEFI and with only BIOS, and haven't ever had any problems.
I'm not really clear on what you are saying. Do you have a partition EF02 and EF00 on a drive with only windows and also a drive with only Linux or is it one drive with both partitions with windows and Linux? What file(s) do you have on the EF02 partition of the windows drive if it is a separate drive? In Linux, that partition would be bios_grub and I believe it contains the core.img file.

I guess we're getting off topic here and I don't have multiple installs of windows so have no way to test.
 
Old 12-15-2018, 01:07 PM   #15
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,292

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
I haven't found a way to use GPT without invoking UEFI, but just about everyone else can. I've kept an eye on this since my ignominious defeat on this subject in 2013. But that was a bad time for me to buy; UEFI was little known, software was poor, information scarce, etc. Later versions of this box don't have that problem. Windows 8.0 also puked trying to update to windows 8.1, and screwed things up,so I converted to ssd, formatted with fdisk, and haven't looked back.

Imho, gpt is technically neater, but if your disk isn't over 2 TB, either will do.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] GPT table corrupted (again @%36372 GPT) BW-userx Linux - Hardware 5 08-29-2018 04:14 PM
seeking HOWTO -- migrate MBR dual boot to GPT dual boot SaintDanBert Linux - Hardware 4 03-08-2017 01:50 AM
LXer: GParted 0.22.0 Brings Support for GPT Partition Names and Unpartitioned Disk Drives LXer Syndicated Linux News 0 03-24-2015 05:50 AM
seeking howto -- use CUPS for custom output to same physical printer SaintDanBert Linux - Server 6 08-26-2013 07:26 PM
[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 - Hardware

All times are GMT -5. The time now is 12:44 PM.

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