Warning: The Windows partition was detected. For your data security, Mount manually
危险 数据盘为windwos分区,为了你的数据安全,请手动挂载,本脚本不执行任何操作。
Warning: The Windows partition was detected. For your data security, Mount manually.
原系统为windwos
更换linux 后 磁盘挂载失败
1.进入终端
# fdisk -l
Disk /dev/vda: 40 GiB, 42949672960 bytes, 83886080 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
Disklabel type: dos
Disk identifier: 0x0cf56450
Device Boot Start End Sectors Size Id Type
/dev/vda1 * 2048 83886046 83883999 40G 83 Linux
Disk /dev/vdb: 50 GiB, 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
Disklabel type: dos
Disk identifier: 0x02f07826
Device Boot Start End Sectors Size Id Type
/dev/vdb1 2048 104855551 104853504 50G 7 HPFS/NTFS/exFAT
备注(其中vda 为系统盘,vdb为数据盘)
2.更换数据盘为linux 格式
3.执行挂载命令
Centos:
yum install wget -y && wget -O auto_disk.sh http://download.bt.cn/tools/auto_disk.sh && bash auto_disk.sh
Ubuntu:
wget -O disk.sh http://download.bt.cn/tools/disk.sh && sudo bash disk.sh
Debian:
wget -O disk.sh http://download.bt.cn/tools/disk.sh && bash disk.sh
默认挂载/www目录,如需挂载其他目录方法如下:
Warning: The Windows partition was detected. For your data security, Mount manually.
VB教程网 » Warning: The Windows partition was detected. For your data security, Mount manually