Linux格式化磁盘
Posted JAIR_FOREVER
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Linux格式化磁盘相关的知识,希望对你有一定的参考价值。
具体操作步骤如下:
[root@host-172-16-29-154 code]# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
vda 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/vdb
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building 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
以上是关于Linux格式化磁盘的主要内容,如果未能解决你的问题,请参考以下文章