Summary: | mac-fdisk suggests wrong disk size on large devices | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Robin Johnson <robbat2> |
Component: | [OLD] Core system | Assignee: | PPC Porters <ppc> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | Compute Disk Size Patch |
Description
Robin Johnson
![]() ![]() ![]() ![]() Created attachment 139155 [details, diff]
Compute Disk Size Patch
Can you please try this patch, then run mac-fdisk again? It should print some debug info about how it determined the size of the disk. Thanks!
# ./pdisk /dev/sdb stat: mode = 060640, type=Block size = 0, blocks = 0 BLKGETSIZE:size in blocks = 1465149168 HDIO_GETGEO: heads=255, sectors=63, cylinders=25665, start=0, total=412308225 llseek to end of device failed on second try /dev/sdb Command (? for help): i map already exists do you want to reinit? [n/y]: y stat: mode = 060640, type=Block size = 0, blocks = 0 BLKGETSIZE:size in blocks = 1465149168 HDIO_GETGEO: heads=255, sectors=63, cylinders=25665, start=0, total=412308225 llseek to end of device failed on second try size of 'device' is 1073741825 blocks: new size of 'device' is 1073741825 blocks Command (? for help): p /dev/sdb # type name length base ( size ) system /dev/sdb1 Apple_partition_map Apple 63 @ 1 ( 31.5k) Partition map /dev/sdb2 Apple_Free Extra 1073741761 @ 64 (512.0G) Free space Block size=512, Number of Blocks=1073741825 DeviceType=0x0, DeviceId=0x0 Command (? for help): This should be fixed in mac-fdisk-1.0.6-r7, but I think we're still limited to up to 2TB disks. I think this might be a limitation of the disk label, but I'm not 100% sure. |