On Thu Feb 2 6:08 , Robert Nelson <robertcnelson@gmail.com> sent:
The real change, with fdisk 2.18+ the first sector can't be "1", needs
to be 2048 or greater..Command (m for help): Partition type:
p primary (0 primary, 0 extended, 4 free)
e extended
Select (default p): Partition number (1-4, default 1): First sector
(2048-3981311, default 2048):so the real fix i should have done, starting with 2.18 was:
+ FDISK_FIRST_SECTOR="1"
if test $(fdisk -v | grep -o -E '2\.[0-9]+' | cut -d'.' -f2) -ge 18 ; then
- FDISK_DOS="-c=dos -u=cylinders"
+ FDISK_FIRST_SECTOR="2048"
fi-fdisk ${FDISK_DOS} ${MMC}
+fdisk ${MMC}
n
p
1
-1
+${FDISK_FIRST_SECTOR}
+64M
t
e
Thank you, Robert, for digging into this.
As a relative newb to both Linux and Beagleboard,
I find this pretty amazing, and more than a bit
intimidating.
I wonder how many other BB owners have been
affected by this, and how many web-based SD
card format procedures people have tried before
they give up...
I've been wanting to dig in to more meaty matters
like u-boot or kernel builds -- but I've been
stuck for weeks over a quirk in fdisk and OMAP's
notion of what constitutes a proper FAT partition.
So how do we go about repairing/updating all those
now-moot procedures scattered about the web?
/Rafe B.