question of clone solaris

发表于:2007-06-09来源:作者:点击数: 标签:
Ihadclonedasolarisinstallation(sparc). followismystep: 1installasmallSolarisinthenewdisk 2repartitionthenewdisk(withoutdeletetheswappartition) 3copytheolddisktothenewdisk myquestionishowtomakethediskbootablewithoutreinstallinganewsystem? t

I had cloned a solaris installation (sparc).

follow is my step:
<1>install a small Solaris in the new disk
<2>repartition the new disk(without delete the swap partition)
<3>copy the old disk to the new disk

my question is how to make the disk bootable without reinstalling a new system?

thanks

 stele 回复于:2002-09-12 15:50:48
dd bs=xxkb if=/dev/rdsk/c0t0d0s2 of=/dev/rdsk/c0t0d1s2

 leeyonggang 回复于:2002-09-12 16:45:21
thank,but I mean the new disk with different size. and I want to update/replace the old one


 liluo 回复于:2002-09-12 17:50:03
no problem, you just need an equal disk to do backup.
用ufsdump备份每一个分区,恢复每一分区,一条语句即可。
如果是系统盘,重做引导区即可。

 南非蜘蛛 回复于:2002-09-12 19:14:40
[quote][b]下面引用由[u]leeyonggang[/u]在 [i]2002/09/12 04:45pm[/i] 发表的内容:[/b]
thank,but I mean the new disk with different size. and I want to update/replace the old one
[/quote]
也可以用dd

 leeyonggang 回复于:2002-09-17 13:13:22
[quote][b]下面引用由[u]liluo[/u]在 [i]2002/09/12 05:50pm[/i] 发表的内容:[/b]
no problem, you just need an equal disk to do backup.
用ufsdump备份每一个分区,恢复每一分区,一条语句即可。
如果是系统盘,重做引导区即可。
[/quote]
重做引导区,
That is the point.
and howto?

 leeyonggang 回复于:2002-09-19 16:15:42
come on, answer me please.

 liluo 回复于:2002-09-19 16:41:39
我好像有一个帖子,说的很详细。
实在不想再说一次了,斑竹,这就是你的不好了,干嘛不收入精华区啊。
为什么偶不用英文,看看上边那条友写的:no problem, you just need an equal disk to do backup
谁知道equal disk是什么???是两个物理配置相同的盘还是大小一样的盘?????

对于系统盘备份,如果两块盘大小一样(前提是物理配置一样),用dd好了。
如果想在备份过程中调整分区大小那就先对备份盘分好区。
然后mount上准备备份的那个分区
然后用ufsdump and ufsrestore
具体命令是

ufsdump of - /dev/rdsk/c0t0d0s0 | (cd /mnt;ufsrestore xf 
OK,
重做引导分区的命令是
/usr/sbin/installboot具体参数再查吧,呵呵。

 leeyonggang 回复于:2002-09-19 17:01:11
thanks

原文转自:http://www.ltesting.net