CentOS   发布时间:2022-04-02  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了centos 6.4 fdisk分区、格式化、挂载新硬盘大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。

概述

1、# fdisk -l 查看当前磁盘信息,@R_921_10585@最下面显示新加入的硬盘不是有效分区,如下: 1 2 3 4 5 6 7 8 [root@localhost /] # fdisk -l   Disk /dev/xvdb : 429.5 GB, 429496729600 bytes 255 heads, 63 sectors /track , 52216 cylinders Units = cyl
@H_616_13@

1、# fdisk -l
查看当前磁盘信息,@R_921_10585@最下面显示新加入的硬盘不是有效分区,如下:

1
2
3
4
5
6
7
8
[root@localhost /] # fdisk -l
Disk /dev/xvdb : 429.5 GB,429496729600 bytes
255 heads,63 sectors /track ,52216 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical /physical ): 512 bytes / 512 bytes
I /O size (minimum /optimal ): 512 bytes / 512 bytes
Disk identifier: 0x00000000

2、# fdisk /dev/xvdb
对新硬盘分区,并根据提示进一步操作:

8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# fdisk /dev/xvdb
Device contains neither a valid DOS partition table,nor Sun,SGI or OSF disklabel
Building a new DOS disklabel with disk identifier 0x7f095069.
Changes will remain in @H_443_48@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 recommended to
@H_262_190@ switch off the mode ( command @H_825_197@'c' ) and change display units to
sectors ( 'u' ).
Command (m for Help): n 输入n进行分区
Command action
e extended
p priMary partition (1-4)
p 输入p为主分区,e为逻辑分区
Partition number (1-4): 1 (由于是新盘我们输入1来分第一个主分区,共可以分4个主分区)
First cylinder (1-52216,default 1): 1 (选择该分区的起始磁盘数,如无特殊需求强烈建议选择认,也就是1来分区(可直接按回车))
Last cylinder or +size or +sizeM or +sizeK (1-52216,default 52216):
定义该分区的大小,如果按认(按回车)即是使用全部可用存储额,如分一个1G的空间,输入+1024m
Using default value 52216
@H_923_262@
Help): w 写入分区
The partition table has been altered!
Calling ioctl() to re- read partition table.
Syncing disks.

3、# fdisk -l
可以找到我们刚才分的一个分区,内容如下:

12

大佬总结

以上是大佬教程为你收集整理的centos 6.4 fdisk分区、格式化、挂载新硬盘全部内容,希望文章能够帮你解决centos 6.4 fdisk分区、格式化、挂载新硬盘所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。
标签:466.4centosfdisk分区格式化硬盘
猜你在找的CentOS相关文章
其他相关热搜词更多
phpJavaPython程序员load如何string使用参数jquery开发安装listlinuxiosandroid工具javascriptcap