LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-05-2011, 09:44 PM   #1
Skaperen
Senior Member
 
Registered: May 2009
Location: center of singularity
Distribution: Xubuntu, Ubuntu, Slackware, Amazon Linux, OpenBSD, LFS (on Sparc_32 and i386)
Posts: 2,767
Blog Entries: 31

Rep: Reputation: 176Reputation: 176
Installing Slackware with GPT partition table


I need to use a GPT partition table and tried installing Slackware(64) 13.1. But it reported that there were no partitions when the disk did have about 10 partitions in the GPT partition table. The MBR partition table was set up with the protective entry that is normal with GPT.

I did a test install using just 2 partitions, initially pointed to via an MBR partition table, and later changed over to a GPT partition table pointing to the same sectors, with the protective MBR, and Slackware boots up and runs just fine.

The lilo command also works just fine. I tried it because I was not sure if it looked at the partition entries, and it would be a critical piece to keep the system running.

Any idea when Slackware will have GPT support? GPT is required for partitions larger than 2TB or starting after the 2TB line. There are now 3TB drives out, and RAID arrays much larger than 2TB have been possible for years.
 
Old 02-06-2011, 12:45 AM   #2
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,443

Rep: Reputation: 2786Reputation: 2786Reputation: 2786Reputation: 2786Reputation: 2786Reputation: 2786Reputation: 2786Reputation: 2786Reputation: 2786Reputation: 2786Reputation: 2786
Slackware 13.1 already has support for GPT compiled into the stock kernels.
Quote:
bash-4.1$ grep EFI /usr/src/linux/.config
CONFIG_EFI=y
# CONFIG_FB_EFI is not set
CONFIG_EFI_VARS=m
CONFIG_CACHEFILES=m
# CONFIG_CACHEFILES_DEBUG is not set
# CONFIG_CACHEFILES_HISTOGRAM is not set
CONFIG_EFI_PARTITION=y
There is a problem with some disk tools that do not support GPT (e.g.fdisk and cfdisk). Use parted instead.
 
Old 02-06-2011, 08:59 AM   #3
Skaperen
Senior Member
 
Registered: May 2009
Location: center of singularity
Distribution: Xubuntu, Ubuntu, Slackware, Amazon Linux, OpenBSD, LFS (on Sparc_32 and i386)
Posts: 2,767

Original Poster
Blog Entries: 31

Rep: Reputation: 176Reputation: 176
Quote:
Originally Posted by allend View Post
Slackware 13.1 already has support for GPT compiled into the stock kernels.

There is a problem with some disk tools that do not support GPT (e.g.fdisk and cfdisk). Use parted instead.
You missed the point. I've already made the GPT partitions. The problem is that once this is done, Slackware's installer won't function with it.
 
Old 02-06-2011, 10:03 AM   #4
rob0
LQ Newbie
 
Registered: Sep 2009
Location: Alabama, USA
Distribution: Slackware
Posts: 9

Rep: Reputation: 0
I recently saw AlienBOB say something in IRC about adding GPT support to the installer. For now, you will have to do one of various workarounds such as apparently you have done. It's on their TODO list, so it will be done eventually.
 
Old 02-06-2011, 10:36 AM   #5
Skaperen
Senior Member
 
Registered: May 2009
Location: center of singularity
Distribution: Xubuntu, Ubuntu, Slackware, Amazon Linux, OpenBSD, LFS (on Sparc_32 and i386)
Posts: 2,767

Original Poster
Blog Entries: 31

Rep: Reputation: 176Reputation: 176
Quote:
Originally Posted by rob0 View Post
I recently saw AlienBOB say something in IRC about adding GPT support to the installer. For now, you will have to do one of various workarounds such as apparently you have done. It's on their TODO list, so it will be done eventually.
Hopefully it will be in the version of Slackware following the next one to come. Maybe the next is 13.2 and it will be in 14.0.
 
Old 02-07-2011, 11:48 AM   #6
imitheos
Member
 
Registered: May 2005
Location: Greece
Posts: 441

Rep: Reputation: 141Reputation: 141
Quote:
Originally Posted by Skaperen View Post
You missed the point. I've already made the GPT partitions. The problem is that once this is done, Slackware's installer won't function with it.
You can either install to another disk and transfer it to this one,
or do a "manual install" if you are familiar with Slackware. I installed on GPT some time ago
(then i had to compile GPT support in the kernel). You can mkfs/mount the partitions you want and
then installpkg --root /your_mount_point all the packages from the a/ and n/ series. After that
you will need to put the correct entries in lilo.conf and run lilo to put it on the protective MBR.

If everything goes fine, you will have a bootable/usable system. Then you can installpkg
the rest of the system.
 
Old 02-09-2011, 11:31 AM   #7
Skaperen
Senior Member
 
Registered: May 2009
Location: center of singularity
Distribution: Xubuntu, Ubuntu, Slackware, Amazon Linux, OpenBSD, LFS (on Sparc_32 and i386)
Posts: 2,767

Original Poster
Blog Entries: 31

Rep: Reputation: 176Reputation: 176
Quote:
Originally Posted by imitheos View Post
You can either install to another disk and transfer it to this one,
or do a "manual install" if you are familiar with Slackware. I installed on GPT some time ago
(then i had to compile GPT support in the kernel). You can mkfs/mount the partitions you want and
then installpkg --root /your_mount_point all the packages from the a/ and n/ series. After that
you will need to put the correct entries in lilo.conf and run lilo to put it on the protective MBR.

If everything goes fine, you will have a bootable/usable system. Then you can installpkg
the rest of the system.
For now what I will do is create all the partitions at arbitrary locations on a temporary extra disk plugged in to be /dev/sda. Then via a Live CD, and the target disk plugged in at /dev/sda (partitioned with gdisk) and the staging disk moved to /dev/sdb, do a raw sector copy of each partition (sizes the same). Then mount the target partitions the way they should be on some mount point, chroot into that, and run lilo.
 
Old 02-16-2011, 03:34 AM   #8
lemmens
LQ Newbie
 
Registered: Jan 2005
Location: netherlands
Distribution: slackware64 13.37 + current
Posts: 22

Rep: Reputation: 1
GPT and gdisk

Hi,

I already use GPT partitions for about 3 years and never had problems with them and Slack.
But I just mount the partition manually and then do an install. Actually most of the time now
I just upgrade using slackpkg and then it even doesn't need to know about the partition type.

BTW: I use gdisk instead of parted for GPT and that works perfectly well and works almost exactly
the same as good old fdisk. When will gdisk be added to Slackware ?

Kees
 
1 members found this post helpful.
Old 02-16-2011, 05:56 AM   #9
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,741

Rep: Reputation: 1850Reputation: 1850Reputation: 1850Reputation: 1850Reputation: 1850Reputation: 1850Reputation: 1850Reputation: 1850Reputation: 1850Reputation: 1850Reputation: 1850
Is this what you are looking for?
It's now supported in -Current
Quote:
isolinux/initrd.img: Rebuilt.
Support GUID Partition Table (GPT).
usb-and-pxe-installers/usbboot.img: Rebuilt.
Support GUID Partition Table (GPT).
 
Old 02-16-2011, 03:56 PM   #10
Skaperen
Senior Member
 
Registered: May 2009
Location: center of singularity
Distribution: Xubuntu, Ubuntu, Slackware, Amazon Linux, OpenBSD, LFS (on Sparc_32 and i386)
Posts: 2,767

Original Poster
Blog Entries: 31

Rep: Reputation: 176Reputation: 176
Quote:
Originally Posted by lemmens View Post
Hi,

I already use GPT partitions for about 3 years and never had problems with them and Slack.
But I just mount the partition manually and then do an install. Actually most of the time now
I just upgrade using slackpkg and then it even doesn't need to know about the partition type.

BTW: I use gdisk instead of parted for GPT and that works perfectly well and works almost exactly
the same as good old fdisk. When will gdisk be added to Slackware ?

Kees
My upgrades tend to coincide with hardware upgrades, so I just do the installer on DVD approach. I'll try the mounting manually and see what happens. And I do use gdisk (installed from source) for now (until I get around to write my own).
 
Old 02-16-2011, 03:58 PM   #11
Skaperen
Senior Member
 
Registered: May 2009
Location: center of singularity
Distribution: Xubuntu, Ubuntu, Slackware, Amazon Linux, OpenBSD, LFS (on Sparc_32 and i386)
Posts: 2,767

Original Poster
Blog Entries: 31

Rep: Reputation: 176Reputation: 176
Quote:
Originally Posted by willysr View Post
Is this what you are looking for?
It's now supported in -Current
That might be. I'll have to try that out.
 
Old 02-16-2011, 06:27 PM   #12
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8114Reputation: 8114Reputation: 8114Reputation: 8114Reputation: 8114Reputation: 8114Reputation: 8114Reputation: 8114Reputation: 8114Reputation: 8114Reputation: 8114
If you have a GPT disk, you still need to format a swap partition before starting setup (similar to using a LVM volume for swap): "mkswap /dev/sdX". If you do that, then setup will detect the swap partition and offer to use it.

Eric
 
2 members found this post helpful.
Old 02-16-2011, 07:03 PM   #13
piratesmack
Member
 
Registered: Feb 2009
Distribution: Slackware, Arch
Posts: 519

Rep: Reputation: 143Reputation: 143
Cool that the installer got GPT support.
Think it would work to use the -Current installer + 13.1 packages to install Slack 13.1 on GPT?
 
1 members found this post helpful.
Old 02-16-2011, 07:04 PM   #14
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 2,734

Rep: Reputation: 8989Reputation: 8989Reputation: 8989Reputation: 8989Reputation: 8989Reputation: 8989Reputation: 8989Reputation: 8989Reputation: 8989Reputation: 8989Reputation: 8989
Quote:
Originally Posted by piratesmack View Post
Cool that the installer got GPT support.
Think it would work to use the -Current installer + 13.1 packages to install Slack 13.1 on GPT?
Yes.
 
4 members found this post helpful.
Old 02-16-2011, 08:25 PM   #15
piratesmack
Member
 
Registered: Feb 2009
Distribution: Slackware, Arch
Posts: 519

Rep: Reputation: 143Reputation: 143
Heh, I like the version number shown in the new Current installer (13.37)

Last edited by piratesmack; 02-16-2011 at 08:29 PM.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Which distro(s) work with GPT partition table? ozegoods Linux - General 5 12-13-2010 06:57 PM
Is ubuntu or fedora supports installing on GPT-based partition? gabeyg Linux - General 1 08-19-2007 06:58 PM
slackware 10.1 can't see partition table ramke Slackware - Installation 2 04-26-2005 02:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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