Solaris devfsadm 一个命令, 让我郁闷了一下午 !

知道与不知道之间,只是一张纸。
08.03.05 I want to add a disk in vmware system of solaris 10 os , but i could not find it using the command "format " . I search in the net . I found something about this as following . But not the same situation as what i see .
最后,终于在 www.baidu.com 中,通过关键词"solaris 10 增加硬盘" 找到了 http://bbs.chinaunix.net/archiver/tid-602888.html
不容易啊!
不过,我相信,我会对这个命令有深刻的印象的: devfsadm
看一下这个结果:
bash-3.00# devfsadm
bash-3.00# format
Searching for disks...done

AVAILABLE DISK SELECTIONS:
0. c0d0
/pci@0,0/pci-ide@7,1/ide@0/cmdk@0,0
1. c0d1
/pci@0,0/pci-ide@7,1/ide@0/cmdk@1,0
2. c1d1
/pci@0,0/pci-ide@7,1/ide@1/cmdk@1,0
Specify disk (enter its number):
solaris 10 在 vmware 下增加一块硬盘需要怎么才能看到

devfsadm
或在ok下 boot -r
# format
Searching for disks...done

AVAILABLE DISK SELECTIONS:
0. c0t0d0
/pci@1f,0/ide@d/dad@0,0
1. c0t2d0
/pci@1f,0/ide@d/dad@2,0
Specify disk (enter its number): 1selecting c0t2d0
[disk formatted, no 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
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
! - execute , then return
quit
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> 7Part Tag Flag Cylinders Size Blocks
7 home wm 0 - 19155 37.27GB (19156/0/0) 78156480
Enter partition id tag[home]:
Enter partition permission flags[wm]:
Enter new starting cyl[0]:
Enter partition size[78156480b, 19156c, 19155e, 38162.34mb, 37.27gb]:
format> t

AVAILABLE DRIVE TYPES:
0. WDC WD400BB-22DEA0
1. other
Specify disk type (enter its number)[0]:
selecting c0t2d0
[disk formatted, no defect list found]
format> saSaving new disk and partition definitions
Enter file name["./format.dat"]:
format> q
# newfs /dev/dsk/c0t2d0s7newfs: /dev/rdsk/c0t2d0s7 上次被安装为 /export/home0
newfs: 建构新的文件系统 /dev/rdsk/c0t2d0s7: (y/n)? y
/dev/rdsk/c0t2d0s7: 在 19156 磁道上,16 扇区的 255 柱面的 78156480 扇区
38162.3MB 在 737 柱面群组 (26 c/g, 51.80MB/g, 6400 i/g)
超块 (fsck -F ufs -o b=#) 备份在:
32, 106368, 212704, 319040, 425376, 531712, 638048, 744384, 850720, 957056,
初始化柱面组:
..............
最后 10 个柱面组的超级块备份位置:
77121984, 77228320, 77334656, 77440992, 77547328, 77653664, 77760000,
77866336, 77972672, 78074912,
# mkdir /export/home0# mount /dev/dsk/c0t2d0s7 /export/home0
# bash
# export LANG=en# export TERM=vt100# vi /etc/vfstab

在该文件中加入一行:

# /dev/dsk/c0t2d0s7 /dev/rdsk/c0t2d0s7 /export/home0 ufs 2 yes -

重起。

# init 6
[@more@]

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/66634/viewspace-1000458/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/66634/viewspace-1000458/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值