First, format the disk and fdisk it to Solaris slice.
#format
...
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
fdisk - run the fdisk program
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
!<cmd> - execute <cmd>, then return
quit
format> fdisk
create a solaris partition
format> partition
create slice
Part Tag Flag Cylinders Size Blocks
0 root wm 3 - 2483 19.01GB (2481/0/0) 39857265
1 unassigned wm 0 0 (0/0/0) 0
2 backup wu 0 - 4861 37.24GB (4862/0/0) 78108030
3 unassigned wm 0 0 (0/0/0) 0
4 unassigned wm 0 0 (0/0/0) 0
5 unassigned wm 0 0 (0/0/0) 0
6 unassigned wm 0 0 (0/0/0) 0
7 home wm 2484 - 4861 18.22GB (2378/0/0) 38202570
8 boot wu 0 - 0 7.84MB (1/0/0) 16065
9 unassigned wm 0 0 (0/0/0) 0
make new fs for the root slice
#newfs /dev/rdsk/cXtXdXs0
mount rootfs
#mount /dev/dsk/cXtXdXs0 /mnt
and then decompress the cpio image from the bfu archive(or copy the
system on your hardware disk to the root slice)
#cd /mnt
#cat <bfu path>/<cpio image> | cpio -id
copy some critical files.
#cp /etc/driver_* /mnt/etc/
#cp /etc/name_to_* /mnt/etc
install grub to cover the MBR
#cp -rf /boot /mnt
#installgrub -m /mnt/boot/grub/stage1 /mnt/boot/grub/stage2
/dev/rdsk/cXtXdXsX
modify the boot path saved in boot/solaris/bootenv.rc to the correct
disk path
setprop bootpath <usb disk path>
you can get the right string from the output of "format" commond
reboot your system from usb disk and enter into the failure safe mode.
mount your rootfs to /a.
#devfsadm -r /a
#/a/lib/svc/bin/restore
_repository -r /a
and type -seed- to generate the repository database.
#bootadm update-archive -R /a
and now you can boot the machine from usb disk(maybe need some extra smf
configurations need.) You can install your kernel to be tested to the
usb disk.
#format
...
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
fdisk - run the fdisk program
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
!<cmd> - execute <cmd>, then return
quit
format> fdisk
create a solaris partition
format> partition
create slice
Part Tag Flag Cylinders Size Blocks
0 root wm 3 - 2483 19.01GB (2481/0/0) 39857265
1 unassigned wm 0 0 (0/0/0) 0
2 backup wu 0 - 4861 37.24GB (4862/0/0) 78108030
3 unassigned wm 0 0 (0/0/0) 0
4 unassigned wm 0 0 (0/0/0) 0
5 unassigned wm 0 0 (0/0/0) 0
6 unassigned wm 0 0 (0/0/0) 0
7 home wm 2484 - 4861 18.22GB (2378/0/0) 38202570
8 boot wu 0 - 0 7.84MB (1/0/0) 16065
9 unassigned wm 0 0 (0/0/0) 0
make new fs for the root slice
#newfs /dev/rdsk/cXtXdXs0
mount rootfs
#mount /dev/dsk/cXtXdXs0 /mnt
and then decompress the cpio image from the bfu archive(or copy the
system on your hardware disk to the root slice)
#cd /mnt
#cat <bfu path>/<cpio image> | cpio -id
copy some critical files.
#cp /etc/driver_* /mnt/etc/
#cp /etc/name_to_* /mnt/etc
install grub to cover the MBR
#cp -rf /boot /mnt
#installgrub -m /mnt/boot/grub/stage1 /mnt/boot/grub/stage2
/dev/rdsk/cXtXdXsX
modify the boot path saved in boot/solaris/bootenv.rc to the correct
disk path
setprop bootpath <usb disk path>
you can get the right string from the output of "format" commond
reboot your system from usb disk and enter into the failure safe mode.
mount your rootfs to /a.
#devfsadm -r /a
#/a/lib/svc/bin/restore
and type -seed- to generate the repository database.
#bootadm update-archive -R /a
and now you can boot the machine from usb disk(maybe need some extra smf
configurations need.) You can install your kernel to be tested to the
usb disk.