linux下工具exfs用法

背景:买了一块新的ssd硬盘,挂载到ubuntu下。

1、快速格式化:

1)查看ssd硬盘的盘符: sudo fdisk -l 

2)快速格式化: sudo mkfs.ext4 -T default /dev/sdc 

关于mkfs命令的T参数, man mkfs.ext4 有一段解释:

-T usage-type[,...]
              Specify how the filesystem is going to be used, so that mke2fs can choose optimal filesystem parameters for that use.   The
              usage  types  that  are supported are defined in the configuration file /etc/mke2fs.conf.  The user may specify one or more
              usage types using a comma separated list.

              If this option is is not specified, mke2fs will pick a single default usage type based on the size of the filesystem to  be
              created.   If  the filesystem size is less than 3 megabytes, mke2fs will use the filesystem type floppy.  If the filesystem
              size is greater than or equal to 3 but less than 512 megabytes, mke2fs(8) will use  the  filesystem  type  small.   If  the
              filesystem  size is greater than or equal to 4 terabytes but less than 16 terabytes, mke2fs(8) will use the filesystem type
              big.  If the filesystem size is greater than or equal to 16 terabytes, mke2fs(8) will use the filesystem type huge.  Other‐
              wise, mke2fs(8) will use the default filesystem type default.

2、挂载:

mkdir -p /mnt/abc
mount -t auto /dev/sdc /mnt/abc

3、

1)卸载: umount /mnt/abc 

2)如果碰到无法卸载,提示:device is busy等等,可以用fuser命令: fuser -km /mnt/abc 

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值