Martins wrote:



Um, if you do this, you will more than likely destroy the filesystems as well, because the new partitions will not line up exactly with the old ones.

Anyway I don't think this is the problem. Afterall, WinXP booted fine before on this drive with LBA disabled, so something else is up. If you already made the right changes to the boot.ini file, then I suspect that a "fixboot" from the recovery mode of the WinXP CD will be necessary. This should not overwrite the MBR, only the boot loader that is at the beginning of the windows partition.

-Richard

--
gentoo-user@gentoo.org mailing list


there is no worry, writing new partition table give it the same values (partition start, end, type, order) as before and not a single bit is lost


What I am saying is that this is not possible with fdisk, because fdisk will insist on creating the new partitions aligned on cylinder boundaries, which will have moved in terms of logical sectors. Example:

Let's say you want a 100MB partition, or about 200000 512-byte sectors:

With non-LBA geometry, the math is 200000 sectors / (63 sectors/track * 16 heads) = 198.41 cylinders. Now round down to 198 cylinders and you get 199584 sectors in your partition

With LBA geometry, the math is 200000 / (63 sectors/track * 255 heads) = 12.449 cylinders. Again, round down to 12, and you get 192780 sectors in your partition. You can round up to 13 and get 208845, but you *cannot* get 199584. Possibly with another partitioning tool that allows you to specify the starting and ending heads as well as cylinders, but not with fdisk.

It is *possible* for this to work if you have just one huge partition, or if your partitions happen to end at even multiples of both (63 * 255) and (63 * 16).

And just for the sake of accuracy, the cylinder alignment thing is true for all partitions except:

- Cylinder 0, head 0 is reserved for the MBR, so any partition starting at cylinder 0 actually starts at head 1. - Logical partitions actually start at head 0, sector 1, because the first sector contains another partition table that points to the next partition.

-Richard

--
gentoo-user@gentoo.org mailing list

Reply via email to