<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                ## 查看當前linux服務器分區 ``` df -h ``` :-: ![](https://box.kancloud.cn/772241e7adec7370336b5d60810e10c7_369x121.png) 無掛載盤 ![](https://box.kancloud.cn/add60cff677589b4065cd2e7840e66eb_376x98.png) 有掛在盤 ## 查看當前linux服務器硬盤: ``` fdisk -l ``` :-: ![](https://box.kancloud.cn/2ab21e7b0b7db05f18fe1591b375386c_445x167.png) 無掛在盤 ![](https://box.kancloud.cn/a946f347d20d82545de226f8c39afab8_539x441.png) 有掛在盤 /dev/vda 第一塊硬盤 /dev/vdb 第二塊硬盤 依此類推 以/dev/vdb為新增硬盤為例,需要進行以下操作方可正常使用(圖上有掛在盤的已經分區好了) ### 1、分區 ``` fdisk /dev/vdb ``` 按m回車查看help幫助,如下圖所示 ![](https://box.kancloud.cn/51b63067365eb80e13080a018d94ec02_513x399.png) 幫助內容如下 ``` a toggle a bootable flag b edit bsd disklabel c toggle the dos compatibility flag d delete a partition l list known partition types m print this menu n add a new partition o create a new empty DOS partition table p print the partition table q quit without saving changes s create a new empty Sun disklabel t change a partition's system id u change display/entry units v verify the partition table w write table to disk and exit x extra functionality (experts only) ``` 依次輸入 ``` n,回車 p,回車 1,回車 回車 w ``` ### 2、格式化 ``` mkfs -t ext4 -c /dev/vdb1 ``` ### 3、掛載(掛載目錄可自行定義) ``` mount /dev/vdb1 /opt ``` 其中/dev/vdb1為你剛才創建的分區,/opt是你自定義掛載的目錄 ``` [root@host-192-168-0-7 ~]# mount /dev/vdb1 /home/wwwroot mount: mount point /www_data does not exist [root@host-192-168-0-7 ~]# mkdir /home/wwwroot [root@host-192-168-0-7 ~]# mount /dev/vdb1 /home/wwwroot ``` 如果失敗請查看需要手動創建home目錄 ``` mkdir home ``` ![](https://box.kancloud.cn/7bc43befc2d9900d5a4fc521575a555c_372x155.png) 4、設置開機自動掛載(如果不設置開機自動掛載,重啟后不會自動 掛載分區) ``` vi /etc/fstab ``` 在最后面添加一行 ``` /dev/sdb1 /home/wwwroot ext4 defaults 0 0 ``` ![](https://box.kancloud.cn/4b130709ae168922dd8a3be471899cd7_670x244.png) 配置完畢 再使用df -h查看是否正常掛載了。 ![](https://box.kancloud.cn/7bc43befc2d9900d5a4fc521575a555c_372x155.png) 重啟服務器系統,再次使用df -h命令驗證
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看