• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>

            旅途

            如果想飛得高,就該把地平線(xiàn)忘掉

            VM-linux中增加一塊硬盤(pán)

            1。增加前先關(guān)閉VM,然后編輯VM屬性,增加一個(gè)vritual disk(scsi),其實(shí)是增加一個(gè)虛擬磁盤(pán)文件。
            hard disk2就是我新增加的
             
            2。查看目前的磁盤(pán)結(jié)構(gòu)
            [root@mail ~]# fdisk -l
            Disk /dev/sda: 10.7 GB, 10737418240 bytes
            255 heads, 63 sectors/track, 1305 cylinders
            Units = cylinders of 16065 * 512 = 8225280 bytes
               Device Boot      Start         End      Blocks   Id  System
            /dev/sda1   *           1          13      104391   83  Linux
            /dev/sda2              14         905     7164990   83  Linux
            /dev/sda3             906        1032     1020127+  83  Linux
            /dev/sda4            1033        1305     2192872+   5  Extended
            /dev/sda5            1033        1159     1020096   82  Linux swap / Solaris
            /dev/sda6            1160        1305     1172713+  83  Linux
            Disk /dev/sdb: 1073 MB, 1073741824 bytes
            255 heads, 63 sectors/track, 130 cylinders
            Units = cylinders of 16065 * 512 = 8225280 bytes
            Disk /dev/sdb doesn't contain a valid partition table
            //說(shuō)明磁盤(pán)/dev/sdb還沒(méi)有被系統(tǒng)識(shí)別
             
            3。分區(qū)
            [root@mail ~]# fdisk /dev/sbd
            Command (m for help): //輸入m獲得幫助信息,n創(chuàng)建分區(qū)
            Command action
               e   extended
               p   primary partition (1-4)
            p //創(chuàng)建主分區(qū)
            Partition number (1-4): 1 //指定分區(qū)的起始柱面
            First cylinder (1-130, default 1):
            Using default value 1
            Last cylinder or +size or +sizeM or +sizeK (1-130, default 130):  //設(shè)置分區(qū)容量,直接回車(chē)表示全部
            Using default value 130
            Command (m for help): t //改變一個(gè)分區(qū)的系統(tǒng)ID
            Selected partition 1
            Hex code (type L to list codes): L //查看文件類(lèi)型對(duì)應(yīng)的Hex
             85  Linux extended //linux  ext3的hex是85
            Hex code (type L to list codes): 85
            You cannot change a partition into an extended one or vice versa
            Delete it first.
            Command (m for help): p //列出當(dāng)前硬盤(pán)的分區(qū)
            Disk /dev/sdb: 1073 MB, 1073741824 bytes
            255 heads, 63 sectors/track, 130 cylinders
            Units = cylinders of 16065 * 512 = 8225280 bytes
               Device Boot      Start         End      Blocks   Id  System
            /dev/sdb1               1         130     1044193+  83  Linux
            Command (m for help): //保存
            The partition table has been altered!
            Calling ioctl() to re-read partition table.
            Syncing disks.
            4。查看現(xiàn)在的分區(qū)
            [root@mail ~]# fdisk -l
            Disk /dev/sda: 10.7 GB, 10737418240 bytes
            255 heads, 63 sectors/track, 1305 cylinders
            Units = cylinders of 16065 * 512 = 8225280 bytes
               Device Boot      Start         End      Blocks   Id  System
            /dev/sda1   *           1          13      104391   83  Linux
            /dev/sda2              14         905     7164990   83  Linux
            /dev/sda3             906        1032     1020127+  83  Linux
            /dev/sda4            1033        1305     2192872+   5  Extended
            /dev/sda5            1033        1159     1020096   82  Linux swap / Solaris
            /dev/sda6            1160        1305     1172713+  83  Linux
            Disk /dev/sdb: 1073 MB, 1073741824 bytes
            255 heads, 63 sectors/track, 130 cylinders
            Units = cylinders of 16065 * 512 = 8225280 bytes
               Device Boot      Start         End      Blocks   Id  System
            /dev/sdb1               1         130     1044193+  83  Linux
            5。格式化分區(qū)
            [root@mail ~]# mkfs.ext3 /dev/sdb1  //格式化成ext3格式
            6。掛載分區(qū)
            [root@mail ~]# mount /dev/sdb1 /tmp
            [root@mail ~]# df -h /tmp
            Filesystem            Size  Used Avail Use% Mounted on
            /dev/sdb1            1004M  1.3M  952M   1% /tmp
             
            7。自動(dòng)掛載
            修改/etc/fstab
            增加一行
            /dev/sdb1               /sdb1                   ext3    defaults        0 0
            重起
             

            本文出自 “allen的學(xué)習(xí)筆記” 博客,請(qǐng)務(wù)必保留此出處http://allenyu.blog.51cto.com/193668/156256

            posted on 2009-09-24 23:50 旅途 閱讀(549) 評(píng)論(0)  編輯 收藏 引用 所屬分類(lèi): LINUX基礎(chǔ)、管理

            国产福利电影一区二区三区久久老子无码午夜伦不 | 亚洲AV日韩精品久久久久久| 久久受www免费人成_看片中文| 久久久久国产精品麻豆AR影院 | 亚洲AV日韩精品久久久久| 久久AV高清无码| 欧美午夜精品久久久久久浪潮| 久久久亚洲欧洲日产国码是AV | 色8激情欧美成人久久综合电| 99精品国产免费久久久久久下载| 久久精品国产亚洲av日韩| 久久国产热这里只有精品| 久久人做人爽一区二区三区| 精品综合久久久久久97超人| 久久久久无码中| 久久91精品国产91久久小草| 人妻系列无码专区久久五月天| av午夜福利一片免费看久久| 人妻丰满?V无码久久不卡| 狠狠色丁香久久婷婷综| 精品多毛少妇人妻AV免费久久| 国产情侣久久久久aⅴ免费| 中文字幕无码久久精品青草| 色综合色天天久久婷婷基地| 久久丫精品国产亚洲av不卡| 久久久久久国产精品美女| 99精品久久精品| 亚洲精品乱码久久久久久蜜桃图片 | 久久久久亚洲AV无码麻豆| 亚洲日本久久久午夜精品| 欧美一级久久久久久久大| 岛国搬运www久久| 国产三级精品久久| 99久久婷婷国产一区二区| 国产精品成人久久久久三级午夜电影| 亚洲国产精品无码久久一区二区| 免费精品久久久久久中文字幕| 久久九色综合九色99伊人| 久久精品视屏| 久久国产AVJUST麻豆| 精品久久久久久久国产潘金莲 |