Linux VPS挂载硬盘教程

今天就把Linux VPS挂载ext的方法补上。操作起来挂载为ext更加简单方便。


fdisk -l
Linux VPS挂载硬盘教程


fdisk /dev/xvdb


Command (m for help): n  /*建立新分区*/Command action   e   extended   p   primary partition (1-4)p  /*选择类型为主分区*/Partition number (1-4): 1   /*分区号,此处/dev/xvdb尚未分区,可以选择1*/First cylinder (1-6527, default 1): /*默认回车*/Using default value 1Last cylinder or +size or +sizeM or +sizeK (1-6527,default 6527): /*默认回车*/Using default value 6527 Command (m for help): t  /*指定分区格式*/Selected partition 1Hex code (type L to list codes): 83  /*83为ext格式*/Changed system type of partition 1 to 8e (Linux LVM) Command (m for help): w  /*保存更改*/The partition table has been altered!
Linux VPS挂载硬盘教程


Linux VPS挂载硬盘教程


mkfs.ext3 /dev/xvdb1
Linux VPS挂载硬盘教程


mount /dev/xvdb1 /www
Linux VPS挂载硬盘教程

7.用df -hal查看是否正确挂载

Linux VPS挂载硬盘教程


echo “/dev/xvdb1 /home ext3 defaults 1 3” >> /etc/fstab
Linux VPS挂载硬盘教程

挂载完毕,如果有必要检查,可以使用vi /etc/fstab查看是否有第八步操作的内容,另外,可以重启VPS,再用df -hal查看是否有正常的挂载分区。





  • 29 Responses to “Linux VPS挂载硬盘教程”
    • EdwardPhymn

      prescription drugs without a doctor <a href=" ">best online international pharmacies india</a>
      medications without a doctor's prescription

    • Fjjuprest

      generic viagra cost <a href=" "> </a> taking viagra without ed

    • Nbnhprest

      cheap viagra online <a href=" "> </a> can you order viagra online in canada

    • AhbzAniny

      payday loan hoffman estates <a href=" ">payday loan oceanside</a> i need a payday advance

    • Kvaxboop

      12 month payday loans no fees <a href=" ">quickbooks payroll cash advance</a> payday loan arizona

    • best weed strains for watching the walking dead

      Mend the pen only after the sheep are all gone.

    • CharlesHob

      how to use tinder , tinder login
      <a href=>tinder app </a>

    • KbbfIdovE

      free viagra trials <a href=" "> </a> viagra vs cialis side effects

    • JbbnAniny

      buy cialis 36 hour <a href=" ">can you use cialis when trying to conceive</a> indicaciones para tomar cialis

    • Abcfbopinnots

      canada pharmacy viagra generic <a href=" ">generic viagra usa canada </a> buy viagra us

    • Fbsgprest

      cialis buy on line <a href=" ">super cialis best price </a> cialis tadalafil online paypal

    • Jbnvblafe

      payday loan gulfport mississippi <a href=" ">low interest payday loans canada</a> texas car title and payday loans converse tx

    • LabxAniny

      differences entre viagra and cialis <a href=" ">unde gasesc cialis</a> vendita cialis generico on line

    • FqbbAniny

      payday loan california maximum <a href=" ">how to get loan from money shop</a> how to avoid paying payday loans

    • Nncsprest

      overnight cheap viagra <a href=" ">buy viagra online</a> viagra gold bestellen

    • AhkdAniny

      mexican pharmacy online medications <a href=" ">eye drop</a> online prescription drugs

    • Kbcxboop

      antibiotics <a href="">international pharmacies that ship to the usa</a> general health

    • KuikIdovE

      generic viagra using master card <a href=" ">365 pills mobi catalog viagra</a> buy viagra on line?

    • JbbvAniny

      canada prescription plus pharmacy <a href=" ">no prior prescription required pharmacy</a> canada drug prices

    • Aqcfbopinnots

      cialis grapefruit interaction <a href=" ">original cialis online</a> cheap cialis by post

    • Jbnbblafe

      canadian drugstore reviews <a href=" ">canada pharmacy online orders</a> rx price comparison

    • Fvfcprest

      generic viagra 100mg <a href=" ">viagra online pay with paypal</a> getting viagra in new york

    • LbsxAniny

      online medicine to buy <a href=" ">viagra tijuana mx</a> drugs from canada with prescription

    • FqhhAniny

      online pharmacies uk <a href=" ">canada drugs online pharmacy</a> medical pharmacies

    • CharlesHob

      tinder website , tinder dating app
      <a href=>how to use tinder </a>

    • LbgAniny

      buy viagra japan <a href="">tesco online viagra</a> viagra online - indo viagral ’

    • Tinder dating site

      tinder app , what is tinder
      <a href=>tinder date </a>

    • JdbxAniny

      cheap generic viagra 50mg <a href="">viagra overnight no prescription</a> cialis viagra levitra young yahoo - buy viagra with discover card ’

    • Stephenpeaky

      otc viagra <a href=" ">viagra for sale</a> viagra professional