zoukankan      html  css  js  c++  java
  • 挂载 格式化

    [root@iZ25r0ej7v1Z mnt]# fdisk /dev/xvdx

    WARNING: DOS-compatible mode is deprecated. It's strongly recommended to

             switch off the mode (command 'c') and change display units to

             sectors (command 'u').

    Command (m for help): n

    Command action

       e   extended

       p   primary partition (1-4)

    1

    Invalid partition number for type `1'

    Command action

       e   extended

       p   primary partition (1-4)

    p

    Partition number (1-4): 1

    First cylinder (1-652, default 1): (直接换行)

    Using default value 1

    Last cylinder, +cylinders or +size{K,M,G} (1-652, default 652): (直接换行)

    Using default value 652

    Command (m for help): w

    The partition table has been altered!

    Calling ioctl() to re-read partition table.

    Syncing disks.

    格式化

    mkfs.ext3 /dev/xvdb

    [root@iZ25r0ej7v1Z mnt]# fdisk -l

    mount /dev/xvdx /x

    df (看是否成功挂在mnt上)

    1
    2
    3
    4
    5
    [root@iZ253hlps3yZ ~]# df -m
    Filesystem     1M-blocks  Used Available Use% Mounted on
    /dev/xvda1         40316  2838     35431   8% /
    tmpfs                498     0       498   0% /dev/shm
    /dev/xvdb           5040   139      4646   3% /mnt

     

  • 相关阅读:
    骨场经历
    聚财与聚人
    腾讯正式开始了QQForMAC的测试
    fiddler
    soap协议基本结构
    js小判断
    控制器
    resharper快捷键
    如何让datetime类型数据接受并且产出long或string类型?
    AES加密,解密方法
  • 原文地址:https://www.cnblogs.com/aliblogs/p/5493726.html
Copyright © 2011-2022 走看看