首页 > 编程知识 正文

linux格式化磁盘分区,linux格式化磁盘为ext4 并且挂载

时间:2023-05-04 12:58:47 阅读:212338 作者:3025

 具体操作步骤如下:

[root@host-172-16-29-154 code]# lsblkNAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTvda 252:0 0 100G 0 disk ├─vda1 252:1 0 500M 0 part /boot├─vda2 252:2 0 20G 0 part [SWAP]└─vda3 252:3 0 79.5G 0 part └─VolGroup-LogVol00 (dm-0) 253:0 0 79.5G 0 lvm /vdb 252:16 0 300G 0 disk [root@host-172-16-29-154 code]# fdisk /dev/vdbDevice contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabelBuilding a new DOS disklabel with disk identifier 0x76ee3922.Changes will remain in memory only, until you decide to write them.After that, of course, the previous content won't be recoverable.Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)WARNING: DOS-compatible mode is deprecated. It's strongly rec

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。