Slackware This Forum is for the discussion of Slackware Linux.
|
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.
|
|
|
02-05-2011, 09:44 PM
|
#1
|
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
Rep:
|
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.
|
|
|
02-06-2011, 12:45 AM
|
#2
|
LQ 5k Club
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,443
|
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.
|
|
|
02-06-2011, 08:59 AM
|
#3
|
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
Rep:
|
Quote:
Originally Posted by allend
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.
|
|
|
02-06-2011, 10:03 AM
|
#4
|
LQ Newbie
Registered: Sep 2009
Location: Alabama, USA
Distribution: Slackware
Posts: 9
Rep:
|
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.
|
|
|
02-06-2011, 10:36 AM
|
#5
|
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
Rep:
|
Quote:
Originally Posted by rob0
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.
|
|
|
02-07-2011, 11:48 AM
|
#6
|
Member
Registered: May 2005
Location: Greece
Posts: 441
Rep:
|
Quote:
Originally Posted by Skaperen
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.
|
|
|
02-09-2011, 11:31 AM
|
#7
|
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
Rep:
|
Quote:
Originally Posted by imitheos
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.
|
|
|
02-16-2011, 03:34 AM
|
#8
|
LQ Newbie
Registered: Jan 2005
Location: netherlands
Distribution: slackware64 13.37 + current
Posts: 22
Rep:
|
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.
|
02-16-2011, 05:56 AM
|
#9
|
Senior Member
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,741
|
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).
|
|
|
|
02-16-2011, 03:56 PM
|
#10
|
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
Rep:
|
Quote:
Originally Posted by lemmens
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).
|
|
|
02-16-2011, 03:58 PM
|
#11
|
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
Rep:
|
Quote:
Originally Posted by willysr
Is this what you are looking for?
It's now supported in -Current
|
That might be. I'll have to try that out.
|
|
|
02-16-2011, 06:27 PM
|
#12
|
Slackware Contributor
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559
|
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.
|
02-16-2011, 07:03 PM
|
#13
|
Member
Registered: Feb 2009
Distribution: Slackware, Arch
Posts: 519
Rep:
|
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.
|
02-16-2011, 07:04 PM
|
#14
|
Slackware Maintainer
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 2,734
|
Quote:
Originally Posted by piratesmack
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.
|
02-16-2011, 08:25 PM
|
#15
|
Member
Registered: Feb 2009
Distribution: Slackware, Arch
Posts: 519
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 02:23 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
|
|