<pre id="cxlfb"></pre>

      <mark id="cxlfb"><acronym id="cxlfb"></acronym></mark><input id="cxlfb"><legend id="cxlfb"></legend></input>

    1. <mark id="cxlfb"></mark>

    2. <mark id="cxlfb"><acronym id="cxlfb"></acronym></mark>
      1. <mark id="cxlfb"><ruby id="cxlfb"><nobr id="cxlfb"></nobr></ruby></mark>

        用户登录         

      2. ×
      3. 400-830-7686

        Linux系统挂载方法:


        假设购买了50G的数据盘并挂载成功后,ssh登录云主机,

        输入:fdisk -l

        如下图所示会发现/dev/vdc分区,此分区即挂载后的数据盘



        对数据盘进行分区我们有两个方法:


        方法一:采用LVM的方式分区

        [root@localhost ~] pvcreate /dev/vdc

        [root@localhost ~] vgcreate VolumeGroup00/dev/vdc//卷组名字为VolumeGroup00(可以自定义)

        [root@localhost ~] lvcreate -l 100%free -n datalv VolumeGroup00//整盘100%分区

        [root@localhost ~] mkfs -t ext4 /dev/VolumeGroup00/datalv//采用ext4格式对分区进行格式化

        [root@localhost ~] mkdir /data//新建一个文件夹 用于挂载云硬盘的目录

        [root@localhost ~] mount /dev/VolumeGroup00/datalv/data//挂载云硬盘

        [root@localhost ~] echo "/dev/VolumeGroup00/datalv/data ext4 defaults 0 0" >>/etc/fstab //加入到启动队列


        [root@localhost ~]# df -h

        FilesystemSize Used Avail Use% Mounted on

        /dev/vda120G 3.4G 16G 18% /

        tmpfs1.9G 0 1.9G 0% /dev/shm

        /dev/mapper/VolumeGroup00-datalv

        50G 5.6G 42G 12% /data

        出现此项表明挂载成功



        方法二:采用普通方式分区

        [root@localhost ~] fdisk /dev/vdc

        Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel

        Building a new DOS disklabel with disk identifier 0x2735c28f.

        Changes will remain in memory only, until you decide to write them.

        After that, of course, the previous content won't be recoverable.


        Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)


        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//输入“n”新建分区

        Command action

        e extended

        p primary partition (1-4)

        p ///输入“p”

        Partition number (1-4): 1 //输入“1”

        First cylinder (1-104025, default 1): //回车

        Using default value 1

        Last cylinder, +cylinders or +size{K,M,G} (1-104025, default 104025): //回车

        Using default value 104025


        Command (m for help): p //输入“p” 查看分区信息


        Disk /dev/vdc: 53.7 GB, 53687091200 bytes

        16 heads, 63 sectors/track, 104025 cylinders

        Units = cylinders of 1008 * 512 = 516096 bytes

        Sector size (logical/physical): 512 bytes / 512 bytes

        I/O size (minimum/optimal): 512 bytes / 512 bytes

        Disk identifier: 0xfd3e9a85


        Device BootStartEndBlocksIdSystem

        /dev/vdc1110402552428568+83Linux


        Command (m for help): w //输入“w”保存分区


        [root@localhost ~] mkfs -t ext4 /dev/vdc1//格式化分区

        [root@localhost ~] mkdir /data//新建挂载目录

        [root@localhost ~] mount /dev/vdc1 /data//挂载分区

        [root@localhost ~]# df -h

        FilesystemSizeUsed Avail Use% Mounted on

        /dev/vda120G3.4G 16G 18% /

        tmpfs1.9G0 1.9G 0% /dev/shm

        /dev/vdc150G5.6G 42G 12% /data

        出现此项表明挂载成功




        Windows系统挂载方法:

        右键“我的电脑”-“管理”-“”

        点击“存储”

        点击“磁盘管理”,出现弹窗点击“下一步”-“下一步”

        把磁盘1选上-“下一步”-“完成””

        创建完毕后如下图所示

        右键-点击“转换成基本磁盘”

        右键-点击“新建磁盘分区”-“下一步”

        点击“下一步”

        点击“下一步”

        点击“下一步”

        勾选“执行快速格式化”

        点击“完成”

        分区完成

        云主机使计算资源的交付更加简单、高效、可靠。

        400-830-7686
        三网络真钱棋牌游戏