- 论坛徽章:
- 0
|
哈哈!2TB的外置硬盘已经搞定了,可以挂接使用!
root@v440 # more /etc/release
Solaris 10 10/08 s10s_u6wos_07b SPARC
Copyright 2008 Sun Microsystems, Inc. All Rights Reserved.
Use is subject to license terms.
Assembled 27 October 2008
root@v440 #
最好打上2011年的补丁,因为要是不打补丁这个版本外置硬盘是使用不了的。
root@v440 # svcadm disable volfs
root@v440-2 # svcs volfs
STATE STIME FMRI
disabled 9:12:35 svc:/system/filesystem/volfs:default
root@v440-2 # cd /dev/rdsk
root@v440-2 # ls
c0t0d0s0 c0t0d0s4 c1t0d0s0 c1t0d0s4 c1t1d0s0 c1t1d0s4 c5t0d0s0 c5t0d0s4
c0t0d0s1 c0t0d0s5 c1t0d0s1 c1t0d0s5 c1t1d0s1 c1t1d0s5 c5t0d0s1 c5t0d0s5
c0t0d0s2 c0t0d0s6 c1t0d0s2 c1t0d0s6 c1t1d0s2 c1t1d0s6 c5t0d0s2 c5t0d0s6
c0t0d0s3 c0t0d0s7 c1t0d0s3 c1t0d0s7 c1t1d0s3 c1t1d0s7 c5t0d0s3 c5t0d0s7 (出现c5t0d0s7)
root@v440 #
root@v440 # rmformat
Looking for devices...
1. Volmgt Node: /vol/dev/aliases/cdrom0
Logical Node: /dev/rdsk/c0t0d0s2
Physical Node: /pci@1e,600000/ide@d/sd@0,0
Connected Device: TOSHIBA ODD-DVD SD-C2732 1051
Device Type: DVD Reader
2. Logical Node: /dev/rdsk/c5t0d0s2
Physical Node: /pci@1e,600000/usb@a/storage@2/disk@0,0
Connected Device: Seagate FreeAgent 102F
Device Type: Removable
root@v440-2 # fdisk /dev/rdsk/c5t0d0s2 或者 # fdisk c5t0d0s2
Total disk size is 60800 cylinders
Cylinder size is 64260 (512 byte) blocks
Cylinders
Partition Status Type Start End Length %
========= ====== ============ ===== === ====== ===
1 IFS: NTFS 0 31870 31871 52
2 IFS: NTFS 31870 60800 28931 48
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 (可以先删除现有的ntfs,然后选择1创建一个solaris格式的文件系统)
root@v440 #
root@v440 #
root@v440 # newfs /dev/rdsk/c5t0d0s2
newfs: construct a new file system /dev/rdsk/c5t0d0s2: (y/n)? y
mkfs: bad value for ntrack: -1 must be between 1 and 2147483647
mkfs: ntrack reset to default 16
/dev/rdsk/c5t0d0s2: 3907008000 sectors in 969000 cylinders of 16 tracks, 252 sectors
1907718.8MB in 6375 cyl groups (152 c/g, 299.25MB/g, 320 i/g)
super-block backups (for fsck -F ufs -o b=#) at:
32, 613152, 1226272, 1839392, 2452512, 3065632, 3678752, 4291872, 4904992,
5518112,
Initializing cylinder groups:
...............................................................................
................................................
super-block backups for last 10 cylinder groups at:
3900882720, 3901495840, 3902108960, 3902717984, 3903331104, 3903944224,
3904557344, 3905170464, 3905783584, 3906396704
root@v440 #
root@v440 #
root@v440 # mkdir /usb
root@v440 # mount /dev/dsk/c5t0d0s2 /usb
root@v440 # df -h
Filesystem size used avail capacity Mounted on
/dev/dsk/c1t0d0s0 35G 5.7G 29G 17% /
/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 38G 1.6M 38G 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
35G 5.7G 29G 17% /platform/sun4u-us3/lib/libc_psr.so.1
/platform/sun4u-us3/lib/sparcv9/libc_psr/libc_psr_hwcap1.so.1
35G 5.7G 29G 17% /platform/sun4u-us3/lib/sparcv9/libc_psr.so.1
fd 0K 0K 0K 0% /dev/fd
swap 38G 40K 38G 1% /tmp
swap 38G 48K 38G 1% /var/run
/dev/dsk/c5t0d0s2 1.8T 64M 1.8T 1% /usb
root@v440 # cd /usb
root@v440 # ls
lost+found
root@v440 # cp -r /var/adm .
root@v440 # pwd
/usb
root@v440 # ls
adm lost+found
root@v440 # cd adm
root@v440 #
root@v440 # cd
root@v440 # umount /usb
root@v440 #
root@v440 # zpool create -f sun c5t0d0s2 (也可以在移动硬盘上创建zfs文件系统)
root@v440 #
root@v440 # zpool list
NAME SIZE USED AVAIL CAP HEALTH ALTROOT
sun 1.81T 76.5K 1.81T 0% ONLINE -
root@v440 #
root@v440 # zpool status
pool: sun
state: ONLINE
scrub: none requested
config:
NAME STATE READ WRITE CKSUM
sun ONLINE 0 0 0
c5t0d0s2 ONLINE 0 0 0
errors: No known data errors
root@v440 # |
|