1 |
Martins wrote: |
2 |
|
3 |
> |
4 |
>> |
5 |
>> Um, if you do this, you will more than likely destroy the filesystems |
6 |
>> as well, because the new partitions will not line up exactly with the |
7 |
>> old ones. |
8 |
>> |
9 |
>> Anyway I don't think this is the problem. Afterall, WinXP booted |
10 |
>> fine before on this drive with LBA disabled, so something else is |
11 |
>> up. If you already made the right changes to the boot.ini file, then |
12 |
>> I suspect that a "fixboot" from the recovery mode of the WinXP CD |
13 |
>> will be necessary. |
14 |
>> This should not overwrite the MBR, only the boot loader that is at |
15 |
>> the beginning of the windows partition. |
16 |
>> |
17 |
>> -Richard |
18 |
>> |
19 |
>> -- |
20 |
>> gentoo-user@g.o mailing list |
21 |
> |
22 |
> |
23 |
> there is no worry, writing new partition table give it the same values |
24 |
> (partition start, end, type, order) as before and not a single bit is |
25 |
> lost |
26 |
> |
27 |
|
28 |
What I am saying is that this is not possible with fdisk, because fdisk |
29 |
will insist on creating the new partitions aligned on cylinder |
30 |
boundaries, which will have moved in terms of logical sectors. Example: |
31 |
|
32 |
Let's say you want a 100MB partition, or about 200000 512-byte sectors: |
33 |
|
34 |
With non-LBA geometry, the math is 200000 sectors / (63 sectors/track * |
35 |
16 heads) = 198.41 cylinders. Now round down to 198 cylinders and you |
36 |
get 199584 sectors in your partition |
37 |
|
38 |
With LBA geometry, the math is 200000 / (63 sectors/track * 255 heads) = |
39 |
12.449 cylinders. Again, round down to 12, and you get 192780 sectors |
40 |
in your partition. You can round up to 13 and get 208845, but you |
41 |
*cannot* get 199584. Possibly with another partitioning tool that |
42 |
allows you to specify the starting and ending heads as well as |
43 |
cylinders, but not with fdisk. |
44 |
|
45 |
It is *possible* for this to work if you have just one huge partition, |
46 |
or if your partitions happen to end at even multiples of both (63 * 255) |
47 |
and (63 * 16). |
48 |
|
49 |
And just for the sake of accuracy, the cylinder alignment thing is true |
50 |
for all partitions except: |
51 |
|
52 |
- Cylinder 0, head 0 is reserved for the MBR, so any partition starting |
53 |
at cylinder 0 actually starts at head 1. |
54 |
- Logical partitions actually start at head 0, sector 1, because the |
55 |
first sector contains another partition table that points to the next |
56 |
partition. |
57 |
|
58 |
-Richard |
59 |
|
60 |
-- |
61 |
gentoo-user@g.o mailing list |