From 2fa7367de934ad4ecf1268bc8f3c9729dc45a492 Mon Sep 17 00:00:00 2001 From: Nasir Hossain Date: Fri, 16 Feb 2024 12:02:11 +0600 Subject: [PATCH] fix: incorrect dd command The bs ins't the image size. rather it's the number of byte that is read at time. Thus the setting it to something like 1M is enough. And is the number of times it repeats. Thus setting count to 256 should suffice. --- build.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.bash b/build.bash index 6a32aad..4c2e266 100755 --- a/build.bash +++ b/build.bash @@ -47,7 +47,7 @@ cd busybox-${BUSYBOX_MAJOR}.${BUSYBOX_MINOR}.${BUSYBOX_PATCH} cd .. # Create the bootable image -dd if=/dev/zero of=dist/boot/boot.img bs=2G count=64 +dd if=/dev/zero of=dist/boot/boot.img bs=1M count=256 mkfs.ext4 dist/boot/boot.img mkdir -p dist/mnt sudo mount dist/boot/boot.img dist/mnt