首 页 | 精品电影 | 音乐天堂 | 在线游戏 | Flash MTV | 三湘书屋 | 幽默笑话 | 三湘图库 | 美女写真 | IT知识库 | QQ贴图 | 加入书签

网页制作网络编程图形图象操作系统冲浪宝典软件教学网络安全认证考试通信技术电子商务业内动态书籍教程原码

最近更新 文章分类 多媒体类 精品软件

本站搜索:
您的位置:三湘时空 -> IT知识库 -> 文章分类 -> Solaris教程 -> format命令  
format命令


文章类别:Solaris教程 来源: 作者: 发表日期:2005-10-4 字体:[ ]

小游戏 | 在线影院 | 幽默笑话 | 源码下载 | Flash MTV | 音乐试听 | 书屋 | 美女写真

由于它的破坏性极大,使用时一定要小心!
   两个用途,即格式化硬盘和重新对硬盘分区.
   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命令
本栏目热门文章
·如何在 solaris 中使用 auto mount 来 mount 2005-10-4
·format命令 2005-10-4
·Solaris 8 (Intel 平台版本)安装指南 --5.如何添 2005-10-4
·Solaris网络配置 2005-10-4
·Solaris 8 (Intel 平台版本)安装指南 --1.入门指 2005-10-4
·配置NIS集成autofs环境 2005-10-4
·Solaris 8 (Intel 平台版本) 设备配置指南 2005-10-4
·Solaris 8 Intel平台版本CD 上的软件包说明(第2张) 2005-10-4
·Solaris 8 (Intel 平台版本)安装指南 --6.故障排 2005-10-4
·Solaris 8 (Intel 平台版本)安装指南 --2.使用S 2005-10-4
新近更新文章
·Solaris7 交流 -- 重新配置系统核心 2005-10-4
·Solaris7 交流 --- 进程管理、进程控制及cron处理 2005-10-4
·Solaris7 交流 --- swap管理(SWAP的用处) 2005-10-4
·NFS简介 2005-10-4
·Solaris 常见问题及解决方法 2005-10-4
·quota 命令 2005-10-4
·ifconfig命令 2005-10-4
·format命令 2005-10-4
·fsck命令 2005-10-4
·route命令 2005-10-4
首 页 | 软件发布 | 广告联系 | 下载帮助 | 意见反馈 | 网站地图
  CopyRight? 2002-2004 WWW.SXSKY.NET? All Rights Reserved
三湘时空 站长QQ:82675303 Email: