Solaris的分区、格式化、建立文件系统的过程

一:装载硬盘到SUN主机,开机进入系统。


二:运行format命令,先择要进行分区格式化的磁盘:

-bash-3.00# format
Searching for disks...done


AVAILABLE DISK SELECTIONS:
       0. c3d0 <DEFAULT cyl 1563 alt 2 hd 255 sec 63>
          /pci@0,0/pci-ide@7,1/ide@0/cmdk@0,0
       1. c3d1 <drive type unknown>
          /pci@0,0/pci-ide@7,1/ide@0/cmdk@1,0
Specify disk (enter its number): 1
selecting c3d1
Controller working list found
[disk formatted, defect list found]


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
        fdisk      - run the fdisk program
        repair     - repair a defective sector
        show       - translate a disk address
        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
        volname    - set 8-character volume name
        !<cmd>     - execute <cmd>, then return
        quit


三:输入命令fdisk,对硬盘进行分区后,退出fdisk界面。

format> fdisk
             Total disk size is 1305 cylinders
             Cylinder size is 16065 (512 byte) blocks

                                               Cylinders
      Partition   Status    Type          Start   End   Length    %
      =========   ======    ============  =====   ===   ======   ===
          1       Active    Solaris2          1  1304    1304    100





SELECT ONE OF THE FOLLOWING:
   1. Create a partition
   2. Specify the active partition
   3. Delete a partition
   4. Change between Solaris and Solaris2 Partition IDs
   5. Exit (update disk configuration and exit)
   6. Cancel (exit without updating disk configuration)
Enter Selection: 5


四:输入命令partition,修改完毕后,必要要运行label命令,以把分区表写入到磁盘中,退出partition状态。

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
        !<cmd> - execute <cmd>, then return
        quit
partition> label
Ready to label disk, continue? yes

partition>


五:运行命令save保存分区信息,保存文档名使用默认文档,然后退出format状态。

format> save
Saving new disk and partition definitions
Enter file name["./format.dat"]:
format>


六:建立文件系统。

-bash-3.00# newfs /dev/dsk/c0d1s0
newfs: /dev/rdsk/c0d1s0 last mounted as /test
newfs: construct a new file system /dev/rdsk/c0d1s0: (y/n)? y
/dev/rdsk/c0d1s0:       4195296 sectors in 4162 cylinders of 16 tracks, 63 sectors
        2048.5MB in 66 cyl groups (64 c/g, 31.50MB/g, 5312 i/g)
super-block backups (for fsck -F ufs -o b=#) at:
32, 64608, 129184, 193760, 258336, 322912, 387488, 452064, 516640, 581216,
3613216, 3677792, 3742368, 3806944, 3871520, 3936096, 4000672, 4065248,
4128800, 4193376,
-bash-3.00#


*****
-bash-3.00# newfs /dev/dsk/c3d1s0
/dev/rdsk/c3d1s0: No such device or address
-bash-3.00# newfs /dev/dsk/c3d1s1
/dev/rdsk/c3d1s1: No such device or address
-bash-3.00# newfs /dev/dsk/c3d1s2
newfs: construct a new file system /dev/rdsk/c3d1s2: (y/n)? y
Warning: 3690 sector(s) in last cylinder unallocated
/dev/rdsk/c3d1s2:       20916630 sectors in 3405 cylinders of 48 tracks, 128 sectors
        10213.2MB in 213 cyl groups (16 c/g, 48.00MB/g, 5824 i/g)
super-block backups (for fsck -F ufs -o b=#) at:
 32, 98464, 196896, 295328, 393760, 492192, 590624, 689056, 787488, 885920,
 19957152, 20055584, 20154016, 20252448, 20350880, 20449312, 20547744,
 20646176, 20744608, 20843040
*****

七:建立目录

-bash-3.00# mkdir /u01

八:mount分区

-bash-3.00# mount /dev/dsk/c3d1s2 /u01

九:自动安装新设文件系统
为在系统起动时自动安装新设文件系统,修改/etc/vfstab文件.

-bash-3.00# vi /etc/vfstab
#device device mount FS fsck mount mount
#to mount to fsck point type pass at boot options
#
:
/dev/dsk/c3d1s2 /dev/rdsk/c3d1s2 /u01            ufs     6       yes     -

10. 重新起动系统
-bash-3.00# sync;sync;reboot

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Solaris系统管理员培训 i 第一章 系统概念(System Concepts) 1 第二章 OpenBoot PROM 2 第三章 安装Solaris操作系统 6 第四章 软件包管理 7 第五章 补丁维护 10 第六章 启动过程 11 第七章 系统安全 13 第八章 用户管理 17 第九章 初始化文件管理 18 第十章 进程控制 18 第十一章 磁盘配置和命名 19 第十二章 磁盘、分区格式化 21 第十三章 文件系统介绍 22 第十四章 文件系统挂接 25 第十五章 网络文件系统 26 Solaris网络管理员培训 28 第一章 网络地址和掩码 28 第二章 网络服务 29 第三章 路由和网关 31 第四章 DNS客户端的设置 32 Solaris使用技巧 33 取消root只能在控制台登陆的限制 33 取消root不能登录FTP的限制 33 在从WINDOWS传到UNIX在每行的结尾可能会出现^M 34 取消^M字符: 34 文件名为 -filename 如何去删除 34 ls的特殊用法: 34 Grep命令用法 35 Alias用法 35 Find命令用法 35 Cut命令用法 35 列出除了某些类型文件的当前目录所有文件: 35 改变unix提示符: 35 为环境变量增加新PATH路径(不影响老路径)。 36 列举与某个主题相关的所有unix命令: 36 查看unix版本号: 36 UNIX下整个目录拷贝 36 UNIX下文件格式与DOS文件格式互换 36 查看UNIX下已经安装的包-package 36 显示某一目录下所有文件size 36 文件加密: 36 使用nohup命令: 37 查看文件的方法: 37 检查磁盘剩余空间: 37 超级用户修改系统时间: 37 制作UNIX文件系统的iso文件 37 建SCO UNIX的安装光盘,可以增加自己的文件. 38 调整内核,防止黑客使用堆栈溢出 38 远程mount主机的目录 38 磁盘扫描fsck的语法如下: 39 ln软连接: 40 使用第二块硬盘. 40 将SOLARIS设置成PPP拨入服务器 41 使用第二块硬盘. 44 solaris下用光标键来调出历史命令 45 看进程,内存大小 45 看cpu的情况. 45 windows,unix,linux三个操作系统共存 46 Solaris 下打开硬盘DMA模式. 46 Solaris 下PPPOE的配置 46 ◆ 加强Solaris SPARC/x86操作系统的安全性 49 oracle8.1.5 for solaris 8 x86安装说明 60 1. 创建dba组和oracle用户 60 9. 实现数据库的自启动 62 oracle8.1.7 for solaris 8 x86安装说明 63 安装步骤 63 安装介绍 66 Solaris7 Apache+MySQL+PHP安装指南 71 1.下载并解压 Apache ,MySQL ,PHP 71 2.下载并安装编译器 72 3.编译并安装这3个软件: 73 4.配置Apache + MySQL + PHP 74 5.验证 Apache + MySQL + PHP 的有效性: 75 RealTek 8139网卡在solaris x86上的安装 76 Solaris 中安装声卡(X86) 77 附录: 78 A. Sun推荐培训 78 B.在VMWare中安装Solaris 8 82 C.UNIX系统操作入门 83 SOLARIS 2.6 常用管理命令

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值