SATA disk larger than 2TB in Debian image

Started by T.Urban, January 28, 2014, 10:12:19 PM

Previous topic - Next topic

T.Urban

Hi everyone,
after several days of struggling with formatting and mounting my 3TB SATA HDD, I have found that thanks to choosing not large enough data type for GPT size, the Debian image is able to use <2TB HDDs.

I'm not skilled in this, so could someone easily modify & recompile the image so I can use my 3TB HDD?

I think Iit is just a matter of u-boot. I've found this:

https://github.com/linux-sunxi/u-boot-sunxi/blob/sunxi/disk/part_efi.c
/*
* Problems with CONFIG_SYS_64BIT_LBA:
*
* struct disk_partition.start in include/part.h is sized as ulong.
* When CONFIG_SYS_64BIT_LBA is activated, lbaint_t changes from ulong to uint64_t.
* For now, it is cast back to ulong at assignment.
*
* This limits the maximum size of addressable storage to < 2 Terra Bytes
*/


Thanks for help
Tomas

progmetalbg

There is a topic in linux-sunxi FAQ about this problem:

http://linux-sunxi.org/Frequently_asked_questions

and also in linux-sunxi mailing list:

https://groups.google.com/forum/#!msg/linux-sunxi/Vo9pyf5h9Uw/_CQ8xvyFfdgJ

To summarize the links above, the Linux kernel should be recompiled with support for large (> 2 TB) disks.