一、通过管理员选择创建、格式化、挂载新添加的磁盘脚本
#! /bin/bash
echo ==============================
PS3=chose which disk you want to create:
select W in `ls /dev/sd*|grep -o 'sd[b-z]'|uniq` quit
do
case $W in
sda)
fdisk -l /dev/sda
break;;
sd[b-z])
echo n
p
w | f
一、通过管理员选择创建、格式化、挂载新添加的磁盘脚本
#! /bin/bash
echo ==============================
PS3=chose which disk you want to create:
select W in `ls /dev/sd*|grep -o 'sd[b-z]'|uniq` quit
do
case $W in
sda)
fdisk -l /dev/sda
break;;
sd[b-z])
echo n
p
w | f