LinuxQuestions.org
Register a domain and help support LQ
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 10-07-2009, 09:18 AM   #1
Alkisx
Member
 
Registered: Apr 2006
Location: Greece
Distribution: Slackware
Posts: 74

Rep: Reputation: 16
Slackware64 Setup does not see gpt partitions created with parted on raid5


Trying to install Slackware64

I have a 3 terrabytes raid 5 (hardware raid, 4 disks + 1 spare).

2.7 of them will be used as one partition for storage (/home).

cfdisk cannot create such a large partition, so I tried parted.I created all the partitions after doing mklabel gpt. All partitions created successfull. Also checked twice with the print command inside parted.

Running then setup, I get a message that there are no partitions for the setup to proceed. But there are.

Any help?
 
Old 10-07-2009, 12:34 PM   #2
AigarsABCD
LQ Newbie
 
Registered: Jun 2008
Location: Latvia
Distribution: Slackware
Posts: 5

Rep: Reputation: 0
What exactly is the error message you receive in cfdisk?
Because 2.7 TB is not a "large" partition for it and there should not be any problems with that.
I have successfully created 8 TB partitions with cfdisk.
And I think the limit is only for filesystem itself (1 000 000 TB for ext4).

What does "fdisk -l" show?


EDIT: Sorry, did not see the "GPT" thing at first. Could anyone explain it also to me, what this GPT acctually is?
Once I tried to install Slackware on an Intel Macintosh and got an error message "cfdisk do not support GPT" or something like that. I used "cfdisk -z" and it worked - partitioned and installed fine.

Last edited by AigarsABCD; 10-07-2009 at 01:23 PM.
 
0 members found this post helpful.
Old 10-07-2009, 04:57 PM   #3
Alkisx
Member
 
Registered: Apr 2006
Location: Greece
Distribution: Slackware
Posts: 74

Original Poster
Rep: Reputation: 16
Thank you for your reply,

I've seen by others that cfdisk does not support partitions over 2 TB.

I first did a cfdisk /dev/sda, created my partitions write table, and then exit.

After running again cfdisk on the raid, I saw that only the first partition (which was 50Gb) was there, and there was another one of about 500 gbytes. all the rest was just unpartitioned space.

deleted all and created again. Same thing though.

Then I decided to use parted. Without doing mklabel gpt on the raid, it could not create partitions over 2TB. But with gpt did it quite well.

Anyway since I had my partitions ready, I don't get it why slackware could not see the partitions.

GPT is the GUID Partition Table. It is a more flexible partitioning scheme than the old well known MBR. You can find more information by searching the web.

As of the cfdisk -z I don't know, I try it.

But does anyone know why slack could not see gpt partitions?
 
Old 10-08-2009, 03:44 AM   #4
Alkisx
Member
 
Registered: Apr 2006
Location: Greece
Distribution: Slackware
Posts: 74

Original Poster
Rep: Reputation: 16
Anyone? I can't be the only one in this world having this problem
 
Old 10-08-2009, 06:15 AM   #5
Alkisx
Member
 
Registered: Apr 2006
Location: Greece
Distribution: Slackware
Posts: 74

Original Poster
Rep: Reputation: 16
As I did some search, I found that the kernel that is booting on the slackware (huge.s) dvd does not support gpt, and that I have to reconfigure it by setting the

CONFIG_EFI_PARTITION=y

which is commented on the config file on the dvd's huge.s kernel

Is it possible to recreated the kernel image that way?
I don't know because in the past I used to recompile kernels but on an installed slackware. Since I am only booting from the dvd I don't know if is possible.

What I am thinking is:

recompile the huge.s with the above option set, and burning again a dvd with that kernel only changed and booting from it.

Can I recompile that kernel by booting only from dvd?
 
Old 10-08-2009, 12:30 PM   #6
granth
Member
 
Registered: Jul 2004
Location: USA
Distribution: Slackware64
Posts: 210

Rep: Reputation: 39
Talking

What are your reasons for using GPT instead of MBR?


EDIT:
http://www.ibm.com/developerworks/linux/library/l-gpt/

If you are booting a GPT partition, you will need to switch to Grub. Slack's default is Lilo.

I don't think you can compile a kernel from the bootable DVD. You will need to compile the replacement kernel on a Linux system with gcc installed. Replace the kernel in slackware64-13.0/kernels/huge.s/ and burn a new DVD. I've never done this, but it doesn't look that difficult. However, I hope you have a really good reason for using GPT before doing this.

Last edited by granth; 10-08-2009 at 12:53 PM.
 
Old 10-08-2009, 02:34 PM   #7
Alkisx
Member
 
Registered: Apr 2006
Location: Greece
Distribution: Slackware
Posts: 74

Original Poster
Rep: Reputation: 16
As I said before, the reason is that I want to create a partition bigger than 2GB.

With MBR this is not possible.

As I thought, the only solution is to recompile the huge.s in a system with slackware installed. This is what I will do.

Thank you all for your help
 
Old 10-08-2009, 02:53 PM   #8
granth
Member
 
Registered: Jul 2004
Location: USA
Distribution: Slackware64
Posts: 210

Rep: Reputation: 39
If that is your only reason for using GPT, you should consider LVM instead.

I have a CentOS box which has a 2.4TB hardware Raid-5 partition. No problems there, and I'm sure it would work just fine in Slackware.

Code:
fdisk -l /dev/VolGroup01/LogVol00

Disk /dev/VolGroup01/LogVol00: 2663.9 GB, 2663919910912 bytes
255 heads, 63 sectors/track, 323869 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/VolGroup01/LogVol00 doesn't contain a valid partition table
EDIT:
After reading more about GPT, I think Slackware should include GPT/EFI support in the huge and generic kernels. I'm not a big fan of LVM, and considering the rate at which hard drives are growing in size, Slackware needs this feature.

Last edited by granth; 10-08-2009 at 03:31 PM.
 
Old 10-08-2009, 03:51 PM   #9
granth
Member
 
Registered: Jul 2004
Location: USA
Distribution: Slackware64
Posts: 210

Rep: Reputation: 39
Another thought - Is it possible for you to install Slackware to a MBR-based partition and add a large /home partition later?

This would allow you to install with the regular DVD and easily compile a custom kernel with GPT/EFI enabled. Then you could create, format, and mount your (GPT) home partition.
 
Old 10-13-2009, 10:02 AM   #10
Alkisx
Member
 
Registered: Apr 2006
Location: Greece
Distribution: Slackware
Posts: 74

Original Poster
Rep: Reputation: 16
I don't know if I can combine mbr+gpt in ONE device (/dev/sda).
I don't think it can be done.

Anyway, I decided to to make a smaller partition with 2tb, and the rest of it have it as backup as another partition.

After finished installation, I realized that MBR does not have limit of 2TB for a partition, but it has limit for a total of about 2.2Tb on all the partitions of one device.

So using MBR is not an option at all anymore for me.

You can see this thread http://www.linuxquestions.org/questi...t-seen-760785/

Which I started after (thinking) that I had installed successfull slackware on my server.

I said on the end That I tried to make a new dvd by replacing the huge.s kernel with a modified one including EFI for gpt, but with no success.
 
Old 10-13-2009, 12:59 PM   #11
granth
Member
 
Registered: Jul 2004
Location: USA
Distribution: Slackware64
Posts: 210

Rep: Reputation: 39
Quote:
I don't know if I can combine mbr+gpt in ONE device (/dev/sda).
I don't think it can be done.
You're probably right.

You could add two smaller disks (raid1 mirror), and use them as the root disk (MBR). Once Slackware is installed, you can rebuild your kernel, partition and format your GPT array, and then mount it. Of course, this probably isn't your ideal solution, as it would cost more money, and suck more power. However, keeping OS and DATA on different arrays isn't a bad thing to do... It may be your only option.
 
  


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
How to mount hard RAID5 array with software RAID0 and GPT? Chunky77 Linux - Newbie 9 08-13-2009 12:32 AM
problem with using parted on mounted partitions foampile Linux - Newbie 3 02-27-2009 04:52 PM
gpt label in parted, partitions look OK. GrUB not booting 64bit OS on 8th primary digital8doug Linux - Newbie 1 12-31-2008 02:20 PM
Help with Parted & Resizing Partitions beley Linux - Hardware 2 02-27-2004 11:42 PM
Parted and Partitions questions Mega Man X Linux - Software 2 09-21-2003 11:22 PM


All times are GMT -5. The time now is 05:01 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration