Slackware - Installation This forum is for the discussion of installation issues with Slackware. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
04-23-2014, 10:08 PM
|
#1
|
LQ Guru
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,564
|
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.
Last edited by ReaperX7; 04-23-2014 at 10:17 PM.
|
|
|
04-24-2014, 04:09 PM
|
#2
|
LQ Addict
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,369
Rep: 
|
Quote:
Originally Posted by ReaperX7
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).
Last edited by Didier Spaier; 04-24-2014 at 05:33 PM.
Reason: PS removed
|
|
|
04-25-2014, 06:47 AM
|
#3
|
Senior Member
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 2,559
|
Quote:
Originally Posted by ReaperX7
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.
|
|
|
04-26-2014, 10:12 AM
|
#4
|
LQ Guru
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,564
Original Poster
|
Thanks Ruario. Oh well at least its been re-shared. 
|
|
|
10-22-2014, 05:41 AM
|
#5
|
Senior Member
Registered: Sep 2009
Location: Leinster, IE
Distribution: Slackware, NetBSD
Posts: 2,249
|
Quote:
Originally Posted by ruario
It is. A quick search and you would have found it.
|
[resurrecting six-month-old thread]
I'm sorry to say but your document is neither complete nor clear regarding the installation of Slackware with GPT on BIOS. You gloss over the partitioning steps required, which might be good enough for those who understand how to partition with parted, gdisk and cgdisk, but is nowhere near good enough for what purports to be a step-by-step guide submitted to docs.slackware.com. Please don't take this criticism personally; I know how difficult it is to write documentation which makes no assumptions about the reader's level of expertise. That's why I don't submit tutorials, even though I have quite a collection for my own use now. Your document should be entitled "How to install a bootloader with GPT disks on non-UEFI systems", because that's all you cover. You do not cover installation of Slackware with GPT on BIOS.
Since yesterday evening I have been pulling my hair out trying to install first Slackware and then Salix on a virtual machine, using parted to create the partitions on a GPT virtual disk. I am reliably informed on each occasion that Slackware cannot find any Linux partitions, and needless to say installation of Slackware is stopped there and then, dead in its tracks.
I do the following to create the partitions:
Code:
parted> mklabel gpt
parted> mkpart primary 1M 5.8G
parted> name 1 rootfs
parted> mkpart primary 5.81G 7G
parted> name 2 swap
parted> mkpart primary 7.01G -1
parted> name 1 home
parted> set 1 boot on
parted> quit
Perhaps I should be using cgdisk, but I wanted to learn parted, and parted is included with the Slackware installer so I presume it can be used. Perhaps as well a GPT BIOS combination doesn't work in Virtualbox, but in either case, your help document should be much more comprehensive in its coverage or modest in its claims. It is neither, which leaves the rest of us still scratching our heads and going to the Gentoo and Arch wikis for further assistance.
Last edited by Gerard Lally; 10-22-2014 at 05:49 AM.
|
|
|
10-22-2014, 03:35 PM
|
#6
|
LQ Newbie
Registered: Jun 2010
Distribution: Slackware64
Posts: 11
Rep: 
|
gezley,
I've had problems before with parted and gparted that caused them to not mark the partition type code correctly - ext3 partitions with NTFS codes and so on. It's caused me some trouble using the same external drive in Windows and Linux. So, I just tried installing Slackware in Virtualbox and had the same issue as you. When I checked gdisk, parted had marked the partitions as 0700, which is "Microsoft Basic Data," even though I had told parted to make Linux partitions and had run mkfs.ext4 on them. Changing to 8300 with gdisk made the Slackware installer "see" the partitions as Linux partitions. You might want to try that if you haven't got it working yet.
|
|
|
10-23-2014, 09:54 AM
|
#7
|
Senior Member
Registered: Sep 2009
Location: Leinster, IE
Distribution: Slackware, NetBSD
Posts: 2,249
|
Quote:
Originally Posted by Armenore
gezley,
I've had problems before with parted and gparted that caused them to not mark the partition type code correctly - ext3 partitions with NTFS codes and so on. It's caused me some trouble using the same external drive in Windows and Linux. So, I just tried installing Slackware in Virtualbox and had the same issue as you. When I checked gdisk, parted had marked the partitions as 0700, which is "Microsoft Basic Data," even though I had told parted to make Linux partitions and had run mkfs.ext4 on them. Changing to 8300 with gdisk made the Slackware installer "see" the partitions as Linux partitions. You might want to try that if you haven't got it working yet.
|
Thank you Armenore. I had the same Microsoft Basic Data issue and indeed I turned to gdisk to solve it, but the VM still refuses to boot. I ran out of time in the end and gave up. Perhaps another day.
|
|
|
All times are GMT -5. The time now is 07:36 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|