On Freitag, 12. Januar 2018 22:43:16 CET Brüns, Stefan wrote: > On Freitag, 12. Januar 2018 21:30:48 CET Freek de Kruijf wrote: > > > which shows the same behavior. > > > > Tried again with a new 16 GB microSD card, which succeeded. > > I collected on the console the boot output, logged in and typed "fdisk -l > > /dev/mmcblk0", both using this 16 GB card and an 8 GB card. The 8 GB card > > shows the above 4 partions, the 16 GB card shows the proper 3 partitions. > > During some experimentation with gparted I found that not all sizes of the > > ext4 partition are accepted. Maybe this is the cause of the wrong > > partitioning on the 8 GB card. I used another 16 GB card also, which > > behaved like the 8 GB card. So it seems to be related to the size of the > > micro SD card. > > When a once used SD card gets "refilled" using dd, it will still have the > GPT backup at the "end" of the card, which may confuse the kernel. Try > erasing the last sector of the card, e.g.: > > card=/dev/sdb > size=`/usr/sbin/blockdev --getsize /dev/sda` > dd if=/dev/zero of=/dev/sda obs=1 seek=$((size - 1024)) count=1024
should be size=`/usr/sbin/blockdev --getsize64 $card` dd if=/dev/zero of=$card obs=1 seek=$((size - 1024)) count=1024 Stefan -- To unsubscribe, e-mail: [email protected] To contact the owner, e-mail: [email protected]
