We have Beaglbone black based custom board with 256MB RAM and 4GB eMMC.
We have script to flash software on the board.
Script erases gpt partition table using following commands
#Delete primary gpt (first 17KiB) dd if=/dev/zero of=/dev/mmcblk0 bs=1024 count=17 #Delete secondary gpt (last 17KiB) dd if=/dev/zero of=/dev/mmcblk0 seek=3735535 bs=1024 count=17
Partitions gets deleted however script re-partitions eMMC again in the same number of partitions.
After that it tries to format each partition using
mkfs.ext4 (e2fsprogs version 1.42.13).
Now while formatting a partition
mkfs.ext4 complains that partition has filesystem on it and it was mounted at particular date in past and ask if it should proceed ?
/dev/mmcblk0p15 contains a ext4 file system labelled 'rootfs' last mounted on /mnt/rfs_src on Fri Feb 16 13:52:18 2018 Proceed anyway? (y,n)
This was not happening in past i.e. with e2fsprog version
same script used to work.
From release note of
e2fsprog-1.42.13 I see that
last mounted is added to some structure.
Now question is how can we remove this
last mounted information from partition?
wipfs -a but it has the same behavior.
One way to zero while eMMC, however that will take lot of time.
Any suggestion/pointers ?