系统故障,刚好有个阿里云的磁盘。
1.格式化分区,挂载
2.将重要文件备份到数据盘。
3. 卸载数据盘
4. 重做系统盘
5. 再挂载数据盘。 备份文件依然存在。
格式化分区+挂载 :
[root@testserver ~]# fdisk -l
Disk /dev/xvda: 42.9 GB, 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
Disk label type: dos
Disk identifier: 0x0009e68a
Device Boot Start End Blocks Id System
/dev/xvda1 * 2048 83884031 41940992 83 Linux
Disk /dev/xvdb: 536.9 GB, 536870912000 bytes, 1048576000 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