【永恒的瞬間】
          ?Give me hapy ?

                IBM服務(wù)器,Linux系統(tǒng),三塊硬盤做Raid5,今天終于成功加上了塊硬盤!
                1、用Raid驅(qū)動(dòng)盤(是不是這么叫?呵呵)引導(dǎo),將新加的盤做Raid0(因?yàn)橹患恿艘粔K盤)
                2、通過fdisk分區(qū)
                3、通過mkfs.ext3格式化新的分區(qū),完成

                第一步很簡單
                第二步,分區(qū)
                      1、通過fdisk -l查看未分區(qū)硬盤
          Disk /dev/sda: 72.8 GB, 72802631680 bytes
          254 heads, 63 sectors/track, 8885 cylinders
          Units = cylinders of 16002 * 512 = 8193024 bytes

              Device Boot     Start        End     Blocks    Id   System
          /dev/sda1    *          1         13     103981+   83   Linux
          /dev/sda2             14       8656   69152643    83   Linux
          /dev/sda3           8657       8885    1832229    82   Linux swap

          Disk /dev/sdb: 36.4 GB, 36401315840 bytes
          254 heads, 63 sectors/track, 4442 cylinders
          Units = cylinders of 16002 * 512 = 8193024 bytes

              Device Boot     Start        End     Blocks    Id   System
          這兒可以看到,/dev/sdb尚未分區(qū)
                      2、通過fdisk /dev/sdb對/dev/sdb進(jìn)行分區(qū)  
          [root@ckkhserver root]# fdisk /dev/sdb

          The number of cylinders for this disk is set to 4442.
          There is nothing wrong with that, but this is larger than 1024,
          and could in certain setups cause problems with:
          1) software that runs at boot time (e.g., old versions of LILO)
          2) booting and partitioning software from other OSs
              (e.g., DOS FDISK, OS/2 FDISK)

          Command (m for help):
          鍵入m查看幫助
          Command action
              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    add a new partition,創(chuàng)建一分區(qū)
          Command action
              e    extended
              p    primary partition (1-4)
          我不知道這是什么意思,但嘗試后知道,應(yīng)該選p    primary partition (1-4)
          然后根據(jù)情況鍵入數(shù)字,比如1
          再根據(jù)提示選擇分區(qū)的類型,L查看知道有這么一個(gè)類型,83   Linux
          那就選這個(gè)類型,輸入83,然后保存退出,分區(qū)就完成了

                第三步,格式化
                這兒,格式化成ext3格式,命令為mkfs.ext3 /dev/hdb1

                為了讓硬盤在系統(tǒng)啟動(dòng)時(shí)自動(dòng)掛載,用vi編輯/etc/fstab文件,加入如下內(nèi)容(比如掛載到/mnt/hd目錄)
          /dev/dhb1 /mnt/hd reiserfs defaults 1 1

          posted on 2007-04-13 09:07 ???MengChuChen 閱讀(358) 評論(0)  編輯  收藏 所屬分類: Sun_Solaris
          主站蜘蛛池模板: 固安县| 沁源县| 泽库县| 龙岩市| 泰安市| 崇礼县| 灵山县| 盐津县| 长子县| 京山县| 扎鲁特旗| 宜州市| 桐梓县| 西宁市| 罗城| 大同市| 永清县| 青河县| 庆阳市| 教育| 拉孜县| 洛南县| 桑植县| 昌乐县| 马鞍山市| 双鸭山市| 昌都县| 肥城市| 台南市| 凤冈县| 尚志市| 武隆县| 金寨县| 潞城市| 漳浦县| 榆中县| 滦平县| 兴和县| 绥化市| 安庆市| 固始县|