磁盘管理
1.为什么要添加磁盘
随着系统的使用,磁盘的内容会越来越少,所以有必要添加磁盘来增加空间。
[En]
With the use of the system, the content of the disk will be less and less, so it is necessary to add the disk to increase the space.
Linux系统中磁盘管理就是将硬盘通过挂载的方式挂载到linux文件系统中。
2.系统添加磁盘并分区
挂载磁盘的步骤:
1、关机
2、添加硬盘
3、创建分区(开机后的操作)
fdisk /dev/sdb
或
gdisk /dev/sdb
fdisk:分区2TB以下的磁盘,最多可以分4个分区
gdisk:分区不限大小的磁盘,最多可以分128个分区
使用 : fdisk /dev/sdb命令
如果没有找到新分区,您可以重新启动它。
[En]
If no new partition is found, you can restart it.
4、格式化文件系统
mkfs.xfs /dev/sdb1
5、挂载
mount /dev/sdb1 /mnt(临时挂载)
Original: https://www.cnblogs.com/zonghan/p/15719747.html
Author: zong涵
Title: linux添加磁盘及分区挂载
原创文章受到原创版权保护。转载请注明出处:https://www.johngo689.com/524262/
转载文章受原作者版权保护。转载请注明原作者出处!