From 571ca963c2dc724c323a36373ddf79cc8bd34362 Mon Sep 17 00:00:00 2001 From: superconvert <48017165+superconvert@users.noreply.github.com> Date: Thu, 28 Jul 2022 23:39:59 +0800 Subject: [PATCH] Delete cat_img.sh --- cat_img.sh | 13 ------------- 1 file changed, 13 deletions(-) delete mode 100644 cat_img.sh diff --git a/cat_img.sh b/cat_img.sh deleted file mode 100644 index 158ac31..0000000 --- a/cat_img.sh +++ /dev/null @@ -1,13 +0,0 @@ -loop_dev=$(losetup -f) - -# fdisk -l disk.img 查看 start 为 2048, unit 512 所以 -o 偏移扇区 1048576 = 2048 x 512 -losetup -o 1048576 ${loop_dev} disk.img - -# 挂载磁盘到本地目录 -mkdir -p ./mnt1 -mount -t ext3 ${loop_dev} ./mnt1 -echo "/ ---------------------------------------" -du ./mnt1 -h -umount ./mnt1 -rm -rf mnt1 -losetup -d ${loop_dev}