国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 學院 > 操作系統 > 正文

format命令

2024-07-26 00:29:57
字體:
來源:轉載
供稿:網友
由于它的破壞性極大,使用時一定要小心!
   兩個用途,即格式化硬盤和重新對硬盤分區.
   1)格式化硬盤 
   最好進入單用戶模式
   #format 
系統會顯示所有的硬盤并讓我們選擇要操作硬盤:
Searching for disks...done
AVAILABLE DISK SELECTIONS:
       0. c0t0d0 
          /pci@1f,4000/scsi@3/sd@0,0
       1. c0t1d0 
          /pci@1f,4000/scsi@3/sd@1,0
       2. c0t2d0 
          /pci@1f,4000/scsi@3/sd@2,0
       3. c0t3d0   u03
          /pci@1f,4000/scsi@3/sd@3,0
Specify disk (enter its number): 2
selecting c0t2d0
[disk formatted]
Warning: Current Disk has mounted partitions.
FORMAT MENU:
        disk       - select a disk
        type       - select (define) a disk type
        partition  - select (define) a partition table
        current    - describe the current disk
        format     - format and analyze the disk
        repair     - repair a defective sector
        label      - write label to the disk
        analyze    - surface analysis
        defect     - defect list management
        backup     - search for backup labels
        verify     - read and display labels
        save       - save new disk/partition definitions
        inquiry    - show vendor, PRoduct and revision
        volname    - set 8-character volume name
        !     - execute , then return
        quit
format> partition
PARTITION MENU:
        0      - change `0' partition
        1      - change `1' partition
        2      - change `2' partition
        3      - change `3' partition
        4      - change `4' partition
        5      - change `5' partition
        6      - change `6' partition
        7      - change `7' partition
        select - select a predefined table
        modify - modify a predefined partition table
        name   - name the current table
        print  - display the current table
        label  - write partition map and label to the disk
        ! - execute , then return
        quit
partition> modify
partition>label
partition>quit
format>save
   使用命令newfs來為每一個分區創建文件系統:
newfs /dev/rdsk/c?t?d?s?
硬盤包含啟動分區(根分區),我們需要手動安裝啟動模塊
#reboot cdrom -s (從光盤啟動,并進入單用戶模式) 
#mount /dev/dsk/c0t1d0s0 /mnt  (將系統根分區掛接到mnt目錄下) 
#cp /ufsboot /mnt 
#installboot /lib/fs/ufs/bootblk   /dev/rdsk/c0t1d0s0 (安裝啟動模塊) 
#umount /mnt (卸下掛接) 
#reboot (重啟動) 

2) 重新分區
format命令也可以對硬盤進行重新分區。重新分區后,受影響分區上的所有文件將被清除
要對該分區表命名,SAVE退出format 命令。分區結束后,我們要用newfs命令為改變的分區創建文件系統

上一篇:ifconfig命令

下一篇:fsck命令

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 桐柏县| 武乡县| 霸州市| 宾阳县| 太保市| 宜州市| 政和县| 扶余县| 松潘县| 济南市| 安仁县| 土默特左旗| 吉木萨尔县| 蒙山县| 古浪县| 镇雄县| 邵东县| 上杭县| 米泉市| 札达县| 棋牌| 徐州市| 武汉市| 台南县| 元江| 江源县| 杭锦旗| 高邮市| 新巴尔虎左旗| 内江市| 玉林市| 通山县| 利津县| 莫力| 玉门市| 西乌| 东平县| 伊宁县| 伊金霍洛旗| 巫溪县| 凤冈县|