输入fdisk -l 查看硬盘信息
[root@VM_0_11_centos ~]# fdisk -l
Disk /dev/vda: 53.7 GB, 53687091200 bytes, 104857600 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x000c5e30
Device Boot Start End Blocks Id System
/dev/vda1 * 2048 104857599 52427776 83 Linux
Disk /dev/vdb: 21.5 GB, 21474836480 bytes, 41943040 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
挂载命令
Centos/Fedora:
yum install wget -y && wget -O auto_disk.sh https://download.bt.cn/tools/auto_disk.sh && bash auto_disk.sh
#备用:
yum install wget -y && wget -O auto_disk.sh https://raw.githubusercontent.com/wn789/www/master/auto_disk.sh && bash auto_disk.sh
Ubuntu:
wget -O auto_disk.sh https://download.bt.cn/tools/auto_disk.sh && sudo bash auto_disk.sh
#备用:
wget -O auto_disk.sh https://raw.githubusercontent.com/wn789/www/master/auto_disk.sh && sudo bash auto_disk.sh
Debian:
wget -O auto_disk.sh https://download.bt.cn/tools/auto_disk.sh && bash auto_disk.sh
#备用:
wget -O auto_disk.sh https://raw.githubusercontent.com/wn789/www/master/auto_disk.sh && bash auto_disk.sh