Re: Devices/Partitions over 2TB

From: jmerkey
Date: Mon Mar 14 2005 - 19:20:15 EST



You have to ignore the partition table contents for ending cylinder. Use the following instead. You also
have to write your own FS or modify the partition code in Linux or you won't be able to use the storage. This
config option listed in the previous post only enables 64 bit LBA addressing, it does not fix the busted fdisk program
or the problems you will see with the partition tables.

i.e.

SystemDisk[j]->BytesPerSector = bdev_hardsect_size(bdev);
SystemDisk[j]->driveSectors = (LONGLONG)bdev->bd_disk->capacity;
SystemDisk[j]->driveSize = (LONGLONG)
((LONGLONG)bdev->bd_disk->capacity *
SystemDisk[j]->BytesPerSector);
SystemDisk[j]->max_sg_elements = bio_get_nr_vecs(bdev);

the bd_disk->capacity reports the actual drive size, but fdisk ignores it.

Good Luck.

Jeff


Miquel van Smoorenburg wrote:

In article <200503141644.j2EGiVh0000022634@xxxxxxxxxxxxxxxxxxxxxx>,
Berkley Shands <berkley@xxxxxxxxxxxx> wrote:


I have not found any documentation of efforts to overcome the 2TB
partition limit,



config LBD
bool "Support for Large Block Devices"
depends on X86 || MIPS32 || PPC32 || ARCH_S390_31 || SUPERH
help
Say Y here if you want to attach large (bigger than 2TB) discs to
your machine, or if you want to have a raid or loopback device
bigger than 2TB. Otherwise say N.

Mike.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/




-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/