LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware - Installation (http://www.linuxquestions.org/questions/slackware-installation-40/)
-   -   Install with GPT on BIOS (http://www.linuxquestions.org/questions/slackware-installation-40/install-with-gpt-on-bios-4175502779/)

ReaperX7 04-23-2014 10:08 PM

Install with GPT on BIOS
 
Not sure how well this was covered in the Slackware Documents but I figured I'd share anyway.

For the curious, yes, you can use GPT on a BIOS PC the same as a UEFI system though there is some minor differences.

For one, there is one thing you'll need to realize:

A disk partitioned with GPT on BIOS can not boot Microsoft Windows in Dual-Boot, so don't even try. Just use a secondary HDD/SSD and use the BIOS boot selection feature for multi-booting.

Now first things first...

You're going to need a special partition to be created using gdisk, cgdisk or parted called a "BIOS Boot Partition".

All three of these utilities can create one of these. You'll need to select the Partition Type as EF02 type.

It doesn't need to be large either. So allocating at least 5-10MB is more than enough.

I borrowed this method from the Gentoo handbook with my own mods:

/dev/sda1 - BIOS Boot Partition - 5MB
/dev/sda2 - Linux EXT2/3/4 for /boot - 100MB
/dev/sda3 - Linux swap - 2-4 GB unless you're compiling a lot of software then 6-8 GB.
/dev/sda4 - Linux EXT3/4, JFS, or ReiserFS /(root file system) - remaining disk space

I left BtrFS off for a damn good reason. Don't use it! It's still experimental. XFS was left off due to issues with power loss and data corruption issues.

This method is useful for using Grub2 mostly, if not only. eLILO which is Slackware's default bootloader really doesn't require this. Not sure if this works with the syslinux/extlinux bootloader.

You don't technically have to mount the BIOS Boot Partition, but if you want you could always possibly mount it under /boot/bios in reference to how /boot/efi is mounted if you use an EFI System Partition for sh*ts and giggles.

Didier Spaier 04-24-2014 04:09 PM

Quote:

Originally Posted by ReaperX7 (Post 5158148)
This method is useful for using Grub2 mostly, if not only. eLILO which is Slackware's default bootloader really doesn't require this. Not sure if this works with the syslinux/extlinux bootloader.

Actually, elilo is only used instead of lilo during installation of Slackware64-14.1 in case of an EFI firmware, because then lilo doesn't work. In that case a GUID partition table (aka GPT) is mandatory but can still be used instead of the Master Boot record (MBR) for BIOS firmwares. In fact Slackware ships several boot managers: lilo, elilo, grub2 and {sys,ext,iso,pxe}linux.

To boot the Slackware64-14.1 intallation DVD grub2 is used instead of isolinux in case of EFI firmware (isolinux 6 can do an EFI boot but is not stable enough yet to be included in Slackware).

ruario 04-25-2014 06:47 AM

Quote:

Originally Posted by ReaperX7 (Post 5158148)
Not sure how well this was covered in the Slackware Documents but I figured I'd share anyway.

It is. A quick search and you would have found it.

ReaperX7 04-26-2014 10:12 AM

Thanks Ruario. Oh well at least its been re-shared. :D


All times are GMT -5. The time now is 08:45 PM.