On Tue, Oct 12, 2010, Dave Martin wrote:
So we can make the /boot partition look like it has 63*255 geometry, and we can make it start at sector offset 63.
Right; ideally, we'd offset it so that it's still on a nice boundary e.g. we start at sector 512 (1, 8, 8)
Everything else can be determined based on sane absolute sector offsets.
yup, using _only_ sector offsets and not caring about chs
cat <<EOF | sfdisk --force -S$target_fake_spt -H$target_fake_heads -us "$device"
s/-us/-uS/?
# --force is needed so that sfdisk accepts the non-cylinder aligned partition boundaries.
Ok; that seems all good!