Sorry for coming back late to this.
Here is the contents from the partition_data file:
Code:
0,66,82
,131,83
,523,83
,,85
,1045,83
,,83
and that's the partition table from "sfdisk -l /dev/sda":
Code:
/ # sfdisk -l /dev/sda
Disk /dev/sda: 121601 cylinders, 255 heads, 63 sectors/track
Warning: extended partition does not start at a cylinder boundary.
DOS and Linux will interpret the contents differently.
Warning: The partition table looks like it was made
for C/H/S=*/16/63 (instead of 121601/255/63).
For this listing I'll assume that geometry.
Units = cylinders of 516096 bytes, blocks of 1024 bytes, counting from 0
Device Boot Start End #cyls #blocks Id System
/dev/sda1 0+ 65 66- 33263+ 82 Linux swap / Solaris
/dev/sda2 66 196 131 66024 83 Linux
/dev/sda3 197 719 523 263592 83 Linux
/dev/sda4 720 121600 120881 60924024 85 Linux extended
/dev/sda5 720+ 1764 1045- 526679+ 83 Linux
/dev/sda6 1765+ 121600 119836- 60397343+ 83 Linux
/ #
The interesting part is that sfdisk didn't say:
Code:
Warning: The partition table looks like it was made
for C/H/S=*/16/63 (instead of 121601/255/63).
For this listing I'll assume that geometry.
at the beginning.
It didn't give any errors or warnings. It simply didn't create /dev/sda5 and /dev/sda6.
When it ran ONCE with "sfdisk -H 16 /dev/sda < partition_data" then it gives the above warning when running without "-H 16" again.
I'll see to compile another version of sfdisk and try out this.