Hi Hans

First of all, thank you very much, for your warmly help, I make usbdisk bootable just by install Solaris on usb disk, so I can boot it normally on original computer, but, if I use the USB disk on another computer, maybe it will get trouble, because there are difference between the original computer and other computers. But my target is to careate a automatically boot USB that I can use everywhere instead of modify grub of other configfile every time. So I think maybe somewhere during boot procedure I can change the bootpath or some configfile by script of program. Do you have some experience for that? Or could you give me some advice where can I find some useful material. Thank you once again.

Hans 写道:
Hi, Kevin, interesting experiment.

Could you brief your process of making USB disk image before more help can be 
given  ?

As a suggestion on a 2nd computer, please connect the USB disk. But instead of 
booting from it, boot from CD-ROM (or miniboot if any, unavailable for 2008.05 
at default ?), and then do format to figure out the PCI path, and compare with 
it on the 1st computer. If they differ, mount the USB disk on the 2nd computer 
as /a while in CD-ROM boot, and correct path by doing,

mv /a/dev /a/dev.orig
mv /a/devices /a/devices.orig
mv /a/etc/path_to_inst /a/etc/path_to_inst.orig
devfsadm -r /a  # rebuild device tree

It is useful to put the above and below in a script if switching computers is 
common.

Now fix the boot path, by editing /a/boot/solaris/bootenv.rc and fixing line with 
"setprop bootpath '/[EMAIL PROTECTED],0....' to match the path you'll find 
mounted for /a .

Fix /etc/vfstab if needed.

Recreate archive
   bootadm update-archive -v -R /a
   touch /a/reconfigure
   cd /; sync; sync; umount /a; init 6

The ideas above are stolen from VMware to Virtual Box migration as in http://blogs.sun.com/jimlaurent/entry/importing_solaris_vmdk_image_into

I think it might work for device migration in general. Give all credits to Jim 
if it works.

Good luck.

Hans
This message posted from opensolaris.org
_______________________________________________
opensolaris-discuss mailing list
[email protected]

begin:vcard
fn:Jianxun(Kelvin) Chen
n:Chen;Jianxun(Kelvin)
email;internet:[EMAIL PROTECTED]
tel;work:86-10-68093995
tel;cell:86-13501085870
version:2.1
end:vcard

_______________________________________________
opensolaris-discuss mailing list
[email protected]

Reply via email to