'create_simple_image.sh' script creates image but warns sectors "Value out of range"
Created by: sanjumn
The 'create_simple_image.sh' script, downloaded from following link, does create an image but warns sectors "value out of range" https://github.com/hehopmajieh/olinuxino_configs/blob/master/A64-OLinuXino/Tools/create_simple_image.sh
Following is the sequence of messages displayed after executing 'create_simple_image.sh' script:
mypc@ubuntu:~/A64-OLinuXino$ ./create_simple_image.sh Olinuxino-A64.img
Creating image Olinuxino-A64.img of size 100 MiB ...
++ dd if=/dev/zero bs=1M count=20 of=Olinuxino-A64.img
20+0 records in
20+0 records out
20971520 bytes (21 MB, 20 MiB) copied, 0.0335225 s, 626 MB/s
++ dd if=blobs/boot0.bin conv=notrunc bs=1k seek=8 of=Olinuxino-A64.img
32+0 records in
32+0 records out
32768 bytes (33 kB, 32 KiB) copied, 0.0103312 s, 3.2 MB/s
++ dd if=build/u-boot-with-dtb.bin conv=notrunc bs=1k seek=19096 of=Olinuxino-A64.img
922+0 records in
922+0 records out
944128 bytes (944 kB, 922 KiB) copied, 0.00143412 s, 658 MB/s
++ dd if=/dev/zero bs=1M count=50 of=Olinuxino-A64.img1
50+0 records in
50+0 records out
52428800 bytes (52 MB, 50 MiB) copied, 0.155965 s, 336 MB/s
++ mkfs.vfat -n BOOT Olinuxino-A64.img1
mkfs.fat 3.0.28 (2015-05-16)
++ dd if=Olinuxino-A64.img1 conv=notrunc oflag=append bs=1M seek=20 of=Olinuxino-A64.img
50+0 records in
50+0 records out
52428800 bytes (52 MB, 50 MiB) copied, 0.164734 s, 318 MB/s
++ rm -f Olinuxino-A64.img1
++ dd if=/dev/zero bs=1M count=30 of=Olinuxino-A64.img2
30+0 records in
30+0 records out
31457280 bytes (31 MB, 30 MiB) copied, 0.0300564 s, 1.0 GB/s
++ mkfs.ext4 -F -b 4096 -E stride=2,stripe-width=1024 -L rootfs Olinuxino-A64.img2
mke2fs 1.42.13 (17-May-2015)
Discarding device blocks: done
Creating filesystem with 7680 4k blocks and 7680 inodes
Allocating group tables: done
Writing inode tables: done
Creating journal (1024 blocks): done
Writing superblocks and filesystem accounting information: done
++ dd if=Olinuxino-A64.img2 conv=notrunc oflag=append bs=1M seek=70 of=Olinuxino-A64.img 30+0 records in 30+0 records out 31457280 bytes (31 MB, 30 MiB) copied, 0.0633444 s, 497 MB/s ++ rm -f Olinuxino-A64.img2 ++ fdisk Olinuxino-A64.img ++ cat
Welcome to fdisk (util-linux 2.27.1). Changes will remain in memory only, until you decide to write them. Be careful before using the write command.
Device does not contain a recognized partition table. Created a new DOS disklabel with disk identifier 0xd5a9e211.
Command (m for help): Created a new DOS disklabel with disk identifier 0xb1762524.
Command (m for help): Partition type p primary (0 primary, 0 extended, 4 free) e extended (container for logical partitions) Select (default p): Partition number (1-4, default 1): First sector (2048-204799, default 2048): Last sector, +sectors or +size{K,M,G,T,P} (40960-204799, default 204799): Created a new partition 1 of type 'Linux' and of size 50 MiB.
Command (m for help): Selected partition 1 Partition type (type L to list all types): Changed type of partition 'Linux' to 'W95 FAT32 (LBA)'.