zoukankan      html  css  js  c++  java
  • 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 

  • 相关阅读:
    java+selenium 3.x的火狐自动化测试环境
    Jmeter+badboy环境搭建
    Linux环境下搭建Tomcat+mysql+jdk环境
    线程池的配置说明
    关于事务的使用规范
    生产事故 java.lang.OutOfMemoryError: GC overhead limit exceeded
    linux检查网络运行情况命令
    百万数据迁移的线程分组
    XML报文拼接 乱码
    创建数据源、连接数据库
  • 原文地址:https://www.cnblogs.com/litifeng/p/9163669.html
Copyright © 2011-2022 走看看