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 

  • 相关阅读:
    EOJ 1822 Hanoi Tower IV
    Firefox,chrome,IE上传图片预览
    js保存,获取,删除cookie的操作
    jquery 特效
    SimpleDateFormat转换时间,12,24时间格式[转]
    javascript捕获页面窗口关闭事件
    [转]ajQuery的deferred对象详解
    iframe
    火狐路径问题
    JAVA折腾微信公众平台(Token验证)[转]
  • 原文地址:https://www.cnblogs.com/litifeng/p/9163669.html
Copyright © 2011-2022 走看看