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

                IBM服務器,Linux系統,三塊硬盤做Raid5,今天終于成功加上了塊硬盤!
                1、用Raid驅動盤(是不是這么叫?呵呵)引導,將新加的盤做Raid0(因為只加了一塊盤)
                2、通過fdisk分區
                3、通過mkfs.ext3格式化新的分區,完成

                第一步很簡單
                第二步,分區
                      1、通過fdisk -l查看未分區硬盤
          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尚未分區
                      2、通過fdisk /dev/sdb對/dev/sdb進行分區  
          [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,創建一分區
          Command action
              e    extended
              p    primary partition (1-4)
          我不知道這是什么意思,但嘗試后知道,應該選p    primary partition (1-4)
          然后根據情況鍵入數字,比如1
          再根據提示選擇分區的類型,L查看知道有這么一個類型,83   Linux
          那就選這個類型,輸入83,然后保存退出,分區就完成了

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

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

          posted on 2007-04-13 09:07 ???MengChuChen 閱讀(365) 評論(0)  編輯  收藏 所屬分類: Sun_Solaris
          主站蜘蛛池模板: 乌兰浩特市| 邻水| 黄山市| 伊川县| 安阳市| 洛浦县| 辰溪县| 酒泉市| 齐齐哈尔市| 临汾市| 安阳市| 大兴区| 盐山县| 西藏| 泰和县| 淮滨县| 连城县| 西乌珠穆沁旗| 上蔡县| 新巴尔虎右旗| 普兰店市| 轮台县| 太保市| 渝北区| 临海市| 波密县| 桐庐县| 芷江| 樟树市| 靖边县| 民县| 赤水市| 康乐县| 霍州市| 光泽县| 莱阳市| 武隆县| 阿克陶县| 微博| 桐庐县| 固安县|