(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得到.
阅读(2427) | 评论(0) | 转发(0) |