Chinaunix首页 | 论坛 | 博客
  • 博客访问: 845913
  • 博文数量: 339
  • 博客积分: 3151
  • 博客等级: 中校
  • 技术积分: 3425
  • 用 户 组: 普通用户
  • 注册时间: 2010-10-10 14:47
文章分类

全部博文(339)

文章存档

2023年(43)

2022年(44)

2021年(3)

2020年(13)

2019年(39)

2018年(25)

2015年(2)

2014年(18)

2013年(12)

2012年(48)

2011年(79)

2010年(13)

分类: 系统运维

2011-09-02 23:02:07

Backgroud:
    新添加的这块硬盘是以前一个根硬盘。本来就是一个系统。所以,里面的分区都已经划分了好多个小的分区了,已经。 
    但是我想把这个硬盘化成一个分区,用来存储数据。
    (没想到的是,这样format,72G的硬盘要一个小时。)
 
 
Xshell for Xmanager Enterprise 3.0 (Build 0260)
Copyright (c) 2002-2009 NetSarang Computer, Inc. All rights reserved.
Type `help' to learn how to use Xshell prompt.
Xshell:\>
Connecting to 10.40.100.230:22...
Connection established.
Escape character is
.
###############################################################
#                  ****USAGE WARNING****                      #
#                                                             #
#           This is a private computer system.                #
#                                                             #
#    This computer system, including all related equipment,   #
#  networks,and network devices (specifically including In-   #
#  ternet access) are provided only for authorized use.       #
#    This computer system may be monitored for all lawful     #
#  purposes, including to ensure that its use is authorized,  #
#  for management of the system, to facilitate protection     #
#  against unauthorized access, and to verify security pro-   #
#  cedures, survivability, and operational security. Monit-   #
#  oring includes active attacks by authorized entities to    #
#  test or verify the security of this system. During moni-   #
#  toring, information may be examined, recorded, copied      #
#  and used for authorized purposes.                          #
#    All information, including personal information, plac-   #
#  ed or sent over this system may be monitored.              #
#    Use of this computer system, authorized or unauthorized, #
#  constitutes consent to monitoring of this system.          #
#    Unauthorized use may subject you to criminal prosecution.#
#    Evidence of unauthorized use collected during monitor-   #
#  ing may be used for administrative, criminal, or other     #
#  adverse action.                                            #
#    Use of this system constitutes consent to monitoring     #
#  for these purposes.                                        #
#                                                             #
#          Seagate Technology International CORP              #
###############################################################
Last login: Fri Sep  2 18:16:09 2011 from suz-m024103d001
Sun Microsystems Inc.   SunOS 5.10      Generic January 2005
You have new mail.
Sourcing //.profile-EIS.....
# ls
Desktop        core           jumpstart      net            tftpboot       vol
Documents      dev            kernel         opt            tmp
InstallShield  devices        lib            platform       u01
SWAP           etc            lost+found     proc           usr
bin            export         mbox           sbin           var
boot           home           mnt            system         vfstab
#
#
# /usr/sfw/bin/smbclient -L localhost
Password:
session setup failed: NT_STATUS_LOGON_FAILURE
 
这边输入的密码是,你创建的samba的账号的密码。
我前面设置的samba账号是root,密码是root。

# ls
Desktop        bin            devices        jumpstart      mbox           platform       tftpboot       var
Documents      boot           etc            kernel         mnt            proc           tmp            vfstab
InstallShield  core           export         lib            net            sbin           u01            vol
SWAP           dev            home           lost+found     opt            system         usr
# /usr/sfw/bin/smbclient -L localhost
Password:
Domain=[SUZSYSADMIN] OS=[Unix] Server=[Samba 3.0.37]
        Sharename       Type      Comment
        ---------       ----      -------
        333             Disk     
        IPC$            IPC       IPC Service (Samba Server)
        root            Disk      Home Directories
Domain=[SUZSYSADMIN] OS=[Unix] Server=[Samba 3.0.37]
        Server               Comment
        ---------            -------
        Workgroup            Master
        ---------            -------

输入密码正确,就能显示本地共享的可以访问的文件。
   
# df -hk
Filesystem             size   used  avail capacity  Mounted on
/dev/md/dsk/d10         65G    47G    17G    74%    /
/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.7G   1.6M   4.7G     1%    /etc/svc/volatile
objfs                    0K     0K     0K     0%    /system/object
sharefs                  0K     0K     0K     0%    /etc/dfs/sharetab
/platform/sun4u-us3/lib/libc_psr/libc_psr_hwcap1.so.1
                        65G    47G    17G    74%    /platform/sun4u-us3/lib/libc_psr.so.1
/platform/sun4u-us3/lib/sparcv9/libc_psr/libc_psr_hwcap1.so.1
                        65G    47G    17G    74%    /platform/sun4u-us3/lib/sparcv9/libc_psr.so.1
fd                       0K     0K     0K     0%    /dev/fd
swap                   4.7G    72K   4.7G     1%    /tmp
swap                   4.7G    64K   4.7G     1%    /var/run
/dev/dsk/c1t2d0s0      134G    37G    95G    29%    /export/root/mnt/disk2
/dev/dsk/c1t3d0s0      4.9G   983M   3.9G    20%    /mnt/c1t3d0s0
# ls
Desktop        bin            devices        jumpstart      mbox           platform       tftpboot       var
Documents      boot           etc            kernel         mnt            proc           tmp            vfstab
InstallShield  core           export         lib            net            sbin           u01            vol
SWAP           dev            home           lost+found     opt            system         usr
# mount /dev/dsk/c1t3d0s3 /mnt/c1t3d0s3
mount: The state of /dev/dsk/c1t3d0s3 is not okay
        and it was attempted to be mounted read/write
mount: Please run fsck and try again
# fsck /dev/dsk/c1t3d0s3
** /dev/rdsk/c1t3d0s3
** Last Mounted on /var
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3a - Check Connectivity
** Phase 3b - Verify Shadows/ACLs
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cylinder Groups
FILE SYSTEM STATE IN SUPERBLOCK IS WRONG; FIX? yes
7085 files, 74448 used, 1983871 free (183 frags, 247961 blocks, 0.0% fragmentation)
#
# mount /dev/dsk/c1t3d0s3 /mnt/c1t3d0s3
# df -hk'
>
# df -hk
Filesystem             size   used  avail capacity  Mounted on
/dev/md/dsk/d10         65G    47G    17G    74%    /
/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.7G   1.6M   4.7G     1%    /etc/svc/volatile
objfs                    0K     0K     0K     0%    /system/object
sharefs                  0K     0K     0K     0%    /etc/dfs/sharetab
/platform/sun4u-us3/lib/libc_psr/libc_psr_hwcap1.so.1
                        65G    47G    17G    74%    /platform/sun4u-us3/lib/libc_psr.so.1
/platform/sun4u-us3/lib/sparcv9/libc_psr/libc_psr_hwcap1.so.1
                        65G    47G    17G    74%    /platform/sun4u-us3/lib/sparcv9/libc_psr.so.1
fd                       0K     0K     0K     0%    /dev/fd
swap                   4.7G    72K   4.7G     1%    /tmp
swap                   4.7G    64K   4.7G     1%    /var/run
/dev/dsk/c1t2d0s0      134G    37G    95G    29%    /export/root/mnt/disk2
/dev/dsk/c1t3d0s0      4.9G   983M   3.9G    20%    /mnt/c1t3d0s0
/dev/dsk/c1t3d0s3      2.0G    75M   1.8G     4%    /mnt/c1t3d0s3
# format
Searching for disks...done

AVAILABLE DISK SELECTIONS:
       0. c1t0d0
         

       1. c1t1d0
         

       2. c1t2d0
         

       3. c1t3d0
         

       4. c3t8d0
         

       5. c3t9d0
         

       6. c3t10d0
         

       7. c3t11d0
         

Specify disk (enter its number): 3
selecting c1t3d0
[disk formatted]
Warning: Current Disk has mounted partitions.
/dev/dsk/c1t3d0s0 is currently mounted on /mnt/c1t3d0s0. Please see umount(1M).
/dev/dsk/c1t3d0s3 is currently mounted on /mnt/c1t3d0s3. Please see umount(1M).

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> print
Current partition table (original):
Total disk cylinders available: 14087 + 2 (reserved cylinders)
Part      Tag    Flag     Cylinders         Size            Blocks
  0       root    wm     413 -  1443        5.00GB    (1031/0/0)   10491456
  1       swap    wu       0 -   412        2.00GB    (413/0/0)     4202688
  2     backup    wm       0 - 14086       68.35GB    (14087/0/0) 143349312
  3        var    wm    1444 -  1856        2.00GB    (413/0/0)     4202688
  4        usr    wm    1857 -  3095        6.01GB    (1239/0/0)   12608064
  5 unassigned    wm    3096 -  6191       15.02GB    (3096/0/0)   31504896
  6 unassigned    wm    6192 - 10313       20.00GB    (4122/0/0)   41945472
  7       home    wm   10314 - 11931        7.85GB    (1618/0/0)   16464768
partition> quit

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> format
Cannot format disk while it has mounted partitions.
format> quit
# umount /mnt/c1t3d0s
c1t3d0s0/ c1t3d0s1/ c1t3d0s2/ c1t3d0s3/ c1t3d0s4/ c1t3d0s5/ c1t3d0s6/ c1t3d0s7/
# umount /mnt/c1t3d0s0
# umount /mnt/c1t3d0s3
# format
Searching for disks...done

AVAILABLE DISK SELECTIONS:
       0. c1t0d0
         

       1. c1t1d0
         

       2. c1t2d0
         

       3. c1t3d0
         

       4. c3t8d0
         

       5. c3t9d0
         

       6. c3t10d0
         

       7. c3t11d0
         

Specify disk (enter its number): 3
selecting c1t3d0
[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
        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> format
Ready to format.  Formatting cannot be interrupted
and takes 169 minutes (estimated). Continue? yes
Beginning format. The current time is Fri Sep  2 23:00:29 2011
Formatting...
  18% complete (00:46:09 remaining) 
  
阅读(955) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~