View previous topic :: View next topic |
Author |
Message |
majoron Apprentice
Joined: 12 Oct 2005 Posts: 243 Location: Frankfurt
|
Posted: Wed Jun 18, 2008 5:42 pm Post subject: [solved] maximum partition size |
|
|
Hi,
I've just set up a raid (raid5) having 4TB of total capacity and wanted to make a partition with this size.
When I use fdisk or cfdisk to make the partition, they both tell me that the disk is 4TB big, but they allow only about 2TB in one partition.
I have checked that I have "Support for Large Block Devices" enabled in the kernel, so in principle I'd be able to have a disk device with size bigger than 2TB.
What am I doing wrong?
Thanks in advance. _________________ Computers are like air conditioners, they stop working properly if you open Windows
Last edited by majoron on Thu Jun 19, 2008 12:12 pm; edited 1 time in total |
|
Back to top |
|
|
Berticus n00b
Joined: 16 Jan 2006 Posts: 74
|
|
Back to top |
|
|
frostschutz Advocate
Joined: 22 Feb 2005 Posts: 2977 Location: Germany
|
Posted: Wed Jun 18, 2008 6:14 pm Post subject: |
|
|
If you want the whole thing to be one partition, you can just mkfs the device directly, no need to actually partition it. |
|
Back to top |
|
|
tgR10 Apprentice
Joined: 23 Oct 2007 Posts: 262 Location: caly ten ambaras
|
|
Back to top |
|
|
manaka Apprentice
Joined: 23 Jul 2007 Posts: 178 Location: Spain
|
Posted: Wed Jun 18, 2008 8:44 pm Post subject: |
|
|
The standard msdos partition table has a 2 TB limit... You need to use another format like GPT that doesn't have this limit...
parted is able to handle GPT... You also need a kernel supporting GPT (CONFIG_EFI_PARTITION).
As for GRUB, latest versions in Portage include a patch to make it able to handle GPT... _________________ Javier Miqueleiz
"Listen to your heart. It knows all things, because it came from the Soul of the World, and it will one day return there." |
|
Back to top |
|
|
majoron Apprentice
Joined: 12 Oct 2005 Posts: 243 Location: Frankfurt
|
Posted: Thu Jun 19, 2008 12:11 pm Post subject: |
|
|
Thanks a lot to everyone for sharing his/her wisdom.
Quote: | sudo su
cd /usr/src/linux && make menuconfig
--- Enable the block layer --->
[*] Support for Large Block Devices |
As you can see my first post says that this was already enabled.
I didn't mention it, but I also (naively) tried it with parted. I didn't get it. However manaka gave me the key:
Quote: | The standard msdos partition table has a 2 TB limit... You need to use another format like GPT that doesn't have this limit...
parted is able to handle GPT... You also need a kernel supporting GPT (CONFIG_EFI_PARTITION).
As for GRUB, latest versions in Portage include a patch to make it able to handle GPT... |
I didn't find this option in the kernel, but fortunately it wasn't necessary to tune the kernel (whatever option is needed was already selected); moreover the disk is going to be used as data disk, so there are no need of boot loaders tricks.
So I started parted and before making the partition with "mkpart" I did the following:
And "mkpart" works now with the whole disk. Gracias manaka
(Just as an informative note: according to wikipedia, in order to have more than 2TiB with ext3 one has to select a block size bigger or equal than 2KiB, and that's what I did)
Quote: | If you want the whole thing to be one partition, you can just mkfs the device directly, no need to actually partition it. |
Thanks; it looks also promising, but it was my "b" plan. As parted worked fine there was no need of anything else.
Best regards. _________________ Computers are like air conditioners, they stop working properly if you open Windows |
|
Back to top |
|
|
|