Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: wd1: mbr partition exceeds disk size

On Thu, Apr 14, 2011 at 09:29:54AM -0500, Eric Haszlakiewicz wrote:

> > That's correct, but it describes a partition size of exactly 2TB
> > while the disklabel can only represent a disk size of 2TB-512.
> eh?  Isn't the size of the fdisk partition still 2TB-512, but it just happens 
> to start a 
> sector later?

The partition size is not checked. The test verifies that the partition
does not extend beyond the last sector of the disk.

disk size = 2TB-512
disk last sector = 0xfffffffe

partition start = 512
partition size = 2TB-512
partition last sector = 0xffffffff

> So perhaps a fix/workaround is to change the start of the MBR to be 0, not 1.
> <         mbr->mbr_part[0].part_start_lo = htole16(1);
> >         mbr->mbr_part[0].part_start_lo = htole16(0);

Wouldn't help if you get a protective MBR written by another system
that follows the standard.

                                Michael van Elst
                                "A potential Snark may lurk in every tree."

Home | Main Index | Thread Index | Old Index