On Tuesday 12 October 2010, Loïc Minier wrote: > 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)
IIRC, Windows uses 1MB partition alignment these days. It's probably a good idea to do the same everywhere because SD card vendors might decide to "optimize" for the common case. > > 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. I think --linux should allow you to do this as well without dropping all the safety nets. Arnd _______________________________________________ linaro-dev mailing list linaro-dev@lists.linaro.org http://lists.linaro.org/mailman/listinfo/linaro-dev