From 169ac4d32275f8f307770cda592eeb91aabe56b2 Mon Sep 17 00:00:00 2001 From: bin456789 Date: Tue, 13 Aug 2024 23:20:06 +0800 Subject: [PATCH] =?UTF-8?q?dd:=20=E4=BF=AE=E5=A4=8D=E4=BA=86=E5=BD=93?= =?UTF-8?q?=E9=95=9C=E5=83=8F=E7=9A=84=20efi=20=E5=88=86=E5=8C=BA=E4=B8=8D?= =?UTF-8?q?=E6=98=AF=E7=AC=AC=E4=B8=80=E4=B8=AA=E5=88=86=E5=8C=BA=E6=97=B6?= =?UTF-8?q?=EF=BC=8C=E5=88=A4=E6=96=AD=E9=94=99=E8=AF=AF=E4=B8=BA=E9=9D=9E?= =?UTF-8?q?=20efi=20=E9=95=9C=E5=83=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- reinstall.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/reinstall.sh b/reinstall.sh index 8d4f0b0..866ae24 100644 --- a/reinstall.sh +++ b/reinstall.sh @@ -1044,11 +1044,11 @@ setos() { # od 在 coreutils 里面,好像要配合 tr 才能删除空格 # hexdump 在 util-linux / bsdmainutils 里面 # xxd 要单独安装,el 在 vim-common 里面 - # xxd -l $((34 * 4096)) -ps -c 512 + # xxd -l $((34 * 4096)) -ps -c 128 # 仅打印前34个扇区 * 4096字节(按最大的算) - # 每行512字节 - "$img_type" -dc <"$tmp/img-test" | hexdump -n $((34 * 4096)) -e '512/1 "%02x" "\n"' -v >$tmp/img-test-hex + # 每行128字节 + "$img_type" -dc <"$tmp/img-test" | hexdump -n $((34 * 4096)) -e '128/1 "%02x" "\n"' -v >$tmp/img-test-hex if grep -q '^28732ac11ff8d211ba4b00a0c93ec93b' $tmp/img-test-hex; then echo 'DD: Image is EFI.' else