Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1142936
  • 博文数量: 168
  • 博客积分: 4445
  • 博客等级: 上校
  • 技术积分: 1307
  • 用 户 组: 普通用户
  • 注册时间: 2005-11-02 14:04
文章分类

全部博文(168)

文章存档

2018年(2)

2017年(5)

2016年(7)

2015年(1)

2014年(8)

2013年(1)

2012年(4)

2011年(54)

2010年(8)

2009年(19)

2008年(18)

2007年(36)

2006年(1)

2005年(4)

分类: SOLARIS

2014-03-20 08:17:38

Last login: Wed Mar 19 20:32:12 2014 from 59.67.1.188
Sun Microsystems Inc.   SunOS 5.10      Generic January 2005
-bash-3.00$ su root
口令:
#
# df -h
文件系统               大小   用了   可用 容量      挂接在
/dev/dsk/c2t0d0s0       48G   4.0G    44G     9%    /
/devices                 0K     0K     0K     0%    /devices
ctfs                     0K     0K     0K     0%    /system/contract
proc                     0K     0K     0K     0%    /proc
mnttab                   0K     0K     0K     0%    /etc/mnttab
swap                   4.9G   900K   4.9G     1%    /etc/svc/volatile
objfs                    0K     0K     0K     0%    /system/object
sharefs                  0K     0K     0K     0%    /etc/dfs/sharetab
/usr/lib/libc/libc_hwcap1.so.1
                        48G   4.0G    44G     9%    /lib/libc.so.1
fd                       0K     0K     0K     0%    /dev/fd
swap                   4.9G   160K   4.9G     1%    /tmp
swap                   4.9G    36K   4.9G     1%    /var/run
/dev/dsk/c2t0d0s7       11G    13M    11G     1%    /export/home

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


AVAILABLE DISK SELECTIONS:
       0. c2t0d0
         
       1. c2t3d0
         
       2. c2t4d0
         
       3. c2t5d0
         
Specify disk (enter its number): 1
selecting c2t3d0
[disk formatted]


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
        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> fdisk
No fdisk table exists. The default partition for the disk is:

  a 100% "SOLARIS System" partition

Type "y" to accept the default partition,  otherwise type "n" to edit the
 partition table.
y
format> label
Ready to label disk, continue? y

format> p


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> print
Current partition table (original):
Total disk cylinders available: 17846 + 2 (reserved cylinders)

Part      Tag    Flag     Cylinders         Size            Blocks
  0 unassigned    wm       0                0         (0/0/0)             0
  1 unassigned    wm       0                0         (0/0/0)             0
  2     backup    wu       0 - 17845      136.71GB    (17846/0/0) 286695990
  3 unassigned    wm       0                0         (0/0/0)             0
  4 unassigned    wm       0                0         (0/0/0)             0
  5 unassigned    wm       0                0         (0/0/0)             0
  6 unassigned    wm       0                0         (0/0/0)             0
  7 unassigned    wm       0                0         (0/0/0)             0
  8       boot    wu       0 -     0        7.84MB    (1/0/0)         16065
  9 unassigned    wm       0                0         (0/0/0)             0

partition> 0
Part      Tag    Flag     Cylinders         Size            Blocks
  0 unassigned    wm       0                0         (0/0/0)             0

Enter partition id tag[unassigned]:
Enter partition permission flags[wm]:
Enter new starting cyl[0]:
Enter partition size[0b, 0c, 0e, 0.00mb, 0.00gb]: 136.71GB
Please specify units in either b(blocks), c(cylinders), e(end cylinder),
m(megabytes) or g(gigabytes)
Enter partition size[0b, 0c, 0e, 0.00mb, 0.00gb]: 17845c
partition>
partition> label
Ready to label disk, continue? yes

partition> print
Current partition table (unnamed):
Total disk cylinders available: 17846 + 2 (reserved cylinders)

Part      Tag    Flag     Cylinders         Size            Blocks
  0 unassigned    wm       0 - 17844      136.70GB    (17845/0/0) 286679925
  1 unassigned    wm       0                0         (0/0/0)             0
  2     backup    wu       0 - 17845      136.71GB    (17846/0/0) 286695990
  3 unassigned    wm       0                0         (0/0/0)             0
  4 unassigned    wm       0                0         (0/0/0)             0
  5 unassigned    wm       0                0         (0/0/0)             0
  6 unassigned    wm       0                0         (0/0/0)             0
  7 unassigned    wm       0                0         (0/0/0)             0
  8       boot    wu       0 -     0        7.84MB    (1/0/0)         16065
  9 unassigned    wm       0                0         (0/0/0)             0

partition> q


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
        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> q

# newfs /dev/rdsk/c2t3d0s0
newfs: 建构新的文件系统 /dev/rdsk/c2t3d0s0: (y/n)? y
警告:最后一个未分配柱面中的 5260 扇区
/dev/rdsk/c2t3d0s0:     在 46661 磁道上,48 扇区的 128 柱面的 286679924 扇区
        139980.4MB 在 2917 柱面群组 (16 c/g, 48.00MB/g, 5824 i/g)
超块 (fsck -F ufs -o b=#) 备份在:
 32, 98464, 196896, 295328, 393760, 492192, 590624, 689056, 787488, 885920,
初始化柱面组:
..........................................................
最后 10 个柱面组的超级块备份位置:
 285773216, 285871648, 285970080, 286068512, 286166944, 286265376, 286363808,
 286462240, 286560672, 286659104
# mkdir /Disk2
# mount /dev/dsk/c2t3d0s0 /Disk2
# df -h
文件系统               大小   用了   可用 容量      挂接在
/dev/dsk/c2t0d0s0       48G   4.0G    44G     9%    /
/devices                 0K     0K     0K     0%    /devices
ctfs                     0K     0K     0K     0%    /system/contract
proc                     0K     0K     0K     0%    /proc
mnttab                   0K     0K     0K     0%    /etc/mnttab
swap                   4.9G   900K   4.9G     1%    /etc/svc/volatile
objfs                    0K     0K     0K     0%    /system/object
sharefs                  0K     0K     0K     0%    /etc/dfs/sharetab
/usr/lib/libc/libc_hwcap1.so.1
                        48G   4.0G    44G     9%    /lib/libc.so.1
fd                       0K     0K     0K     0%    /dev/fd
swap                   4.9G   160K   4.9G     1%    /tmp
swap                   4.9G    36K   4.9G     1%    /var/run
/dev/dsk/c2t0d0s7       11G    13M    11G     1%    /export/home
/dev/dsk/c2t3d0s0      135G    64M   133G     1%    /Disk2
#

阅读(1256) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~