在usb上运行OpenSolaris

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.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值