From dd0c6c86c4896f483ca2bb4ac635e465989f67a0 Mon Sep 17 00:00:00 2001 From: superconvert <48017165+superconvert@users.noreply.github.com> Date: Thu, 28 Jul 2022 23:40:15 +0800 Subject: [PATCH] Delete mk_sdb.sh --- mk_sdb.sh | 37 ------------------------------------- 1 file changed, 37 deletions(-) delete mode 100644 mk_sdb.sh diff --git a/mk_sdb.sh b/mk_sdb.sh deleted file mode 100644 index 85faa25..0000000 --- a/mk_sdb.sh +++ /dev/null @@ -1,37 +0,0 @@ -#!/bin/sh - -#---------------------------------------------- -# -# 制作磁盘 -# -#---------------------------------------------- - -echo "${CYAN}开始制作磁盘...${NC}" - -# 创建磁盘 64M -dd if=/dev/zero of=extra.img bs=1M count=64 - -# 对磁盘进行分区一个主分区 -fdisk extra.img << EOF -n -p - - - -w -EOF - -echo "${GREEN}磁盘制作成功!!!${NC}" -echo ".........................................................." - -# 磁盘镜像挂载到具体设备 -loop_dev=$(losetup -f) - -# fdisk -l disk.img 查看 start 为 2048, unit 512 所以 -o 偏移扇区 1048576 = 2048 x 512 -losetup -o 1048576 ${loop_dev} extra.img - -# 对磁盘进行格式化 -mkfs.ext3 ${loop_dev} - -losetup -d ${loop_dev} -