Chinaunix首页 | 论坛 | 博客
  • 博客访问: 272161
  • 博文数量: 124
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 21
  • 用 户 组: 普通用户
  • 注册时间: 2016-08-20 14:44
文章分类

全部博文(124)

文章存档

2020年(1)

2018年(2)

2016年(2)

2015年(6)

2014年(10)

2013年(23)

2012年(7)

2011年(18)

2010年(15)

2009年(8)

2007年(8)

2006年(23)

2005年(1)

我的朋友

分类:

2010-07-15 17:02:31


(1)Reference

(2) svcadm disable volfs
(3) Using rmformat -l to get the USB devices.

run the command # rmformat -l  to lists the removable media devices and find the Connected device which says something to the order of a Generic USB flash disk, and note the line which says: Logical Node: /dev/rdsk/c2t0d0s0 or something like that. I'll call the /dev/rdsk/c2t0d0s0 the [usbnode] going forward. You'll need to know yours later.

(4) Using fdisk -B to "Default to one Solaris partition that uses the whole disk."

# fdisk -B [usbnode] (where [usbnode] is the raw usb devices)

(5) now run: # devfsadm; devfsadm -C
(6) newfs /dev/rdsk/c2t0d0s0
(7) Install the boot block
/usr/sbin/installboot /usr/platform/`uname -i`/lib/fs/ufs/bootblk /dev/rdsk/c2t0d0s0
(8) mount -o nologging,noatime /dev/dsk/c2t0d0s0 /usb
(9) mount -F hsfs -o ro /dev/dsk/c0t0d0s2  /dvd
(10) cp -rP /dvd/platform /dvd/boot /usb  (total 178M)
(11) umount /dvd /usb
(12) init 0
(13) {0} ok probe-scsi-all
(14) get USB devices

/pci@0/pci@0/pci@1/pci@0/pci@1/pci@0/usb@0,2/storage@3
  Unit 0   Removable Disk
(15) {0} ok show-disks
Get disk full name as
/pci@0/pci@0/pci@1/pci@0/pci@1/pci@0/usb@0,2/storage@3/disk
(16) boot /pci@0/pci@0/pci@1/pci@0/pci@1/pci@0/usb@0,2/storage@3/disk

trouble shooting:
启动时报告bad magic number in disk label表示系统需要SUN OS格式的label.
可以使用命令:
rmformat -b "########" /dev/rdsk/c*t*d*s2 #是8个字符. 后面的设备路径可以使用rmformat得到.
阅读(2376) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~