不分区直接格式化硬盘

2019-08-22

硬盘不分区能格式化?

1、mkfs.xfs /dev/vdb
mkfs.vfat -I /dev/sdb
2、mount /dev/vdb /data
3、parted /dev/vdb print
Model: Virtio Block Device (virtblk)
Disk /dev/vdb: 107GB
Sector size (logical/physical): 512B/512B
Partition Table: loop
Disk Flags:

Number Start End Size File system Flags
1 0.00B 107GB 107GB ext3
4、df -h
df -h|grep vd
/dev/vda1 40G 11G 27G 29% /
/dev/vdb 99G 71G 23G 76% /jesong

分类:Linux | 标签: |

相关日志

评论被关闭!