我提供的脚本只是案例展示,真实场景需要自行修改.(正好我今天看到一个规范的bat脚本,我放出来,大家一起学习下) 要求:将20G的磁盘1,分出4G为主分区,4G扩展分区(2个2G逻辑分区) 试验环境: 1.主机与其他多台计算都可以建立$IPC连接,主机上共享Disk目录,其中放有: 2.在客户端运行master.bat脚本,可用其他脚本或者远程调用 脚本: disk1config.txt Rem Seletct Disk1 Select disk 1 list partition Rem Cle
Use ntfsfix in the terminal , even if you can't access Windows sudo ntfsfix /dev/XY //Previous wasn't working for me. where XY is the partition e.g sda2 or sdb1 ntfsfix repairs some fundamental NTFS inconsistencies, resets the NTFS journal file and s
###1.磁盘分区####fdisk /dev/磁盘fdisk /dev/vdbWelcome to fdisk (util-linux 2.23.2). 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 tableBuilding a