Linux中国 Linux中国门户站!
设为主页 设为主页
收藏本站 收藏本站
 
当前位置 :首页 ->操作系统 ->Solaris ->正文

format命令

来源:Linuxdby.com 作者:Webmaster 时间:2007-05-26 点击: [收藏] [投稿]

        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命令

文章评论】 【收藏本文】 【推荐好友】 【打印本文】 【我要投稿】 【论坛讨论
更多相关文章
Power by linux-cn.com 粤ICP备05006655号