久久久久久久性爱潮,国产又粗又猛又爽又黄下载视频,尤物国产在线一区视频,欧美日本国产在线不卡

<sup id="4uqqy"><ol id="4uqqy"></ol></sup>
  • <th id="4uqqy"></th>

      • <strike id="4uqqy"><nobr id="4uqqy"><ins id="4uqqy"></ins></nobr></strike><sup id="4uqqy"></sup><strong id="4uqqy"><u id="4uqqy"></u></strong>
        <sub id="4uqqy"></sub>

          綠色資源網(wǎng):您身邊最放心的安全下載站! 最新軟件|熱門排行|軟件分類|軟件專題|廠商大全

          綠色資源網(wǎng)

          技術教程
          您的位置:首頁服務器類Linux服務器 → Centos 硬盤掛載教程

          Centos 硬盤掛載教程

          我要評論 2012/07/18 11:33:52 來源:綠色資源網(wǎng) 編輯:downcc.com [ ] 評論:0 點擊:1078次

          基本套路就是:先檢查硬盤空間,對空白空間,進行分區(qū),分區(qū)完后格式化,最后掛載到一個目錄上!

          通過SSH登錄LINUX主機,進行云硬盤掛載,具體詳細步驟如下所示:

          1.首先查看系統(tǒng)中磁盤信息,并確定是否需要分區(qū)。

          [root@localhost ~]# fdisk -l

          Disk /dev/sda: 8589 MB, 8589934592 bytes 此處是sda的磁盤信息

          255 heads, 63 sectors/track, 1044 cylinders

          Units = cylinders of 16065 * 512 = 8225280 bytes

          Device Boot Start End Blocks Id System

          /dev/sda1 * 14 1044 8281507+ 83 Linux

          注意此處1044,若顯示小于1044,表示磁盤尚有分區(qū)未劃分

           

          /dev/sda2 1 13 104391 82 Linux swap / Solaris

          Partition table entries are not in disk order

          Disk /dev/sdb: 6442 MB, 6442450944 bytes

          255 heads, 63 sectors/track, 783 cylinders

          Units = cylinders of 16065 * 512 = 8225280 bytes

          Disk /dev/sdb doesn’t contain a valid partition table 此處顯示磁盤dev/sdb尚未格式化。

          如上所示,系統(tǒng)中有兩塊磁盤sda、sdb,并提示sdb未含有分區(qū)表,需要將其進行分區(qū)操作。

          2.對磁盤進行分區(qū)操作

          [root@localhost ~]# fdisk /dev/sdb

          Command (m for help): p        pprint the partintion table

          Disk /dev/sdb: 6442 MB, 6442450944 bytes 顯示磁盤基本信息

          255 heads, 63 sectors/track, 783 cylinders

          Units = cylinders of 16065 * 512 = 8225280 bytes

          Device Boot Start End Blocks Id System

          此處可以看出,尚未對磁盤進行分區(qū)

          Command (m for help): n       nadd a new partition

          Command action

          e extended            選擇主分區(qū)還是擴展分區(qū),在此選擇主分區(qū)

          p primary partition (1-4)

          p

          Partition number (1-4): 3        選擇分區(qū)數(shù)。

          First cylinder (1-783, default 1):     設置分區(qū)大小。此處定義1000M。就是最接近1000M的柱面號碼

          Using default value 1

          Last cylinder or +size or +sizeM or +sizeK (1-783, default 783): +1000M

          Command (m for help): w         如無誤輸入w保存配置信息,如不保存輸入q退出

          Command (m for help): p         如下查看分區(qū)之后的磁盤信息

          Disk /dev/sdb: 6442 MB, 6442450944 bytes

          255 heads, 63 sectors/track, 783 cylinders

          Units = cylinders of 16065 * 512 = 8225280 bytes

          Device Boot Start End Blocks Id System

          /dev/sdb1 368 783 3341520 83 Linux

          /dev/sdb2 124 367 1959930 83 linux

          /dev/sdb3 1 123 987966 83 Linux

          3.將分區(qū)好的磁盤進行格式化操作

          [root@localhost ~]# mke2fs -j /dev/sdb1 將磁盤sdb1格式化為ext3文件系統(tǒng)。

          [root@localhost ~]# fdisk –l       使用fdisk查看磁盤分區(qū)情況

          4.將分區(qū)格式化完畢的磁盤掛載,檢查確認分區(qū)格式化完畢。

          [root@localhost dev]# mkdir /mnt/sdb1   新建一個目錄sdb,便于管理系統(tǒng)在mnt目錄下創(chuàng)建目錄。

          [root@localhost mnt]# mount /dev/sdb1 /mnt/sdb1 將磁盤sdb掛載到系統(tǒng)中

          [root@localhost sdb1]# ls       進行寫文件測試,檢查是否可以對磁盤進行讀寫(是否格式化)

          a.txt b.txt lost+found       使用vi a.txt進行寫測試

          5.測試無誤后將其卸載

          [root@localhost mnt]#umount /dev/sdb1

          6.修改fstab文件,如下所示:

          [root@localhost mnt]# vi /etc/fstab

          LABEL=/ / ext3 defaults 1 1

          tmpfs /dev/shm tmpfs defaults 0 0

          devpts /dev/pts devpts gid=5,mode=620 0 0

          sysfs /sys sysfs defaults 0 0

          proc /proc proc defaults 0 0

          LABEL=SWAP-sda2 swap swap defaults 0 0

          /dev/sdb1 /mnt/sdb1 ext3 defaults 0 0

          /dev/sdb2 /mnt/sdb2 ext3 defaults 0 0

          /dev/sdb3 /mnt/sdb3 ext3 defaults 0 0

          7.重啟linux系統(tǒng),檢查掛載情況

          [root@localhost sdb1]# df

          文件系統(tǒng)   1K-塊    已用     可用   已用%   掛載點

          /dev/sda1  8022104  2893532  4714500 39%    /

          tmpfs  127720   0      127720 0%   /dev/shm

          /dev/sdb1  3288944  71328   3050540 3%    /mnt/sdb1

          /dev/sdb2  1929100  35696   1795408 2%    /mnt/sdb2

          /dev/sdb3  972404   17640   905368 2%   /mnt/sdb3

          關鍵詞:Centos,硬盤掛載

          閱讀本文后您有什么感想? 已有 人給出評價!

          • 0 歡迎喜歡
          • 0 白癡
          • 0 拜托
          • 0 哇
          • 0 加油
          • 0 鄙視