管理系统存储

本文介绍了Linux系统中的磁盘管理操作,包括使用fdisk进行分区划分,创建主分区和扩展分区,设置分区类型及大小。接着详细阐述了如何格式化分区为xfs,临时和永久挂载文件系统,以及创建和激活swap分区。此外,还讲解了如何设置磁盘配额,并通过实例展示了配额限制。最后,文章详细介绍了如何构建RAID 1阵列,包括创建、格式化和管理RAID设备。
摘要由CSDN通过智能技术生成

1.分区划分

fdisk   /dev/vdb

Command (m for help): m            ##帮助
Command action
   a   toggle a bootable flag
   b   edit bsd disklabel
   c   toggle the dos compatibility flag
   d   delete a partition        ##删除分区
   g   create a new empty GPT partition table
   G   create an IRIX (SGI) partition table
   l   list known partition types    ##列出系统可用的分区类型
   m   print this menu
   n   add a new partition        ##新建分区
   o   create a new empty DOS partition table
   p   print the partition table    ##显示分区
   q   quit without saving changes    ##推出
   s   create a new empty Sun disklabel
   t   change a partition's system id    ##修改分区功能id
   u   change display/entry units
   v   verify the partition table
   w   write table to disk and exit    ##保存更改到分区表中
   x   extra functionality (experts only)

Command (m for help): n            ##新建分区
Partition type:
   p   primary (0 primary, 0 extended, 4 free)    ##分区类型位主分区
   e   extended         

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值